public class Tree extends Tree implements View
Tree that uses the SPT standard icons.
Copyright 2007 Sans Pareil Technologies, Inc.
Tree.TreeModelHandler, Tree.TreeRowMapper, Tree.TreeSelectionForwarderDEFAULT_STYLE, INPUT_SELECT, INPUT_TOGGLE, MODEL_STRUCTURE_CHANGED_PROPERTY, NODE_CHANGED_PROPERTY, PROPERTY_ACTION_COMMAND, PROPERTY_CELL_RENDERER, PROPERTY_CELL_WIDTH_CONTRAINED, PROPERTY_LINES_DRAWN, PROPERTY_MODEL, PROPERTY_NULL_ACTION_COMMANDS_RAISE_EVENTS, PROPERTY_PARTIAL_UPDATE_SUPPORT, PROPERTY_ROOT_AUTO_EXPANDED, PROPERTY_ROOT_VISIBLE, PROPERTY_ROW_HEIGHT, PROPERTY_SCROLL_INTO_VIEW_USED, PROPERTY_SELECTION_INCLUDES_ICON, PROPERTY_SELECTION_MODEL, PROPERTY_SHOWS_ROOT_HANDLES, PROPERTY_TREE_ICONSPROPERTY_HIDDENCHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_TRAVERSAL_INDEX_CHANGED_PROPERTY, FOCUS_TRAVERSAL_PARTICIPANT_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_PROPERTYPROPERTY_ACCESS_KEYPROPERTY_BORDERCURSOR_AUTO, CURSOR_CROSSHAIR, CURSOR_CUSTOM_URI, CURSOR_DEFAULT, CURSOR_E_RESIZE, CURSOR_HELP, CURSOR_MOVE, CURSOR_N_RESIZE, CURSOR_NE_RESIZE, CURSOR_NW_RESIZE, CURSOR_POINTER, CURSOR_S_RESIZE, CURSOR_SE_RESIZE, CURSOR_SW_RESIZE, CURSOR_TEXT, CURSOR_W_RESIZE, CURSOR_WAIT, PROPERTY_MOUSE_CURSOR, PROPERTY_MOUSE_CURSOR_URIDEFAULT_INSETS, DEFAULT_OUTSETS, PROPERTY_INSETS, PROPERTY_OUTSETSPROPERTY_WIDTHPROPERTY_HEIGHTPROPERTY_TOOL_TIP_TEXT| Constructor and Description |
|---|
Tree()
Create a Tree with a
DefaultMutableTreeNode
as its root, which displays the root node. |
Tree(TreeModel model)
Create a new tree using the specified
TreeModel |
Tree(TreeNode root)
Create a tree with the specified
TreeNode as its
root, which displays the root node. |
Tree(TreeNode root,
boolean asksAllowsChildren)
Create a tree with the specified
TreeNode as its
root, which displays the root node and which decides whether a node is a
leaf node in the specified manner. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setDefaults()
Set defaults for the newly constructed component.
|
addActionListener, addSelectionPath, addSelectionPaths, addTreeExpansionListener, addTreeSelectionListener, addTreeWillExpandListener, clearToggledPaths, collapseAll, collapsePath, collapseRow, createTreeModelListener, expandAll, expandPath, expandRow, fireActionPerformed, fireTreeCollapsed, fireTreeExpanded, fireTreeWillCollapse, fireTreeWillExpand, fireValueChanged, getActionCommand, getCellRenderer, getComponent, getDescendantToggledPaths, getDirtyPaths, getExpandedDescendants, getLastExpandedPaths, getLastSelectedPathComponent, getLeadSelectionPath, getModel, getPartialUpdateSupport, getPathForRow, getRowCount, getRowForPath, getRowHeight, getRowsForPaths, getSelectionCount, getSelectionModel, getSelectionPath, getSelectionPaths, getShowsRootHandles, getTreeIcons, hasEverBeenExpanded, invalidate, isCellWidthConstrained, isCollapsed, isCollapsed, isExpanded, isExpanded, isLinesDrawn, isNullActionCommandsRaiseEvents, isPathSelected, isRootAutoExpanded, isRootVisible, isScrollIntoViewUsed, isSelectionEmpty, isSelectionIncludesIcon, isVisible, makeVisible, processInput, removeActionListener, removeDescendantToggledPaths, removeSelectionPath, removeSelectionPaths, removeTreeExpansionListener, removeTreeSelectionListener, removeTreeWillExpandListener, setActionCommand, setCellRenderer, setCellWidthConstrained, setEnabled, setExpandedState, setLinesDrawn, setModel, setNullActionCommandsRaiseEvents, setPartialUpdateSupport, setRootAutoExpanded, setRootVisible, setRowHeight, setScrollIntoViewUsed, setSelectionIncludesIcon, setSelectionModel, setSelectionPath, setSelectionPaths, setShowsRootHandles, setTreeIcons, setVisible, toggleAllNodes, validategetAccessKey, getBorder, getHeight, getInsets, getMouseCursor, getMouseCursorUri, getOutsets, getToolTipText, getWidth, setAccessKey, setBorder, setHeight, setInsets, setMouseCursor, setMouseCursorUri, setOutsets, setToolTipText, setWidthgetAttribute, getAttributeNames, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, getRenderProperty, isHidden, setAttribute, setHidden, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setPropertyadd, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusTraversalIndex, getFont, getForeground, getId, getIndexedProperty, getLayoutData, getLayoutDirection, getLocale, getParent, getProperty, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLayoutDirection, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isValidChild, isValidParent, isVisible, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, setBackground, setFocusTraversalIndex, setFocusTraversalParticipant, setFont, setForeground, setId, setIndexedProperty, setLayoutData, setLayoutDirection, setLocale, setProperty, setRenderId, setStyle, setStyleName, verifyInput, visibleIndexOfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRenderProperty, getRenderPropertypublic Tree()
DefaultMutableTreeNode
as its root, which displays the root node.setDefaults(),
Tree.Tree()public Tree(TreeModel model)
TreeModelmodel - The tree model to use for the tree.setDefaults(),
Tree.Tree( TreeModel )public Tree(TreeNode root)
TreeNode as its
root, which displays the root node.root - The root tree node for the tree.setDefaults(),
Tree.Tree( TreeNode )public Tree(TreeNode root, boolean asksAllowsChildren)
TreeNode as its
root, which displays the root node and which decides whether a node is a
leaf node in the specified manner.root - The root tree node for the tree.asksAllowsChildren - A flag indicating whether nodes are determined
as having children by querying the node or not.setDefaults(),
Tree.Tree( TreeNode, boolean )protected void setDefaults()
Tree.PROPERTY_SELECTION_MODEL since the TreeSelectionModel is too tightly coupled with the
Tree source code.