SPT Core API

com.sptci.echo.tree
Class Tree

java.lang.Object
  extended by nextapp.echo.app.Component
      extended by nextapp.echo.extras.app.Tree
          extended by com.sptci.echo.tree.Tree
All Implemented Interfaces:
Serializable, RenderIdSupport
Direct Known Subclasses:
FileSystemTree

public class Tree
extends Tree

The default tree component for use in SPT projects. Sets a custom tree cell renderer and other defaults.

© Copyright 2009 Sans Pareil Technologies, Inc.

Version:
$Id: Tree.java 4856 2009-08-11 15:22:46Z rakesh $
Author:
Rakesh 2009-06-02
See Also:
Serialized Form

Field Summary
 
Fields inherited from class nextapp.echo.extras.app.Tree
ACTION_LISTENERS_CHANGED_PROPERTY, AUTO_CREATE_COLUMNS_FROM_MODEL_CHANGED_PROPERTY, CELL_RENDERER_CHANGED_PROPERTY, COLUMN_MODEL_CHANGED_PROPERTY, COLUMN_WIDTH_CHANGED_PROPERTY, DEFAULT_HEADER_RENDERER_CHANGED_PROPERTY, DEFAULT_RENDERER_CHANGED_PROPERTY, EXPAND_ACTION, EXPANSION_STATE_CHANGED_PROPERTY, HEADER_ROW, INPUT_ACTION, LINE_STYLE_DOTTED, LINE_STYLE_NONE, LINE_STYLE_SOLID, MODEL_CHANGED_PROPERTY, PROPERTY_ACTION_COMMAND, PROPERTY_BORDER, PROPERTY_HEADER_VISIBLE, PROPERTY_INSETS, PROPERTY_LINE_STYLE, PROPERTY_NODE_CLOSED_BOTTOM_ICON, PROPERTY_NODE_CLOSED_ICON, PROPERTY_NODE_OPEN_BOTTOM_ICON, PROPERTY_NODE_OPEN_ICON, PROPERTY_ROLLOVER_BACKGROUND, PROPERTY_ROLLOVER_BACKGROUND_IMAGE, PROPERTY_ROLLOVER_BORDER, PROPERTY_ROLLOVER_ENABLED, PROPERTY_ROLLOVER_FONT, PROPERTY_ROLLOVER_FOREGROUND, PROPERTY_ROOT_VISIBLE, PROPERTY_SELECTION_BACKGROUND, PROPERTY_SELECTION_BACKGROUND_IMAGE, PROPERTY_SELECTION_BORDER, PROPERTY_SELECTION_ENABLED, PROPERTY_SELECTION_FONT, PROPERTY_SELECTION_FOREGROUND, PROPERTY_SHOWS_ROOT_HANDLE, PROPERTY_WIDTH, SELECTION_CHANGED_PROPERTY, SELECTION_MODE_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
Tree()
          Default constructor.
Tree(TreeModel treeModel)
          Initialise a new tree using the specified model.
Tree(TreeModel treeModel, TreeColumnModel treeColumnModel)
          Initialise a new tree using the specified model and column model.
 
Method Summary
 
Methods inherited from class nextapp.echo.extras.app.Tree
addActionListener, addTreeExpansionListener, collapse, collapseAll, collapseAll, createDefaultColumnsFromModel, dispose, expand, expandAll, expandAll, fireExpansionStateUpdate, getActionCommand, getBorder, getCellRenderer, getColumnModel, getComponent, getComponent, getDefaultHeaderRenderer, getDefaultRenderer, getInsets, getLineStyle, getModel, getNodeClosedBottomIcon, getNodeClosedIcon, getNodeOpenBottomIcon, getNodeOpenIcon, getPathForRow, getRolloverBackground, getRolloverBackgroundImage, getRolloverBorder, getRolloverFont, getRolloverForeground, getRowForPath, getSelectionBackground, getSelectionBackgroundImage, getSelectionBorder, getSelectionFont, getSelectionForeground, getSelectionModel, getWidth, init, isAutoCreateColumnsFromModel, isExpanded, isExpanded, isHeaderVisible, isRolloverEnabled, isRootVisible, isSelectionEnabled, isShowsRootHandle, processInput, removeActionListener, removeTreeExpansionListener, setActionCommand, setAutoCreateColumnsFromModel, setBorder, setCellRenderer, setColumnModel, setDefaultHeaderRenderer, setDefaultRenderer, setExpandedState, setHeaderVisible, setInsets, setLineStyle, setModel, setNodeClosedBottomIcon, setNodeClosedIcon, setNodeOpenBottomIcon, setNodeOpenIcon, setRolloverBackground, setRolloverBackgroundImage, setRolloverBorder, setRolloverEnabled, setRolloverFont, setRolloverForeground, setRootVisible, setSelectionBackground, setSelectionBackgroundImage, setSelectionBorder, setSelectionEnabled, setSelectionFont, setSelectionForeground, setSelectionModel, setShowsRootHandle, setWidth, validate
 
Methods inherited from class nextapp.echo.app.Component
add, add, addPropertyChangeListener, addPropertyChangeListener, 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, 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

Tree

public Tree()
Default constructor. Initialise a new instance using TreeCellRenderer.


Tree

public Tree(TreeModel treeModel)
Initialise a new tree using the specified model.

Parameters:
treeModel - The tree model backing the tree.

Tree

public Tree(TreeModel treeModel,
            TreeColumnModel treeColumnModel)
Initialise a new tree using the specified model and column model.

Parameters:
treeModel - The model backing the tree.
treeColumnModel - The column model backing the tree.

SPT Core API