SPT Core API

com.sptci.echo.tree.filesystem
Class DirectoryTable

java.lang.Object
  extended by nextapp.echo.app.Component
      extended by nextapp.echo.app.Table
          extended by com.sptci.echo.table.Table<File>
              extended by com.sptci.echo.tree.filesystem.DirectoryTable
All Implemented Interfaces:
SortableTable, Serializable, RenderIdSupport

public class DirectoryTable
extends Table<File>
implements SortableTable

A custom table used to display all the files in the file encapsulated by the specified DirectoryTableModel.

© Copyright 2009 Sans Pareil Technologies, Inc.

Version:
$Id: DirectoryTable.java 4858 2009-08-11 15:52:14Z rakesh $
Author:
Rakesh 2009-06-15
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sptci.echo.table.Table
Table.DefaultActionListener
 
Field Summary
 
Fields inherited from class nextapp.echo.app.Table
ACTION_LISTENERS_CHANGED_PROPERTY, AUTO_CREATE_COLUMNS_FROM_MODEL_CHANGED_PROPERTY, COLUMN_MODEL_CHANGED_PROPERTY, DEFAULT_HEADER_RENDERER_CHANGED_PROPERTY, DEFAULT_RENDERER_CHANGED_PROPERTY, DEFAULT_TABLE_CELL_RENDERER, HEADER_ROW, HEADER_VISIBLE_CHANGED_PROPERTY, INPUT_ACTION, MODEL_CHANGED_PROPERTY, PROPERTY_ACTION_COMMAND, PROPERTY_BORDER, PROPERTY_INSETS, PROPERTY_ROLLOVER_BACKGROUND, PROPERTY_ROLLOVER_BACKGROUND_IMAGE, PROPERTY_ROLLOVER_ENABLED, PROPERTY_ROLLOVER_FONT, PROPERTY_ROLLOVER_FOREGROUND, PROPERTY_SELECTION_BACKGROUND, PROPERTY_SELECTION_BACKGROUND_IMAGE, PROPERTY_SELECTION_ENABLED, PROPERTY_SELECTION_FONT, PROPERTY_SELECTION_FOREGROUND, PROPERTY_WIDTH, SELECTION_CHANGED_PROPERTY, SELECTION_MODEL_CHANGED_PROPERTY
 
Fields inherited from class nextapp.echo.app.Component
CHILD_VISIBLE_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_NEXT_ID_CHANGED_PROPERTY, FOCUS_PREVIOUS_ID_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY
 
Constructor Summary
protected DirectoryTable()
          Default constructor.
  DirectoryTable(DirectoryTableModel model)
          Create a new table using the specified model.
 
Method Summary
 DirectoryTableModel getModel()
          Return the model backing this table.
 void init()
          Life-cyle method invoked when the component is added to the component hierarchy.
 
Methods inherited from class com.sptci.echo.table.Table
addRow, addSelectionListener, deleteRow, deleteRow, fetchNavigation, fireRowSelection, insertRow, removeSelectionListener, setModel, updateNavigation, updateRow
 
Methods inherited from class nextapp.echo.app.Table
add, addActionListener, createDefaultColumnsFromModel, doRender, getActionCommand, getBorder, getColumnModel, getDefaultHeaderRenderer, getDefaultRenderer, getInsets, getRolloverBackground, getRolloverBackgroundImage, getRolloverFont, getRolloverForeground, getSelectionBackground, getSelectionBackgroundImage, getSelectionFont, getSelectionForeground, getSelectionModel, getWidth, hasActionListeners, invalidate, isAutoCreateColumnsFromModel, isHeaderVisible, isRolloverEnabled, isSelectionEnabled, processInput, remove, removeActionListener, setActionCommand, setAutoCreateColumnsFromModel, setBorder, setColumnModel, setDefaultHeaderRenderer, setDefaultRenderer, setHeaderVisible, setInsets, setRolloverBackground, setRolloverBackgroundImage, setRolloverEnabled, setRolloverFont, setRolloverForeground, setSelectionBackground, setSelectionBackgroundImage, setSelectionEnabled, setSelectionFont, setSelectionForeground, setSelectionModel, setWidth, validate
 
Methods inherited from class nextapp.echo.app.Component
add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, get, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusNextId, getFocusPreviousId, getFont, getForeground, getId, getIndex, getLayoutData, getLayoutDirection, getLocale, getLocalStyle, getParent, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isValidChild, isValidParent, isVisible, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, set, setBackground, setComponents, setEnabled, setFocusNextId, setFocusPreviousId, setFocusTraversalParticipant, setFont, setForeground, setId, setIndex, setLayoutData, setLayoutDirection, setLocale, setRenderId, setStyle, setStyleName, setVisible, verifyInput, visibleIndexOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryTable

protected DirectoryTable()
Default constructor. Cannot be instantiated.


DirectoryTable

public DirectoryTable(DirectoryTableModel model)
Create a new table using the specified model.

Parameters:
model - The model to use.
Method Detail

getModel

public DirectoryTableModel getModel()
Return the model backing this table.

Specified by:
getModel in interface SortableTable
Overrides:
getModel in class Table<File>
Returns:
The sortable table model backing this table.

init

public void init()
Life-cyle method invoked when the component is added to the component hierarchy. Sets default behaviour.

Overrides:
init in class Table<File>

SPT Core API