Package jetbrains.buildServer.web.util
Class PathsListTreeNode
- java.lang.Object
-
- jetbrains.buildServer.web.util.TreeNodeAdapter
-
- jetbrains.buildServer.web.util.PathsListTreeNode
-
- All Implemented Interfaces:
TreeNode
public class PathsListTreeNode extends TreeNodeAdapter
Tree node implementation which constructs tree from the list of relative paths.
-
-
Constructor Summary
Constructors Constructor Description PathsListTreeNode(java.lang.String currentPath, java.lang.String dirName, java.util.List<java.lang.String> paths)
PathsListTreeNode(java.lang.String currentPath, java.util.List<java.lang.String> paths)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<TreeNode>
getChildren()
Returns this node childrenjava.lang.String
getDetails()
Node detailsjava.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 treeboolean
isCanHaveChildren()
Returns true if node can have children-
Methods inherited from class jetbrains.buildServer.web.util.TreeNodeAdapter
getNodeAttributes, getNodeClass
-
-
-
-
Constructor Detail
-
PathsListTreeNode
public PathsListTreeNode(@NotNull java.lang.String currentPath, @NotNull java.util.List<java.lang.String> paths)
-
PathsListTreeNode
public PathsListTreeNode(@NotNull java.lang.String currentPath, @NotNull java.lang.String dirName, @NotNull java.util.List<java.lang.String> paths)
-
-
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 interfaceTreeNode
- Overrides:
getName
in classTreeNodeAdapter
- Returns:
- see above
-
getDetails
public java.lang.String getDetails()
Description copied from interface:TreeNode
Node details- Specified by:
getDetails
in interfaceTreeNode
- Overrides:
getDetails
in classTreeNodeAdapter
- Returns:
- see above
-
isCanHaveChildren
public boolean isCanHaveChildren()
Description copied from interface:TreeNode
Returns true if node can have children- Specified by:
isCanHaveChildren
in interfaceTreeNode
- Overrides:
isCanHaveChildren
in classTreeNodeAdapter
- 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 interfaceTreeNode
- Overrides:
getLinkPath
in classTreeNodeAdapter
- Returns:
- see above
-
getChildren
public java.util.List<TreeNode> getChildren()
Description copied from interface:TreeNode
Returns this node children- Specified by:
getChildren
in interfaceTreeNode
- Overrides:
getChildren
in classTreeNodeAdapter
- Returns:
- see above
-
-