jetbrains.buildServer.web.util
Class FileNode

java.lang.Object
  extended by jetbrains.buildServer.web.util.TreeNodeAdapter
      extended by 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)

Field Summary
protected  java.io.File myFile
           
 
Constructor Summary
FileNode(java.io.File file)
           
 
Method Summary
 java.util.List<TreeNode> getChildren()
          Returns this node children
protected  java.util.List<TreeNode> getChildren(Converter<TreeNode,java.io.File> converter)
           
 java.lang.String getName()
          Name of the node to show in tree
 boolean isCanHaveChildren()
          Returns true if node can have children
 java.lang.String toString()
           
 
Methods inherited from class jetbrains.buildServer.web.util.TreeNodeAdapter
getDetails, getLinkPath, getNodeAttributes, getNodeClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myFile

protected final java.io.File myFile
Constructor Detail

FileNode

public FileNode(@NotNull
                java.io.File file)
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
Overrides:
getName in class TreeNodeAdapter
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
Overrides:
isCanHaveChildren in class TreeNodeAdapter
Returns:
see above

getChildren

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

Specified by:
getChildren in interface TreeNode
Overrides:
getChildren in class TreeNodeAdapter
Returns:
see above

getChildren

protected java.util.List<TreeNode> getChildren(@NotNull
                                               Converter<TreeNode,java.io.File> converter)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object