Class CommentEditionTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- org.silverpeas.core.web.util.viewgenerator.html.comment.CommentWidget
-
- org.silverpeas.core.web.util.viewgenerator.html.comment.CommentEditionTag
-
- All Implemented Interfaces:
Serializable
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public class CommentEditionTag extends CommentWidget
A tag for displaying an edition form for creating a new comment.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.web.util.viewgenerator.html.comment.CommentWidget
COMMENT_WIDGET_DIV_CLASS, COMMENT_WIDGET_DIV_ID
-
-
Constructor Summary
Constructors Constructor Description CommentEditionTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
doStartTag()
protected String
getCommentEditionScript()
Gets the instructions for rendering the edition form for adding new comments.boolean
isCommentsIndexed()
Is new comments should be indexed?void
setIndexed(String indexed)
Indicates whether new comments should be indexed.-
Methods inherited from class org.silverpeas.core.web.util.viewgenerator.html.comment.CommentWidget
getCallback, getComponentId, getResourceId, getResourceType, getUserId, initWidget, setCallback, setComponentId, setResourceId, setResourceType, setUserId
-
-
-
-
Method Detail
-
isCommentsIndexed
public boolean isCommentsIndexed()
Is new comments should be indexed? By default, new comments are indexed.- Returns:
- true if the comments should be indexed, false otherwise.
-
setIndexed
public void setIndexed(String indexed)
Indicates whether new comments should be indexed.- Parameters:
indexed
- a flag indicating the indexation of comments.
-
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspException
- Specified by:
doStartTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classjavax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
-
getCommentEditionScript
protected String getCommentEditionScript()
Gets the instructions for rendering the edition form for adding new comments.- Returns:
- the rendering instructions.
-
-