com.ideo.sweetdevria.taglib.tree
Class TreeNodeTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.ideo.sweetdevria.taglib.AbstractTagDrawer
          extended by com.ideo.sweetdevria.taglib.AbstractComponentTagSupport
              extended by com.ideo.sweetdevria.taglib.BaseTagSupport
                  extended by com.ideo.sweetdevria.taglib.BaseStateTagSupport
                      extended by 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

Field Summary
protected static java.lang.String BUILDER_ID
          Builder ID.
protected  boolean expanded
           
protected  java.lang.String iconStyle
           
protected  java.util.Map information
           
protected  java.lang.String label
           
protected  java.lang.String nodeTypeId
           
protected  boolean selected
           
 
Fields inherited from class com.ideo.sweetdevria.taglib.BaseStateTagSupport
stateful
 
Fields inherited from class com.ideo.sweetdevria.taglib.BaseTagSupport
frameDisplayed, style, styleClass
 
Fields inherited from class com.ideo.sweetdevria.taglib.AbstractComponentTagSupport
bodyContent, rendered
 
Fields inherited from class com.ideo.sweetdevria.taglib.AbstractTagDrawer
builder, messageKeys, templateEnd, templateStart
 
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
 
Constructor Summary
TreeNodeTag()
          Default constructor.
 
Method Summary
 void addChild(NodeModel child)
          Adds a node as a child of this current one
 int doEndTag()
          Default processing of the end tag returning EVAL_PAGE.
 int doStartTag()
          Default processing of the start tag.
 java.lang.String getBuilderId()
          Return the targeted builder id for this component as specified in the configuration file.
 java.lang.String getIconStyle()
           
 java.util.Map getInformation()
           
 java.lang.String getLabel()
           
protected  NodeModel getModel()
           
 java.lang.String getNodeTypeId()
           
 boolean isExpanded()
           
 boolean isSelected()
           
 void release()
          Release method which must call super.release !
 void setExpanded(boolean expanded)
          Set this node expanded state
 void setIconStyle(java.lang.String iconStyle)
          Set this node icon class
 void setInformation(java.util.Map information)
          Set this node information map
 void setLabel(java.lang.String label)
          Set this node label
 void setNodeTypeId(java.lang.String nodeTypeId)
          Set this node type
 void setSelected(boolean selected)
          Set this node selection state
 
Methods inherited from class com.ideo.sweetdevria.taglib.BaseStateTagSupport
isStateful, setId, setStateful
 
Methods inherited from class com.ideo.sweetdevria.taglib.BaseTagSupport
addCssClass, addCssStyle, getStyle, getStyleClass, setStyle, setStyleClass
 
Methods inherited from class com.ideo.sweetdevria.taglib.AbstractComponentTagSupport
checkId, doAfterBody, doInitBody, getBodyContent, getId, isRendered, refractorContext, setBodyContent, setRendered
 
Methods inherited from class com.ideo.sweetdevria.taglib.AbstractTagDrawer
generateHtmlContent, getBuilder, getMessageKeys, getPageContext, getTemplateEnd, getTemplateStart, setPageContext, setTemplateEnd, setTemplateStart
 
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 com.ideo.sweetdevria.taglib.IRiaTag
getMessageKeys, getPageContext, getTemplateEnd, getTemplateStart, setPageContext, setTemplateEnd, setTemplateStart
 
Methods inherited from interface com.ideo.sweetdevria.taglib.Hideable
isRendered, setRendered
 
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
 

Field Detail

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
Constructor Detail

TreeNodeTag

public TreeNodeTag()
Default constructor.

Method Detail

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.