org.olat.core.gui.components.tree
Interface TreeNode

All Superinterfaces:
INode
All Known Implementing Classes:
AssessmentNode, CourseEditorTreeNode, GenericMementoTreeNode, GenericQtiNode, GenericTreeNode, ItemNode, SectionNode

public interface TreeNode
extends INode

Description:
TreeNode is a read-only Node which is used for rendering trees

Author:
Felix Jost

Method Summary
 java.lang.String getAltText()
           
 java.lang.String getCssClass()
          gets the css class to be used for rendering.
 TreeNode getDelegate()
          only matters for treenode selection: if not null, the treenode returned is the actual target of a click
 java.lang.String getIconCssClass()
           
 java.lang.String getIconDecorator1CssClass()
           
 java.lang.String getIconDecorator2CssClass()
           
 java.lang.String getIconDecorator3CssClass()
           
 java.lang.String getIconDecorator4CssClass()
           
 java.lang.String getTitle()
           
 java.lang.Object getUserObject()
           
 boolean isAccessible()
           
 boolean isSelected()
          Wether this node is preselected.
 void setSelected(boolean selected)
          Allows to preselect this node.
 
Methods inherited from interface org.olat.core.util.nodes.INode
addChild, getChildAt, getChildCount, getIdent, getParent, getPosition, insert, remove, removeAllChildren, removeFromParent, setParent
 

Method Detail

getTitle

java.lang.String getTitle()
Returns:

getAltText

java.lang.String getAltText()
Returns:

isAccessible

boolean isAccessible()
Returns:

getUserObject

java.lang.Object getUserObject()
Returns:

getCssClass

java.lang.String getCssClass()
gets the css class to be used for rendering. if null, the default class is used. this is a convenient way to allow customized treenodes (one images and css classes) so we can avoid a celltree_renderer

Returns:

getIconCssClass

java.lang.String getIconCssClass()

getIconDecorator1CssClass

java.lang.String getIconDecorator1CssClass()

getIconDecorator2CssClass

java.lang.String getIconDecorator2CssClass()

getIconDecorator3CssClass

java.lang.String getIconDecorator3CssClass()

getIconDecorator4CssClass

java.lang.String getIconDecorator4CssClass()

getDelegate

TreeNode getDelegate()
only matters for treenode selection: if not null, the treenode returned is the actual target of a click

Returns:

setSelected

void setSelected(boolean selected)
Allows to preselect this node.

Parameters:
selected -

isSelected

boolean isSelected()
Wether this node is preselected.

Returns: