Package jetbrains.buildServer.web.util
Class FileNode
- java.lang.Object
-
- jetbrains.buildServer.web.util.TreeNodeAdapter
-
- jetbrains.buildServer.web.util.FileNode
-
- All Implemented Interfaces:
TreeNode
public class FileNode extends TreeNodeAdapter
A tree node that corresponds to a file (or a directory).- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TreeNode>
getChildren()
Returns this node childrenprotected List<TreeNode>
getChildren(Converter<TreeNode,File> converter)
String
getName()
Name of the node to show in treeboolean
isCanHaveChildren()
Returns true if node can have childrenString
toString()
-
Methods inherited from class jetbrains.buildServer.web.util.TreeNodeAdapter
getDetails, getLinkPath, getNodeAttributes, getNodeClass
-
-
-
-
Field Detail
-
myFile
protected final File myFile
-
-
Constructor Detail
-
FileNode
public FileNode(@NotNull File file)
-
-
Method Detail
-
getName
@NotNull public 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
-
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
-
getChildren
public List<TreeNode> getChildren()
Description copied from interface:TreeNode
Returns this node children- Specified by:
getChildren
in interfaceTreeNode
- Overrides:
getChildren
in classTreeNodeAdapter
- Returns:
- see above
-
-