com.ideo.sweetdevria.taglib.tree
Class TreeNodeTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.ideo.sweetdevria.taglib.AbstractTagDrawer
com.ideo.sweetdevria.taglib.AbstractComponentTagSupport
com.ideo.sweetdevria.taglib.BaseTagSupport
com.ideo.sweetdevria.taglib.BaseStateTagSupport
com.ideo.sweetdevria.taglib.tree.TreeNodeTag
- All Implemented Interfaces:
- Hideable, IRiaTag, ITreeTag, java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class TreeNodeTag
- extends BaseStateTagSupport
- implements IRiaTag, Hideable, ITreeTag
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getParent, getValue, getValues, removeValue, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.BodyTag |
doInitBody, setBodyContent |
Methods inherited from interface javax.servlet.jsp.tagext.IterationTag |
doAfterBody |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
BUILDER_ID
protected static final java.lang.String BUILDER_ID
- Builder ID.
nodeTypeId
protected java.lang.String nodeTypeId
label
protected java.lang.String label
iconStyle
protected java.lang.String iconStyle
expanded
protected boolean expanded
selected
protected boolean selected
information
protected java.util.Map information
TreeNodeTag
public TreeNodeTag()
- Default constructor.
release
public void release()
- Description copied from interface:
IRiaTag
- Release method which must call super.release !
- Specified by:
release
in interface IRiaTag
- Specified by:
release
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
release
in class BaseStateTagSupport
- See Also:
IRiaTag.release()
getBuilderId
public java.lang.String getBuilderId()
- Description copied from interface:
IRiaTag
- Return the targeted builder id for this component as specified in the configuration file.
- Specified by:
getBuilderId
in interface IRiaTag
- Specified by:
getBuilderId
in class AbstractTagDrawer
- Returns:
- id targeted builder id
- See Also:
AbstractTagDrawer.getBuilderId()
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Description copied from interface:
IRiaTag
- Default processing of the start tag.
- Specified by:
doStartTag
in interface IRiaTag
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in class AbstractComponentTagSupport
- Returns:
- EVAL_BODY_AGAIN, EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY or SKIP_PAGE.
- Throws:
javax.servlet.jsp.JspException
- See Also:
IRiaTag.doStartTag()
addChild
public void addChild(NodeModel child)
throws javax.servlet.jsp.JspException
- Description copied from interface:
ITreeTag
- Adds a node as a child of this current one
- Specified by:
addChild
in interface ITreeTag
- Parameters:
child
- the child node to add
- Throws:
javax.servlet.jsp.JspException
- if any error occurs
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Description copied from interface:
IRiaTag
- Default processing of the end tag returning EVAL_PAGE.
- Specified by:
doEndTag
in interface IRiaTag
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in class AbstractComponentTagSupport
- Returns:
- EVAL_PAGE or SKIP_PAGE.
- Throws:
javax.servlet.jsp.JspException
- See Also:
IRiaTag.doEndTag()
getModel
protected NodeModel getModel()
- Returns:
- the model associated for this node
getNodeTypeId
public java.lang.String getNodeTypeId()
setNodeTypeId
public void setNodeTypeId(java.lang.String nodeTypeId)
- Set this node type
getLabel
public java.lang.String getLabel()
setLabel
public void setLabel(java.lang.String label)
- Set this node label
getIconStyle
public java.lang.String getIconStyle()
setIconStyle
public void setIconStyle(java.lang.String iconStyle)
- Set this node icon class
isExpanded
public boolean isExpanded()
setExpanded
public void setExpanded(boolean expanded)
- Set this node expanded state
isSelected
public boolean isSelected()
setSelected
public void setSelected(boolean selected)
- Set this node selection state
getInformation
public java.util.Map getInformation()
setInformation
public void setInformation(java.util.Map information)
- Set this node information map
Copyright © 2010 Ideo Technologies. All Rights Reserved.