Package com.jalios.jcms.taglib
Class TreeViewTag
- java.lang.Object
 - 
- javax.servlet.jsp.tagext.TagSupport
 - 
- javax.servlet.jsp.tagext.BodyTagSupport
 - 
- com.jalios.jcms.taglib.IncludeTag
 - 
- com.jalios.jcms.taglib.TreeViewTag
 
 
 
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable,javax.servlet.jsp.tagext.BodyTag,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag
- Direct Known Subclasses:
 TreeCatViewTag
public class TreeViewTag extends IncludeTag
- See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTreeViewTag.TreeView 
- 
Field Summary
Fields Modifier and Type Field Description static intASCENDANTstatic intDESCENDANTstatic java.lang.StringMEMO_ORIGINAL_QUERY_STRINGstatic java.lang.StringMEMO_ORIGINAL_QUERY_STRING_JSONstatic intNONEstatic java.lang.StringRXP_CURRENT_CIDstatic java.lang.StringRXP_CURRENT_URLstatic java.lang.StringRXP_DISPLAYstatic java.lang.StringRXP_DISPLAY_URLstatic java.lang.StringRXP_NODE_IDstatic java.lang.StringRXP_PORTAL_CIDstatic java.lang.StringRXP_PORTAL_IDstatic java.lang.StringRXP_WORKSPACE_IDstatic java.lang.StringTREE_ID_ATTRstatic java.lang.StringTREE_PREFIX_ATTRstatic java.lang.StringTREEVIEW_ATTR- 
Fields inherited from class com.jalios.jcms.taglib.IncludeTag
INCLUDE_BODY, INCLUDE_CONTEXT, JCMS_RESOURCE_INCLUDE_PREFIX_PROP 
 - 
 
- 
Constructor Summary
Constructors Constructor Description TreeViewTag() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclean()intdoEndTag()intdoStartTag()java.lang.StringgetCss()java.lang.StringgetFooter(TreeViewTag.TreeView treeView)java.lang.StringgetHeader(TreeViewTag.TreeView treeView)TreeViewTag.TreeViewgetTreeView()protected java.lang.Class<? extends TreeViewTag.TreeView>getTreeViewClass()protected voidhandleTreePrefix()protected voidinitTag()static booleanisMatchCollection(java.lang.Object node, java.util.Collection collec, boolean descendant, boolean parent)Check if the given TreeNode is, is descendant or is parent of the given TreeNode Set.voidsetAjax(boolean ajaxLink)voidsetChecked(java.util.Collection treeChecked)voidsetCollection(java.util.Collection treeCollection)voidsetCss(java.lang.String treeCSS)voidsetDataAttribute(DataAttribute dataAttribute)voidsetDecorator(TreeViewDecorator decorator)voidsetDisable(int treeDisable)voidsetDisabled(java.util.Collection treeDisabled)voidsetDragdrop(boolean dragdrop)voidsetHighlight(int treeHighlight)voidsetHighlighted(java.util.Collection treeHighlighted)voidsetHint(java.lang.String treeHint)voidsetInput(java.lang.String treeInput)voidsetLevel(int treeLevel)voidsetLink(java.lang.String treeLink)voidsetMemo(java.lang.Object memo)voidsetNode(java.lang.Object treeNode)voidsetOpened(java.util.Collection treeOpened)voidsetPrefix(java.lang.String treePrefix)voidsetRemoved(java.util.Collection treeRemoved)voidsetRetains(java.util.Collection treeRetains)voidsetTreeDataAttribute(DataAttribute dataAttribute)voidsetType(java.lang.String treeType)voidsetWrapper(boolean wrapper)- 
Methods inherited from class com.jalios.jcms.taglib.IncludeTag
doAfterBody, doBeforeBody, doInitBody, getClazz, getFile, getId, getIncludeBoolean, getIncludeObject, getIncludeString, getJsp, getPub, getResource, getTarget, getTargetContext, getUsage, include, include, notRecusiveInclude, printErrorMessage, setClazz, setContext, setFile, setId, setIncludeString, setJsp, setPub, setResource, setTarget, setTargetContext, setUsage, skipInclude 
- 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
getBodyContent, getPreviousOut, release, setBodyContent 
- 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue 
 - 
 
 - 
 
- 
- 
Field Detail
- 
NONE
public static final int NONE
- See Also:
 - Constant Field Values
 
 
- 
ASCENDANT
public static final int ASCENDANT
- See Also:
 - Constant Field Values
 
 
- 
DESCENDANT
public static final int DESCENDANT
- See Also:
 - Constant Field Values
 
 
- 
TREE_PREFIX_ATTR
public static final java.lang.String TREE_PREFIX_ATTR
- See Also:
 - Constant Field Values
 
 
- 
TREE_ID_ATTR
public static final java.lang.String TREE_ID_ATTR
- See Also:
 - Constant Field Values
 
 
