Package com.jalios.jcms.taglib
Class TreeViewTag.TreeView
- java.lang.Object
-
- com.jalios.jcms.taglib.TreeViewTag.TreeView
-
- Direct Known Subclasses:
TreeCatViewTag.TreeCatView
- Enclosing class:
- TreeViewTag
public static class TreeViewTag.TreeView extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TreeView()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Collection
addTreeCollection(java.util.Collection collection)
void
addTreeRetained(java.util.Collection collection)
int
getCurrentLevel()
DataAttribute
getDataAttribute()
TreeViewDecorator
getDecorator()
java.util.Collection
getFilteredChildren(java.lang.Object nodeObject)
java.lang.String
getItemCss(TreeNode treeNode, Member member, Workspace workspace)
Returns a string representing CSS classes appended to the tree item (eg.java.util.Map
getMemo()
java.util.Map
getMemoMap()
Return a Set to store information between ajax and not ajax for this treeview.TreeViewTag.TreeView
getParent()
java.util.Collection<?>
getTreeChecked()
java.util.Collection
getTreeCollection()
java.lang.String
getTreeCSS()
DataAttribute
getTreeDataAttribute()
int
getTreeDisable()
java.util.Collection<?>
getTreeDisabled()
int
getTreeHighlight()
java.util.Collection<?>
getTreeHighlighted()
java.lang.String
getTreeHint()
java.lang.String
getTreeInput()
int
getTreeLevel()
java.lang.String
getTreeLink()
java.lang.String
getTreeLink(Data node, JcmsJspContext ctxt)
Return the links associated to the given Datajava.lang.String
getTreeLink(java.lang.String link, JcmsJspContext ctxt)
Resolve the links regexpjava.lang.Object
getTreeNode()
java.util.Collection<?>
getTreeOpened()
java.lang.String
getTreePrefix()
java.util.Collection<?>
getTreeRemoved()
java.util.Collection<?>
getTreeRetained()
java.lang.String
getTreeType()
boolean
isAjaxLink()
Return true to use ajax-refreshboolean
isChecked(TreeNode node)
Returns true if given TreeNode is checkedboolean
isDisabled(TreeNode node)
Returns true if given TreeNode is disabledboolean
isDragdrop()
boolean
isHighlighted(TreeNode node)
Returns true if given TreeNode is Highlightedboolean
isRemoved(TreeNode node)
Deprecated.useisRemoved(Object)
insteadboolean
isRemoved(java.lang.Object node)
Returns true if given Object (TreeNode, Group...) is removed.boolean
isWrapper()
protected void
merge(TreeViewTag.TreeView parent)
void
setAjaxLink(boolean ajaxLink)
void
setCurrentLevel(int currentLevel)
void
setDataAttribute(DataAttribute dataAttribute)
void
setDecorator(TreeViewDecorator decorator)
void
setDragdrop(boolean dragdrop)
void
setMemo(java.util.Map memo)
void
setParent(TreeViewTag.TreeView parent)
void
setTreeChecked(java.util.Collection<?> treeChecked)
void
setTreeCollection(java.util.Collection treeCollection)
void
setTreeCSS(java.lang.String treeCSS)
void
setTreeDataAttribute(DataAttribute treeDataAttribute)
void
setTreeDisable(int treeDisable)
void
setTreeDisabled(java.util.Collection<?> treeDisabled)
void
setTreeHighlight(int treeHighlight)
void
setTreeHighlighted(java.util.Collection<?> treeHighlighted)
void
setTreeHint(java.lang.String treeHint)
void
setTreeInput(java.lang.String treeInput)
void
setTreeLevel(int treeLevel)
void
setTreeLink(java.lang.String treeLink)
void
setTreeNode(java.lang.Object treeNode)
void
setTreeOpened(java.util.Collection<?> treeOpened)
void
setTreePrefix(java.lang.String treePrefix)
void
setTreeRemoved(java.util.Collection<?> treeRemoved)
void
setTreeRetained(java.util.Collection<?> treeRetains)
void
setTreeType(java.lang.String treeType)
void
setWrapper(boolean wrapper)
-
-
-
Method Detail
-
getTreePrefix
public java.lang.String getTreePrefix()
-
setTreePrefix
public void setTreePrefix(java.lang.String treePrefix)
-
setDataAttribute
public void setDataAttribute(DataAttribute dataAttribute)
-
setTreeDataAttribute
public void setTreeDataAttribute(DataAttribute treeDataAttribute)
-
getDataAttribute
public DataAttribute getDataAttribute()
-
getTreeDataAttribute
public DataAttribute getTreeDataAttribute()
-
getTreeLevel
public int getTreeLevel()
-
setTreeLevel
public void setTreeLevel(int treeLevel)
-
getTreeHint
public java.lang.String getTreeHint()
-
setTreeHint
public void setTreeHint(java.lang.String treeHint)
-
getTreeCSS
public java.lang.String getTreeCSS()
-
setTreeCSS
public void setTreeCSS(java.lang.String treeCSS)
-
isWrapper
public boolean isWrapper()
-
setWrapper
public void setWrapper(boolean wrapper)
-
isDragdrop
public boolean isDragdrop()
-
setDragdrop
public void setDragdrop(boolean dragdrop)
-
getTreeLink
public java.lang.String getTreeLink()
-
setTreeLink
public void setTreeLink(java.lang.String treeLink)
-
isAjaxLink
public boolean isAjaxLink()
Return true to use ajax-refresh- Returns:
- boolean true if ajax
-
setAjaxLink
public void setAjaxLink(boolean ajaxLink)
-
getTreeInput
public java.lang.String getTreeInput()
-
setTreeInput
public void setTreeInput(java.lang.String treeInput)
-
getTreeType
public java.lang.String getTreeType()
-
setTreeType
public void setTreeType(java.lang.String treeType)
-
getTreeDisable
public int getTreeDisable()
-
setTreeDisable
public void setTreeDisable(int treeDisable)
-
getTreeHighlight
public int getTreeHighlight()
-
setTreeHighlight
public void setTreeHighlight(int treeHighlight)
-
getTreeNode
public java.lang.Object getTreeNode()
-
setTreeNode
public void setTreeNode(java.lang.Object treeNode)
-
getTreeCollection
public java.util.Collection getTreeCollection()
-
setTreeCollection
public void setTreeCollection(java.util.Collection treeCollection)
-
getTreeOpened
public java.util.Collection<?> getTreeOpened()
-
setTreeOpened
public void setTreeOpened(java.util.Collection<?> treeOpened)
-
getTreeChecked
public java.util.Collection<?> getTreeChecked()
-
setTreeChecked
public void setTreeChecked(java.util.Collection<?> treeChecked)
-
getTreeDisabled
public java.util.Collection<?> getTreeDisabled()
-
setTreeDisabled
public void setTreeDisabled(java.util.Collection<?> treeDisabled)
-
getTreeHighlighted
public java.util.Collection<?> getTreeHighlighted()
-
setTreeHighlighted
public void setTreeHighlighted(java.util.Collection<?> treeHighlighted)
-
getTreeRemoved
public java.util.Collection<?> getTreeRemoved()
-
setTreeRemoved
public void setTreeRemoved(java.util.Collection<?> treeRemoved)
-
getTreeRetained
public java.util.Collection<?> getTreeRetained()
-
setTreeRetained
public void setTreeRetained(java.util.Collection<?> treeRetains)
-
getParent
public TreeViewTag.TreeView getParent()
-
setParent
public void setParent(TreeViewTag.TreeView parent)
-
getCurrentLevel
public int getCurrentLevel()
-
setCurrentLevel
public void setCurrentLevel(int currentLevel)
-
getMemo
public java.util.Map getMemo()
-
setMemo
public void setMemo(java.util.Map memo)
-
getDecorator
public TreeViewDecorator getDecorator()
-
setDecorator
public void setDecorator(TreeViewDecorator decorator)
-
addTreeCollection
public java.util.Collection addTreeCollection(java.util.Collection collection)
-
addTreeRetained
public void addTreeRetained(java.util.Collection collection)
-
merge
protected void merge(TreeViewTag.TreeView parent)
-
getMemoMap
public java.util.Map getMemoMap()
Return a Set to store information between ajax and not ajax for this treeview.- Returns:
- An initialized TreeSet
-
isHighlighted
public boolean isHighlighted(TreeNode node)
Returns true if given TreeNode is Highlighted- Parameters:
node
- the TreeNode to work with- Returns:
- true if highlighted
-
isDisabled
public boolean isDisabled(TreeNode node)
Returns true if given TreeNode is disabled- Parameters:
node
- the TreeNode to work with- Returns:
- true if disabled
-
isChecked
public boolean isChecked(TreeNode node)
Returns true if given TreeNode is checked- Parameters:
node
- the TreeNode to work with- Returns:
- true if checked
-
isRemoved
@Deprecated public boolean isRemoved(TreeNode node)
Deprecated.useisRemoved(Object)
insteadReturns true if given TreeNode is removed- Parameters:
node
- the TreeNode to work with- Returns:
- true if removed
-
isRemoved
public boolean isRemoved(java.lang.Object node)
Returns true if given Object (TreeNode, Group...) is removed.- Parameters:
node
- the object to work with- Returns:
- true if removed
-
getFilteredChildren
public java.util.Collection getFilteredChildren(java.lang.Object nodeObject)
-
getTreeLink
public java.lang.String getTreeLink(Data node, JcmsJspContext ctxt)
Return the links associated to the given Data- Parameters:
node
- the Datactxt
- the JcmsJspContext- Returns:
- String link
-
getTreeLink
public java.lang.String getTreeLink(java.lang.String link, JcmsJspContext ctxt)
Resolve the links regexp- Parameters:
link
- the linkctxt
- the JcmsJspContext- Returns:
- String link
-
getItemCss
public java.lang.String getItemCss(TreeNode treeNode, Member member, Workspace workspace)
Returns a string representing CSS classes appended to the tree item (eg. <li class="treeview-item"> ...).- Parameters:
treeNode
- current node to displaymember
- Current memberworkspace
- Current workspace- Returns:
- String representing CSS classes
-
-