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

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

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

The PolyTreeTableUserObject, extending java.io.File. This class renders and edits properties of File. It enumerates parents considering UNIX symbolic links, showing them as additional parents.

See Also:
Serialized Form

Field Summary
static int DATE_COLUMN
           
static java.lang.String DATE_COLUMN_STRING
           
static int HIDDEN_COLUMN
           
static java.lang.String HIDDEN_COLUMN_STRING
           
static int NAME_COLUMN
           
static java.lang.String NAME_COLUMN_STRING
           
static int PATH_COLUMN
           
static java.lang.String PATH_COLUMN_STRING
           
static int READ_COLUMN
           
static java.lang.String READ_COLUMN_STRING
           
static int SIZE_COLUMN
           
static java.lang.String SIZE_COLUMN_STRING
           
static int WRITE_COLUMN
           
static java.lang.String WRITE_COLUMN_STRING
           
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
FileTreeTable.FileTreeTableUserObject(java.io.File file)
           
FileTreeTable.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 aValue)
          Sets the the given column Object into this userObject.
 
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
 

Field Detail

NAME_COLUMN

public static final int NAME_COLUMN
See Also:
Constant Field Values

NAME_COLUMN_STRING

public static final java.lang.String NAME_COLUMN_STRING
See Also:
Constant Field Values

PATH_COLUMN

public static final int PATH_COLUMN
See Also:
Constant Field Values

PATH_COLUMN_STRING

public static final java.lang.String PATH_COLUMN_STRING
See Also:
Constant Field Values

DATE_COLUMN

public static final int DATE_COLUMN
See Also:
Constant Field Values

DATE_COLUMN_STRING

public static final java.lang.String DATE_COLUMN_STRING
See Also:
Constant Field Values

SIZE_COLUMN

public static final int SIZE_COLUMN
See Also:
Constant Field Values

SIZE_COLUMN_STRING

public static final java.lang.String SIZE_COLUMN_STRING
See Also:
Constant Field Values

READ_COLUMN

public static final int READ_COLUMN
See Also:
Constant Field Values

READ_COLUMN_STRING

public static final java.lang.String READ_COLUMN_STRING
See Also:
Constant Field Values

WRITE_COLUMN

public static final int WRITE_COLUMN
See Also:
Constant Field Values

WRITE_COLUMN_STRING

public static final java.lang.String WRITE_COLUMN_STRING
See Also:
Constant Field Values

HIDDEN_COLUMN

public static final int HIDDEN_COLUMN
See Also:
Constant Field Values

HIDDEN_COLUMN_STRING

public static final java.lang.String HIDDEN_COLUMN_STRING
See Also:
Constant Field Values
Constructor Detail

FileTreeTable.FileTreeTableUserObject

public FileTreeTable.FileTreeTableUserObject(java.lang.String path)

FileTreeTable.FileTreeTableUserObject

public FileTreeTable.FileTreeTableUserObject(java.io.File file)
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 aValue)
Sets the the given column Object into this userObject.

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

getColumnCount

public int getColumnCount()
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