- 
TREEVIEW_ATTR
public static final java.lang.String TREEVIEW_ATTR
- See Also:
 - Constant Field Values
 
 
- 
MEMO_ORIGINAL_QUERY_STRING
public static final java.lang.String MEMO_ORIGINAL_QUERY_STRING
- See Also:
 - Constant Field Values
 
 
- 
MEMO_ORIGINAL_QUERY_STRING_JSON
public static final java.lang.String MEMO_ORIGINAL_QUERY_STRING_JSON
- See Also:
 - Constant Field Values
 
 
- 
RXP_DISPLAY
public static final java.lang.String RXP_DISPLAY
- See Also:
 - Constant Field Values
 
 
- 
RXP_DISPLAY_URL
public static final java.lang.String RXP_DISPLAY_URL
- See Also:
 - Constant Field Values
 
 
- 
RXP_NODE_ID
public static final java.lang.String RXP_NODE_ID
- See Also:
 - Constant Field Values
 
 
- 
RXP_CURRENT_URL
public static final java.lang.String RXP_CURRENT_URL
- See Also:
 - Constant Field Values
 
 
- 
RXP_PORTAL_ID
public static final java.lang.String RXP_PORTAL_ID
- See Also:
 - Constant Field Values
 
 
- 
RXP_CURRENT_CID
public static final java.lang.String RXP_CURRENT_CID
- See Also:
 - Constant Field Values
 
 
- 
RXP_PORTAL_CID
public static final java.lang.String RXP_PORTAL_CID
- See Also:
 - Constant Field Values
 
 
- 
RXP_WORKSPACE_ID
public static final java.lang.String RXP_WORKSPACE_ID
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspException- Specified by:
 doStartTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
 doStartTagin classIncludeTag- Throws:
 javax.servlet.jsp.JspException
 
- 
doEndTag
public int doEndTag()
- Specified by:
 doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
 doEndTagin classIncludeTag
 
- 
initTag
protected void initTag()
 
- 
handleTreePrefix
protected void handleTreePrefix()
 
- 
getHeader
public java.lang.String getHeader(TreeViewTag.TreeView treeView)
 
- 
getFooter
public java.lang.String getFooter(TreeViewTag.TreeView treeView)
 
- 
setDataAttribute
public void setDataAttribute(DataAttribute dataAttribute)
 
- 
setTreeDataAttribute
public void setTreeDataAttribute(DataAttribute dataAttribute)
 
- 
setPrefix
public void setPrefix(java.lang.String treePrefix)
 
- 
setNode
public void setNode(java.lang.Object treeNode)
 
- 
setHint
public void setHint(java.lang.String treeHint)
 
- 
getCss
public java.lang.String getCss()
 
- 
setCss
public void setCss(java.lang.String treeCSS)
 
- 
setWrapper
public void setWrapper(boolean wrapper)
 
- 
setLevel
public void setLevel(int treeLevel)
 
- 
setDragdrop
public void setDragdrop(boolean dragdrop)
 
- 
setCollection
public void setCollection(java.util.Collection treeCollection)
 
- 
setLink
public void setLink(java.lang.String treeLink)
 
- 
setAjax
public void setAjax(boolean ajaxLink)
 
- 
setInput
public void setInput(java.lang.String treeInput)
 
- 
setType
public void setType(java.lang.String treeType)
 
- 
setChecked
public void setChecked(java.util.Collection treeChecked)
 
- 
setDisabled
public void setDisabled(java.util.Collection treeDisabled)
 
- 
setDisable
public void setDisable(int treeDisable)
 
- 
setHighlighted
public void setHighlighted(java.util.Collection treeHighlighted)
 
- 
setHighlight
public void setHighlight(int treeHighlight)
 
- 
setRemoved
public void setRemoved(java.util.Collection treeRemoved)
 
- 
setRetains
public void setRetains(java.util.Collection treeRetains)
 
- 
setOpened
public void setOpened(java.util.Collection treeOpened)
 
- 
setMemo
public void setMemo(java.lang.Object memo)
 
- 
setDecorator
public void setDecorator(TreeViewDecorator decorator)
 
- 
clean
public void clean()
- Overrides:
 cleanin classIncludeTag
 
- 
isMatchCollection
public static boolean isMatchCollection(java.lang.Object node, java.util.Collection collec, boolean descendant, boolean parent)Check if the given TreeNode is, is descendant or is parent of the given TreeNode Set.- Parameters:
 node- the node Object to work withcollec- a Collection of node to look fordescendant- Check if given node Object is Descendant of given Setparent- Check if given node Object is parent of given Set- Returns:
 - boolean true if the node Object matches
 
 
- 
getTreeView
public TreeViewTag.TreeView getTreeView()
 
- 
getTreeViewClass
protected java.lang.Class<? extends TreeViewTag.TreeView> getTreeViewClass()
 
 - 
 
 -