fri.gui.swing.polytreetable.samples
Class Sample.FileTreeTableUserObject

java.lang.Object
  |
  +--java.io.File
        |
        +--fri.gui.swing.polytreetable.samples.Sample.FileTreeTableUserObject
All Implemented Interfaces:
java.lang.Comparable, PolyTreeTableUserObject, java.io.Serializable
Enclosing class:
Sample

protected static class Sample.FileTreeTableUserObject
extends java.io.File
implements PolyTreeTableUserObject

The PolyTreeTableUserObject, extending java.io.File.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
Sample.FileTreeTableUserObject(java.lang.String path)
           
 
Method Summary
 boolean getAllowsChildren()
          Returns true if the receiver allows children, i.e. it is a "child folder".
 boolean getAllowsParents()
          Returns true if the receiver allows parents, i.e. it is a "parent folder".
 java.lang.Object getChildAt(int index)
          Returns the child object at given index of this userObject.
 int getChildCount()
          Returns the number of children of this userObject.
 java.lang.Class getColumnClass(int column)
          Returns the class for given column.
 int getColumnCount()
          Returns the number of columns for this userObject.
 java.lang.String getColumnName(int column)
          Returns the name for given column.
 java.lang.Object getColumnObject(int column)
          Returns the Object for given column from this userObject.
 java.lang.Object getParentAt(int index)
          Returns the parent object at given index of this userObject.
 int getParentCount()
          Returns the number of parents of this userObject.
 boolean isColumnEditable(int column)
          Returns true if column can be edited.
 java.lang.Object setColumnObject(int column, java.lang.Object object)
          Does nothing, not editable.
 
Methods inherited from class java.io.File
canRead, canWrite, compareTo, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toString, toURI, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Sample.FileTreeTableUserObject

public Sample.FileTreeTableUserObject(java.lang.String path)
Method Detail

isColumnEditable

public boolean isColumnEditable(int column)
Returns true if column can be edited.

Specified by:
isColumnEditable in interface PolyTreeTableUserObject

getColumnObject

public java.lang.Object getColumnObject(int column)
Returns the Object for given column from this userObject.

Specified by:
getColumnObject in interface PolyTreeTableUserObject

setColumnObject

public java.lang.Object setColumnObject(int column,
                                        java.lang.Object object)
Does nothing, not editable.

Specified by:
setColumnObject in interface PolyTreeTableUserObject
Returns:
new PolyTreeTableUserObject if it had to be changed completely, else "this".

getColumnCount

public int getColumnCount()
Description copied from interface: PolyTreeTableUserObject
Returns the number of columns for this userObject.

Specified by:
getColumnCount in interface PolyTreeTableUserObject

getColumnClass

public java.lang.Class getColumnClass(int column)
Returns the class for given column.

Specified by:
getColumnClass in interface PolyTreeTableUserObject

getColumnName

public java.lang.String getColumnName(int column)
Returns the name for given column.

Specified by:
getColumnName in interface PolyTreeTableUserObject

getChildCount

public int getChildCount()
Returns the number of children of this userObject.

Specified by:
getChildCount in interface PolyTreeTableUserObject

getChildAt

public java.lang.Object getChildAt(int index)
Returns the child object at given index of this userObject.

Specified by:
getChildAt in interface PolyTreeTableUserObject

getParentCount

public int getParentCount()
Returns the number of parents of this userObject.

Specified by:
getParentCount in interface PolyTreeTableUserObject

getParentAt

public java.lang.Object getParentAt(int index)
Returns the parent object at given index of this userObject.

Specified by:
getParentAt in interface PolyTreeTableUserObject

getAllowsParents

public boolean getAllowsParents()
Returns true if the receiver allows parents, i.e. it is a "parent folder".

Specified by:
getAllowsParents in interface PolyTreeTableUserObject

getAllowsChildren

public boolean getAllowsChildren()
Returns true if the receiver allows children, i.e. it is a "child folder".

Specified by:
getAllowsChildren in interface PolyTreeTableUserObject