You are on page 1of 1

javax.swing.

JTree
Dimension int boolean boolean int getPreferredScrollableViewportSize () getScrollableBlockIncrement (Rectangle visibleRect, int orientation, int direction) getScrollableTracksViewportHeight () getScrollableTracksViewportWidth () getScrollableUnitIncrement (Rectangle visibleRect, int orientation, int direction)

Scrollable JTree (continued)

Methods declared in supertypes are hidden in subtypes

JTree
JTree JTree JTree JTree JTree JTree JTree () (Object[] value) (Vector value) (Hashtable value) (TreeNode root) (TreeModel newModel) (TreeNode root, boolean asksAllowsChildren)

createTreeModel (Object value) getDefaultTreeModel ()

java.awt. Component

java.awt. Container

add / removeTreeExpansionListener (TreeExpansionListener tel) add / removeTreeSelectionListener (TreeSelectionListener tsl) add / removeTreeWillExpandListener (TreeWillExpandListener tel) createTreeModelListener () fireTreeCollapsed (TreePath path) fireTreeExpanded (TreePath path) fireTreeWillCollapse (TreePath path) fireTreeWillExpand (TreePath path) fireValueChanged (TreeSelectionEvent e) getTreeExpansionListeners () getTreeSelectionListeners () getTreeWillExpandListeners ()

JComponent

Static Methods # TreeModel # TreeModel Event Methods void void void # TreeModelListener void void void void # void TreeExpansionListener[] TreeSelectionListener[] TreeWillExpandListener[] Other Methods void void void void String

void void boolean void void void void boolean void void

cancelEditing () clearSelection () collapsePath (TreePath path) collapseRow (int row) convertValueToText (Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) expandPath (TreePath path) expandRow (int row) hasBeenExpanded (TreePath path) makeVisible (TreePath path) scrollPathToVisible (TreePath path) scrollRowToVisible (int row) startEditingAtPath (TreePath path) stopEditing () treeDidChange () clearToggledPaths ()

String CELL_RENDERER_PROPERTY, TREE_MODEL_PROPERTY, ROOT_VISIBLE_PROPERTY, SHOWS_ROOT_HANDLES_PROPERTY, ROW_HEIGHT_PROPERTY, CELL_EDITOR_PROPERTY, EDITABLE_PROPERTY, LARGE_MODEL_PROPERTY, SELECTION_MODEL_PROPERTY, VISIBLE_ROW_COUNT_PROPERTY, INVOKES_STOP_CELL_EDITING_PROPERTY, SCROLLS_ON_EXPAND_PROPERTY, TOGGLE_CLICK_COUNT_PROPERTY, LEAD_SELECTION_PATH_PROPERTY, ANCHOR_SELECTION_PATH_PROPERTY, EXPANDS_SELECTED_PATHS_PROPERTY class DynamicUtilTreeNode

TreePath TreeCellEditor TreeCellRenderer TreePath int # Enumeration boolean TreePath Enumeration boolean boolean Object TreePath int int int TreeModel TreePath # TreePath[] Rectangle TreePath TreePath Rectangle int int int int boolean int TreeSelectionModel TreePath TreePath[] int[] boolean int TreeUI int boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean boolean # void void void void void void void void # boolean # void

get / setAnchorSelectionPath () get / setCellEditor () get / setCellRenderer () getClosestPathForLocation (int x, int y) getClosestRowForLocation (int x, int y) getDescendantToggledPaths (TreePath parent) get / setDragEnabled () getEditingPath () getExpandedDescendants (TreePath parent) get / setExpandsSelectedPaths () get / setInvokesStopCellEditing () getLastSelectedPathComponent () get / setLeadSelectionPath () getLeadSelectionRow () getMaxSelectionRow () getMinSelectionRow () get / setModel () getNextMatch (String prefix, int startingRow, Position.Bias bias) getPathBetweenRows (int index0, int index1) getPathBounds (TreePath path) getPathForLocation (int x, int y) getPathForRow (int row) getRowBounds (int row) getRowCount () getRowForLocation (int x, int y) getRowForPath (TreePath path) get / setRowHeight () get / setScrollsOnExpand () getSelectionCount () get / setSelectionModel () get / setSelectionPath () get / setSelectionPaths () get / setSelectionRows () get / setShowsRootHandles () get / setToggleClickCount () get / setUI () get / setVisibleRowCount () isCollapsed (TreePath path) isCollapsed (int row) is / setEditable () isEditing () isExpanded (TreePath path) isExpanded (int row) isFixedRowHeight () is / setLargeModel () isPathEditable (TreePath path) isPathSelected (TreePath path) is / setRootVisible () isRowSelected (int row) isSelectionEmpty () isVisible (TreePath path) setExpandedState (TreePath path, boolean state) setSelectionInterval (int index0, int index1) setSelectionRow (int row) add / removeSelectionInterval (int index0, int index1) add / removeSelectionPath (TreePath path) add / removeSelectionPaths (TreePath[] paths) add / removeSelectionRow (int row) add / removeSelectionRows (int[] rows) removeDescendantSelectedPaths (TreePath path, boolean includePath) removeDescendantToggledPaths (Enumeration toRemove)