jetbrains.buildServer.web.util
Class TreeNodeAdapter

java.lang.Object
  extended by jetbrains.buildServer.web.util.TreeNodeAdapter
All Implemented Interfaces:
TreeNode
Direct Known Subclasses:
FileNode, PathsListTreeNode

public class TreeNodeAdapter
extends java.lang.Object
implements TreeNode

Author:
Maxim Podkolzine (maxim.podkolzine@jetbrains.com)

Constructor Summary
TreeNodeAdapter()
           
 
Method Summary
 java.util.List<? extends TreeNode> getChildren()
          Returns this node children
 java.lang.String getDetails()
          Node details
 java.lang.String getLinkPath()
          Returns path to set in the link for this node, applicable for leaf nodes only.
 java.lang.String getName()
          Name of the node to show in tree
 java.lang.String getNodeAttributes()
          Returns the node attributes (besides href)
 java.lang.String getNodeClass()
          Returns node CSS class
 boolean isCanHaveChildren()
          Returns true if node can have children
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeNodeAdapter

public TreeNodeAdapter()
Method Detail

getName

@NotNull
public java.lang.String getName()
Description copied from interface: TreeNode
Name of the node to show in tree

Specified by:
getName in interface TreeNode
Returns:
see above

getDetails

public java.lang.String getDetails()
Description copied from interface: TreeNode
Node details

Specified by:
getDetails in interface TreeNode
Returns:
see above

isCanHaveChildren

public boolean isCanHaveChildren()
Description copied from interface: TreeNode
Returns true if node can have children

Specified by:
isCanHaveChildren in interface TreeNode
Returns:
see above

getLinkPath

public java.lang.String getLinkPath()
Description copied from interface: TreeNode
Returns path to set in the link for this node, applicable for leaf nodes only.

Specified by:
getLinkPath in interface TreeNode
Returns:
see above

getChildren

public java.util.List<? extends TreeNode> getChildren()
Description copied from interface: TreeNode
Returns this node children

Specified by:
getChildren in interface TreeNode
Returns:
see above

getNodeClass

public java.lang.String getNodeClass()
Description copied from interface: TreeNode
Returns node CSS class

Specified by:
getNodeClass in interface TreeNode
Returns:
see above

getNodeAttributes

public java.lang.String getNodeAttributes()
Description copied from interface: TreeNode
Returns the node attributes (besides href)

Specified by:
getNodeAttributes in interface TreeNode
Returns:
node attributes