| |
|
| javax.swing.JComponent javax.swing.JTree
JTree | public class JTree extends JComponent implements Scrollable,Accessible(Code) | |
JTree
Implementation Notes:
- The
serialVersionUID fields are explicitly declared as a performance
optimization, not as a guarantee of serialization compatibility.
|
Method Summary | |
public void | addSelectionInterval(int index0, int index1) | public void | addSelectionPath(TreePath path) | public void | addSelectionPaths(TreePath[] paths) | public void | addSelectionRow(int row) | public void | addSelectionRows(int[] rows) | public void | addTreeExpansionListener(TreeExpansionListener l) | public void | addTreeSelectionListener(TreeSelectionListener l) | public void | addTreeWillExpandListener(TreeWillExpandListener l) | public void | cancelEditing() | public void | clearSelection() | protected void | clearToggledPaths() | public void | collapsePath(TreePath path) | public void | collapseRow(int row) | public String | convertValueToText(Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) | protected static TreeModel | createTreeModel(Object value) | protected TreeModelListener | createTreeModelListener() | public void | expandPath(TreePath path) | public void | expandRow(int row) | public void | fireTreeCollapsed(TreePath path) | public void | fireTreeExpanded(TreePath path) | public void | fireTreeWillCollapse(TreePath path) | public void | fireTreeWillExpand(TreePath path) | protected void | fireValueChanged(TreeSelectionEvent e) | public AccessibleContext | getAccessibleContext() | public TreePath | getAnchorSelectionPath() | public TreeCellEditor | getCellEditor() | public TreeCellRenderer | getCellRenderer() | public TreePath | getClosestPathForLocation(int x, int y) | public int | getClosestRowForLocation(int x, int y) | protected static TreeModel | getDefaultTreeModel() | protected Enumeration<TreePath> | getDescendantToggledPaths(TreePath parent) | public boolean | getDragEnabled() | public TreePath | getEditingPath() | public Enumeration<TreePath> | getExpandedDescendants(TreePath parent) | public boolean | getExpandsSelectedPaths() | public boolean | getInvokesStopCellEditing() | public Object | getLastSelectedPathComponent() | public TreePath | getLeadSelectionPath() | public int | getLeadSelectionRow() | public int | getMaxSelectionRow() | public int | getMinSelectionRow() | public TreeModel | getModel() | public TreePath | getNextMatch(String prefix, int startingRow, Position.Bias bias) | protected TreePath[] | getPathBetweenRows(int index0, int index1) | public Rectangle | getPathBounds(TreePath path) | public TreePath | getPathForLocation(int x, int y) | public TreePath | getPathForRow(int row) | public Dimension | getPreferredScrollableViewportSize() | public Rectangle | getRowBounds(int row) | public int | getRowCount() | public int | getRowForLocation(int x, int y) | public int | getRowForPath(TreePath path) | public int | getRowHeight() | public int | getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) | public boolean | getScrollableTracksViewportHeight() | public boolean | getScrollableTracksViewportWidth() | public int | getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) | public boolean | getScrollsOnExpand() | public int | getSelectionCount() | public TreeSelectionModel | getSelectionModel() | public TreePath | getSelectionPath() | public TreePath[] | getSelectionPaths() | public int[] | getSelectionRows() | public boolean | getShowsRootHandles() | public int | getToggleClickCount() | public String | getToolTipText(MouseEvent event) | public TreeExpansionListener[] | getTreeExpansionListeners() | public TreeSelectionListener[] | getTreeSelectionListeners() | public TreeWillExpandListener[] | getTreeWillExpandListeners() | public TreeUI | getUI() | public String | getUIClassID() | public int | getVisibleRowCount() | public boolean | hasBeenExpanded(TreePath path) | public boolean | isCollapsed(TreePath path) | public boolean | isCollapsed(int row) | public boolean | isEditable() | public boolean | isEditing() | public boolean | isExpanded(TreePath path) | public boolean | isExpanded(int row) | public boolean | isFixedRowHeight() | public boolean | isLargeModel() | public boolean | isPathEditable(TreePath path) | public boolean | isPathSelected(TreePath path) | public boolean | isRootVisible() | public boolean | isRowSelected(int row) | public boolean | isSelectionEmpty() | public boolean | isVisible(TreePath path) | public void | makeVisible(TreePath path) | protected boolean | removeDescendantSelectedPaths(TreePath path, boolean includePath) | protected void | removeDescendantToggledPaths(Enumeration<TreePath> toRemove) | public void | removeSelectionInterval(int index0, int index1) | public void | removeSelectionPath(TreePath path) | public void | removeSelectionPaths(TreePath[] paths) | public void | removeSelectionRow(int row) | public void | removeSelectionRows(int[] rows) | public void | removeTreeExpansionListener(TreeExpansionListener l) | public void | removeTreeSelectionListener(TreeSelectionListener l) | public void | removeTreeWillExpandListener(TreeWillExpandListener l) | public void | scrollPathToVisible(TreePath path) | public void | scrollRowToVisible(int row) | public void | setAnchorSelectionPath(TreePath path) | public void | setCellEditor(TreeCellEditor editor) | public void | setCellRenderer(TreeCellRenderer renderer) | public void | setDragEnabled(boolean enabled) | public void | setEditable(boolean flag) | protected void | setExpandedState(TreePath path, boolean state) | public void | setExpandsSelectedPaths(boolean expand) | public void | setInvokesStopCellEditing(boolean invokesStop) | public void | setLargeModel(boolean large) | public void | setLeadSelectionPath(TreePath path) | public void | setModel(TreeModel model) | public void | setRootVisible(boolean visible) | public void | setRowHeight(int height) | public void | setScrollsOnExpand(boolean scroll) | public void | setSelectionInterval(int index0, int index1) | public void | setSelectionModel(TreeSelectionModel model) | public void | setSelectionPath(TreePath path) | public void | setSelectionPaths(TreePath[] paths) | public void | setSelectionRow(int row) | public void | setSelectionRows(int[] rows) | public void | setShowsRootHandles(boolean showHandles) | public void | setToggleClickCount(int clickCount) | public void | setUI(TreeUI ui) | public void | setVisibleRowCount(int count) | public void | startEditingAtPath(TreePath path) | public boolean | stopEditing() | public void | treeDidChange() | public void | updateUI() |
ANCHOR_SELECTION_PATH_PROPERTY | final public static String ANCHOR_SELECTION_PATH_PROPERTY(Code) | | |
CELL_EDITOR_PROPERTY | final public static String CELL_EDITOR_PROPERTY(Code) | | |
CELL_RENDERER_PROPERTY | final public static String CELL_RENDERER_PROPERTY(Code) | | |
EDITABLE_PROPERTY | final public static String EDITABLE_PROPERTY(Code) | | |
EXPANDS_SELECTED_PATHS_PROPERTY | final public static String EXPANDS_SELECTED_PATHS_PROPERTY(Code) | | |
INVOKES_STOP_CELL_EDITING_PROPERTY | final public static String INVOKES_STOP_CELL_EDITING_PROPERTY(Code) | | |
LARGE_MODEL_PROPERTY | final public static String LARGE_MODEL_PROPERTY(Code) | | |
LEAD_SELECTION_PATH_PROPERTY | final public static String LEAD_SELECTION_PATH_PROPERTY(Code) | | |
ROOT_VISIBLE_PROPERTY | final public static String ROOT_VISIBLE_PROPERTY(Code) | | |
ROW_HEIGHT_PROPERTY | final public static String ROW_HEIGHT_PROPERTY(Code) | | |
SCROLLS_ON_EXPAND_PROPERTY | final public static String SCROLLS_ON_EXPAND_PROPERTY(Code) | | |
SELECTION_MODEL_PROPERTY | final public static String SELECTION_MODEL_PROPERTY(Code) | | |
SHOWS_ROOT_HANDLES_PROPERTY | final public static String SHOWS_ROOT_HANDLES_PROPERTY(Code) | | |
TOGGLE_CLICK_COUNT_PROPERTY | final public static String TOGGLE_CLICK_COUNT_PROPERTY(Code) | | |
TREE_MODEL_PROPERTY | final public static String TREE_MODEL_PROPERTY(Code) | | |
VISIBLE_ROW_COUNT_PROPERTY | final public static String VISIBLE_ROW_COUNT_PROPERTY(Code) | | |
editable | protected boolean editable(Code) | | |
invokesStopCellEditing | protected boolean invokesStopCellEditing(Code) | | |
largeModel | protected boolean largeModel(Code) | | |
rootVisible | protected boolean rootVisible(Code) | | |
rowHeight | protected int rowHeight(Code) | | |
scrollsOnExpand | protected boolean scrollsOnExpand(Code) | | |
selectionRedirector | protected transient TreeSelectionRedirector selectionRedirector(Code) | | |
showsRootHandles | protected boolean showsRootHandles(Code) | | |
toggleClickCount | protected int toggleClickCount(Code) | | |
visibleRowCount | protected int visibleRowCount(Code) | | |
addSelectionInterval | public void addSelectionInterval(int index0, int index1)(Code) | | |
addSelectionPaths | public void addSelectionPaths(TreePath[] paths)(Code) | | |
addSelectionRow | public void addSelectionRow(int row)(Code) | | |
addSelectionRows | public void addSelectionRows(int[] rows)(Code) | | |
cancelEditing | public void cancelEditing()(Code) | | |
clearSelection | public void clearSelection()(Code) | | |
clearToggledPaths | protected void clearToggledPaths()(Code) | | |
collapseRow | public void collapseRow(int row)(Code) | | |
convertValueToText | public String convertValueToText(Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)(Code) | | |
expandRow | public void expandRow(int row)(Code) | | |
getClosestPathForLocation | public TreePath getClosestPathForLocation(int x, int y)(Code) | | |
getClosestRowForLocation | public int getClosestRowForLocation(int x, int y)(Code) | | |
getDragEnabled | public boolean getDragEnabled()(Code) | | |
getExpandsSelectedPaths | public boolean getExpandsSelectedPaths()(Code) | | |
getInvokesStopCellEditing | public boolean getInvokesStopCellEditing()(Code) | | |
getLastSelectedPathComponent | public Object getLastSelectedPathComponent()(Code) | | |
getLeadSelectionRow | public int getLeadSelectionRow()(Code) | | |
getMaxSelectionRow | public int getMaxSelectionRow()(Code) | | |
getMinSelectionRow | public int getMinSelectionRow()(Code) | | |
getPathBetweenRows | protected TreePath[] getPathBetweenRows(int index0, int index1)(Code) | | |
getPathForLocation | public TreePath getPathForLocation(int x, int y)(Code) | | |
getPreferredScrollableViewportSize | public Dimension getPreferredScrollableViewportSize()(Code) | | |
getRowCount | public int getRowCount()(Code) | | |
getRowForLocation | public int getRowForLocation(int x, int y)(Code) | | |
getRowHeight | public int getRowHeight()(Code) | | |
getScrollableBlockIncrement | public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)(Code) | | |
getScrollableTracksViewportHeight | public boolean getScrollableTracksViewportHeight()(Code) | | |
getScrollableTracksViewportWidth | public boolean getScrollableTracksViewportWidth()(Code) | | |
getScrollableUnitIncrement | public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)(Code) | | |
getScrollsOnExpand | public boolean getScrollsOnExpand()(Code) | | |
getSelectionCount | public int getSelectionCount()(Code) | | |
getSelectionRows | public int[] getSelectionRows()(Code) | | |
getShowsRootHandles | public boolean getShowsRootHandles()(Code) | | |
getToggleClickCount | public int getToggleClickCount()(Code) | | |
getVisibleRowCount | public int getVisibleRowCount()(Code) | | |
isCollapsed | public boolean isCollapsed(int row)(Code) | | |
isEditable | public boolean isEditable()(Code) | | |
isEditing | public boolean isEditing()(Code) | | |
isExpanded | public boolean isExpanded(int row)(Code) | | |
isFixedRowHeight | public boolean isFixedRowHeight()(Code) | | |
isLargeModel | public boolean isLargeModel()(Code) | | |
isRootVisible | public boolean isRootVisible()(Code) | | |
isRowSelected | public boolean isRowSelected(int row)(Code) | | |
isSelectionEmpty | public boolean isSelectionEmpty()(Code) | | |
removeDescendantSelectedPaths | protected boolean removeDescendantSelectedPaths(TreePath path, boolean includePath)(Code) | | |
removeSelectionInterval | public void removeSelectionInterval(int index0, int index1)(Code) | | |
removeSelectionPath | public void removeSelectionPath(TreePath path)(Code) | | |
removeSelectionPaths | public void removeSelectionPaths(TreePath[] paths)(Code) | | |
removeSelectionRow | public void removeSelectionRow(int row)(Code) | | |
removeSelectionRows | public void removeSelectionRows(int[] rows)(Code) | | |
scrollPathToVisible | public void scrollPathToVisible(TreePath path)(Code) | | |
scrollRowToVisible | public void scrollRowToVisible(int row)(Code) | | |
setAnchorSelectionPath | public void setAnchorSelectionPath(TreePath path)(Code) | | |
setDragEnabled | public void setDragEnabled(boolean enabled)(Code) | | |
setEditable | public void setEditable(boolean flag)(Code) | | |
setExpandedState | protected void setExpandedState(TreePath path, boolean state)(Code) | | |
setExpandsSelectedPaths | public void setExpandsSelectedPaths(boolean expand)(Code) | | |
setInvokesStopCellEditing | public void setInvokesStopCellEditing(boolean invokesStop)(Code) | | |
setLargeModel | public void setLargeModel(boolean large)(Code) | | |
setLeadSelectionPath | public void setLeadSelectionPath(TreePath path)(Code) | | |
setRootVisible | public void setRootVisible(boolean visible)(Code) | | |
setRowHeight | public void setRowHeight(int height)(Code) | | |
setScrollsOnExpand | public void setScrollsOnExpand(boolean scroll)(Code) | | |
setSelectionInterval | public void setSelectionInterval(int index0, int index1)(Code) | | |
setSelectionPaths | public void setSelectionPaths(TreePath[] paths)(Code) | | |
setSelectionRow | public void setSelectionRow(int row)(Code) | | |
setSelectionRows | public void setSelectionRows(int[] rows)(Code) | | |
setShowsRootHandles | public void setShowsRootHandles(boolean showHandles)(Code) | | |
setToggleClickCount | public void setToggleClickCount(int clickCount)(Code) | | |
setVisibleRowCount | public void setVisibleRowCount(int count)(Code) | | |
stopEditing | public boolean stopEditing()(Code) | | |
treeDidChange | public void treeDidChange()(Code) | | |
updateUI | public void updateUI()(Code) | | |
Methods inherited from javax.swing.JComponent | public void addAncestorListener(AncestorListener ancestorListener)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) public synchronized void addVetoableChangeListener(VetoableChangeListener listener)(Code)(Java Doc) final void componentInputMapChanged(ComponentInputMap map)(Code)(Java Doc) public void computeVisibleRect(Rectangle rect)(Code)(Java Doc) public boolean contains(int x, int y)(Code)(Java Doc) public JToolTip createToolTip()(Code)(Java Doc) public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, int oldValue, int newValue)(Code)(Java Doc) protected void fireVetoableChange(String property, Object oldValue, Object newValue) throws PropertyVetoException(Code)(Java Doc) public ActionListener getActionForKeyStroke(KeyStroke keyStroke)(Code)(Java Doc) final public ActionMap getActionMap()(Code)(Java Doc) final ActionMap getActionMap(boolean forceCreate)(Code)(Java Doc) public float getAlignmentX()(Code)(Java Doc) public float getAlignmentY()(Code)(Java Doc) public AncestorListener[] getAncestorListeners()(Code)(Java Doc) public boolean getAutoscrolls()(Code)(Java Doc) public Border getBorder()(Code)(Java Doc) public Rectangle getBounds(Rectangle bounds)(Code)(Java Doc) final public Object getClientProperty(Object key)(Code)(Java Doc) protected Graphics getComponentGraphics(Graphics g)(Code)(Java Doc) public JPopupMenu getComponentPopupMenu()(Code)(Java Doc) public int getConditionForKeyStroke(KeyStroke keyStroke)(Code)(Java Doc) public int getDebugGraphicsOptions()(Code)(Java Doc) public static Locale getDefaultLocale()(Code)(Java Doc) public Graphics getGraphics()(Code)(Java Doc) public boolean getInheritsPopupMenu()(Code)(Java Doc) final public InputMap getInputMap(int condition)(Code)(Java Doc) final public InputMap getInputMap()(Code)(Java Doc) final InputMap getInputMap(int condition, boolean forceCreate)(Code)(Java Doc) public InputVerifier getInputVerifier()(Code)(Java Doc) public Insets getInsets()(Code)(Java Doc) public Insets getInsets(Insets insets)(Code)(Java Doc) public T[] getListeners(Class<T> listenersClass)(Code)(Java Doc) public Point getLocation(Point extLocation)(Code)(Java Doc) public Dimension getMaximumSize()(Code)(Java Doc) public Dimension getMinimumSize()(Code)(Java Doc) public Component getNextFocusableComponent()(Code)(Java Doc) public Point getPopupLocation(MouseEvent event)(Code)(Java Doc) public Dimension getPreferredSize()(Code)(Java Doc) public KeyStroke[] getRegisteredKeyStrokes()(Code)(Java Doc) public JRootPane getRootPane()(Code)(Java Doc) public Dimension getSize(Dimension extSize)(Code)(Java Doc) public Point getToolTipLocation(MouseEvent event)(Code)(Java Doc) public String getToolTipText()(Code)(Java Doc) public String getToolTipText(MouseEvent event)(Code)(Java Doc) public Container getTopLevelAncestor()(Code)(Java Doc) public TransferHandler getTransferHandler()(Code)(Java Doc) public String getUIClassID()(Code)(Java Doc) public boolean getVerifyInputWhenFocusTarget()(Code)(Java Doc) public synchronized VetoableChangeListener[] getVetoableChangeListeners()(Code)(Java Doc) public Rectangle getVisibleRect()(Code)(Java Doc) public void grabFocus()(Code)(Java Doc) boolean hasListener(Class<T> listenerType, EventListener l)(Code)(Java Doc) boolean insideDoubleBuffering()(Code)(Java Doc) public boolean isDoubleBuffered()(Code)(Java Doc) public static boolean isLightweightComponent(Component component)(Code)(Java Doc) public boolean isManagingFocus()(Code)(Java Doc) public boolean isOpaque()(Code)(Java Doc) public boolean isOptimizedDrawingEnabled()(Code)(Java Doc) public boolean isPaintingTile()(Code)(Java Doc) public boolean isRequestFocusEnabled()(Code)(Java Doc) public boolean isValidateRoot()(Code)(Java Doc) public void paint(Graphics graphics)(Code)(Java Doc) protected void paintBorder(Graphics graphics)(Code)(Java Doc) protected void paintChildren(Graphics graphics)(Code)(Java Doc) protected void paintComponent(Graphics graphics)(Code)(Java Doc) void paintDoubleBuffered(Graphics g)(Code)(Java Doc) public void paintImmediately(Rectangle rect)(Code)(Java Doc) public void paintImmediately(int x, int y, int width, int height)(Code)(Java Doc) protected String paramString()(Code)(Java Doc) public void print(Graphics g)(Code)(Java Doc) public void printAll(Graphics g)(Code)(Java Doc) protected void printBorder(Graphics g)(Code)(Java Doc) protected void printChildren(Graphics g)(Code)(Java Doc) protected void printComponent(Graphics g)(Code)(Java Doc) protected void processComponentKeyEvent(KeyEvent event)(Code)(Java Doc) protected boolean processKeyBinding(KeyStroke keyStroke, KeyEvent keyEvent, int condition, boolean pressed)(Code)(Java Doc) static boolean processKeyBindings(KeyEvent event, Component source)(Code)(Java Doc) protected void processKeyEvent(KeyEvent event)(Code)(Java Doc) final public void putClientProperty(Object key, Object value)(Code)(Java Doc) public void registerKeyboardAction(ActionListener action, String command, KeyStroke keyStroke, int condition)(Code)(Java Doc) public void registerKeyboardAction(ActionListener action, KeyStroke keyStroke, int condition)(Code)(Java Doc) public void removeAncestorListener(AncestorListener ancestorListener)(Code)(Java Doc) public void removeNotify()(Code)(Java Doc) public synchronized void removeVetoableChangeListener(VetoableChangeListener listener)(Code)(Java Doc) public void repaint(Rectangle rect)(Code)(Java Doc) public void repaint(long tm, int x, int y, int width, int height)(Code)(Java Doc) public boolean requestDefaultFocus()(Code)(Java Doc) public void requestFocus()(Code)(Java Doc) public boolean requestFocus(boolean temporary)(Code)(Java Doc) public boolean requestFocusInWindow()(Code)(Java Doc) protected boolean requestFocusInWindow(boolean temporary)(Code)(Java Doc) public void resetKeyboardActions()(Code)(Java Doc) public void revalidate()(Code)(Java Doc) public void scrollRectToVisible(Rectangle rect)(Code)(Java Doc) final public void setActionMap(ActionMap newActionMap)(Code)(Java Doc) public void setAlignmentX(float alignment)(Code)(Java Doc) public void setAlignmentY(float alignment)(Code)(Java Doc) public void setAutoscrolls(boolean scrolls)(Code)(Java Doc) public void setBorder(Border newBorder)(Code)(Java Doc) public void setComponentPopupMenu(JPopupMenu popup)(Code)(Java Doc) public void setDebugGraphicsOptions(int newDebugGraphicsOptions)(Code)(Java Doc) public static void setDefaultLocale(Locale locale)(Code)(Java Doc) public void setDoubleBuffered(boolean flag)(Code)(Java Doc) public void setEnabled(boolean enabled)(Code)(Java Doc) public void setInheritsPopupMenu(boolean value)(Code)(Java Doc) final public void setInputMap(int condition, InputMap map)(Code)(Java Doc) public void setInputVerifier(InputVerifier verifier)(Code)(Java Doc) public void setNextFocusableComponent(Component component)(Code)(Java Doc) public void setOpaque(boolean opaque)(Code)(Java Doc) public void setRequestFocusEnabled(boolean enabled)(Code)(Java Doc) public void setToolTipText(String text)(Code)(Java Doc) public void setTransferHandler(TransferHandler newHandler)(Code)(Java Doc) protected void setUI(ComponentUI newUI)(Code)(Java Doc) public void setVerifyInputWhenFocusTarget(boolean verifyInput)(Code)(Java Doc) public void unregisterKeyboardAction(KeyStroke keyStroke)(Code)(Java Doc) public void update(Graphics graphics)(Code)(Java Doc) public void updateUI()(Code)(Java Doc)
|
|
|
|