Class TreeNode
- java.lang.Object
-
- de.terrestris.shoguncore.model.PersistentObject
-
- de.terrestris.shoguncore.model.tree.TreeNode
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TreeFolder
@Entity public class TreeNode extends PersistentObject
A class representing a node in a tree. This class can be used for leaf nodes.For folders,
TreeFoldershould be used.- Author:
- Nils Bühner, Kai Volland, terrestris GmbH & Co. KG
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetIcon()StringgetIconCls()intgetIndex()TreeFoldergetParentFolder()StringgetqTip()StringgetqTitle()StringgetText()inthashCode()BooleanisChecked()booleanisExpandable()booleanisExpanded()booleanisLeaf()booleanisRoot()voidsetChecked(Boolean checked)voidsetExpandable(boolean expandable)voidsetExpanded(boolean expanded)voidsetIcon(String icon)voidsetIconCls(String iconCls)voidsetIndex(int index)voidsetLeaf(boolean leaf)voidsetParentFolder(TreeFolder parentFolder)voidsetqTip(String qTip)voidsetqTitle(String qTitle)voidsetRoot(boolean root)voidsetText(String text)-
Methods inherited from class de.terrestris.shoguncore.model.PersistentObject
getCreated, getGroupPermissions, getId, getModified, getUserPermissions, setGroupPermissions, setModified, setUserPermissions, toString
-
-
-
-
Constructor Detail
-
TreeNode
public TreeNode()
Explicitly adding the default constructor as this is important, e.g. for Hibernate: http://goo.gl/3Cr1pw
-
TreeNode
public TreeNode(String text)
-
-
Method Detail
-
getText
public String getText()
- Returns:
- the text
-
setText
public void setText(String text)
- Parameters:
text- the text to set
-
getParentFolder
public TreeFolder getParentFolder()
- Returns:
- the parentFolder
-
setParentFolder
public void setParentFolder(TreeFolder parentFolder)
- Parameters:
parentFolder- the parentFolder to set
-
getIndex
public int getIndex()
- Returns:
- the index
-
setIndex
public void setIndex(int index)
- Parameters:
index- the index to set
-
isRoot
public boolean isRoot()
- Returns:
- the root
-
setRoot
public void setRoot(boolean root)
- Parameters:
root- the root to set
-
isLeaf
public boolean isLeaf()
- Returns:
- the leaf
-
setLeaf
public void setLeaf(boolean leaf)
- Parameters:
leaf- the leaf to set
-
isChecked
public Boolean isChecked()
- Returns:
- the checked
-
setChecked
public void setChecked(Boolean checked)
- Parameters:
checked- the checked to set
-
isExpandable
public boolean isExpandable()
- Returns:
- the expandable
-
setExpandable
public void setExpandable(boolean expandable)
- Parameters:
expandable- the expandable to set
-
isExpanded
public boolean isExpanded()
- Returns:
- the expanded
-
setExpanded
public void setExpanded(boolean expanded)
- Parameters:
expanded- the expanded to set
-
getIcon
public String getIcon()
- Returns:
- the icon
-
setIcon
public void setIcon(String icon)
- Parameters:
icon- the icon to set
-
getIconCls
public String getIconCls()
- Returns:
- the iconCls
-
setIconCls
public void setIconCls(String iconCls)
- Parameters:
iconCls- the iconCls to set
-
getqTip
public String getqTip()
- Returns:
- the qTip
-
setqTip
public void setqTip(String qTip)
- Parameters:
qTip- the qTip to set
-
getqTitle
public String getqTitle()
- Returns:
- the qTitle
-
setqTitle
public void setqTitle(String qTitle)
- Parameters:
qTitle- the qTitle to set
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
-