ImageObserver
, MenuContainer
, Serializable
, Accessible
, Scrollable
Nested Classes
protected class
This class implements accessibility support for the JTree
class.
static final class
A subclass of TransferHandler.DropLocation
representing a drop location for a JTree
.
static class
DynamicUtilTreeNode
can wrap vectors/hashtables/arrays/strings and create the appropriate children tree nodes as necessary.
protected static class
EmptySelectionModel
is a TreeSelectionModel
that does not allow anything to be selected.
protected class
Listens to the model and updates the expandedState
accordingly when nodes are removed, or changed.
protected class
Handles creating a new TreeSelectionEvent
with the JTree
as the source and passing it off to all the listeners.
Fields
Bound property name for anchor selection path.
Bound property name for cellEditor
.
Bound property name for cellRenderer
.
The cell used to draw nodes.
protected boolean
Bound property name for editable
.
Bound property name for expands selected paths property
Bound property name for messagesStopCellEditing
.
protected boolean
If true, when editing is to be stopped by way of selection changing, data in tree changing or other means stopCellEditing
is invoked, and changes are saved.
Bound property name for largeModel
.
protected boolean
Is this tree a large model?
Bound property name for leadSelectionPath
.
Bound property name for rootVisible
.
protected boolean
True if the root node is displayed, false if its children are the highest visible nodes.
Bound property name for rowHeight
.
protected int
Height to use for each display row.
Bound property name for scrollsOnExpand
.
protected boolean
If true, when a node is expanded, as many of the descendants are scrolled to be visible.
Bound property name for selectionModel.
Models the set of selected nodes in this tree.
Creates a new event and passed it off the selectionListeners
.
Bound property name for showsRootHandles
.
protected boolean
True if handles are displayed at the topmost level of the tree.
Bound property name for toggleClickCount
.
protected int
Number of mouse clicks before a node is expanded.
Bound property name for treeModel
.
The model that defines the tree displayed by this object.
Updates the expandedState
.
Bound property name for visibleRowCount
.
protected int
Number of rows to make visible at one time.
Constructors
Returns a JTree
with a sample model.
Returns a JTree
with each element of the specified array as the child of a new root node which is not displayed.
Returns a JTree
created from a Hashtable
which does not display with root.
Returns a JTree
with each element of the specified Vector
as the child of a new root node which is not displayed.
Returns an instance of JTree
which displays the root node -- the tree is created using the specified data model.
Returns a JTree
with the specified TreeNode
as its root, which displays the root node.
Returns a JTree
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.
void
Adds the specified rows (inclusive) to the selection.
void
Adds the node identified by the specified TreePath
to the current selection.
void
Adds each path in the array of paths to the current selection.
void
Adds the path at the specified row to the current selection.
void
Adds the paths at each of the specified rows to the current selection.
void
Adds a listener for TreeExpansion
events.
void
Adds a listener for TreeSelection
events.
void
Adds a listener for TreeWillExpand
events.
void
Cancels the current editing session.
void
protected void
Clears the cache of toggled tree paths.
void
Ensures that the node identified by the specified path is collapsed and viewable.
void
Ensures that the node in the specified row is collapsed.
Called by the renderers to convert the specified value to text.
Returns a TreeModel
wrapping the specified object.
Creates and returns an instance of TreeModelHandler
.
void
Ensures that the node identified by the specified path is expanded and viewable.
void
Ensures that the node in the specified row is expanded and viewable.
void
Notifies all listeners that have registered interest for notification on this event type.
void
Notifies all listeners that have registered interest for notification on this event type.
void
Notifies all listeners that have registered interest for notification on this event type.
void
Notifies all listeners that have registered interest for notification on this event type.
protected void
Notifies all listeners that have registered interest for notification on this event type.
Gets the AccessibleContext associated with this JTree.
Returns the path identified as the anchor.
Returns the editor used to edit entries in the tree.
Returns the current TreeCellRenderer
that is rendering each cell.
Returns the path to the node that is closest to x,y.
int
Returns the row to the node that is closest to x,y.
Creates and returns a sample TreeModel
.
Returns an Enumeration
of TreePaths
that have been expanded that are descendants of parent
.
boolean
Returns whether or not automatic drag handling is enabled.
Returns the location that this component should visually indicate as the drop location during a DnD operation over the component, or null
if no location is to currently be shown.
Returns the drop mode for this component.
Returns the path to the element that is currently being edited.
Returns an Enumeration
of the descendants of the path parent
that are currently expanded.
boolean
Returns the expandsSelectedPaths
property.
boolean
Returns the indicator that tells what happens when editing is interrupted.
Returns the last path component of the selected path.
Returns the path identified as the lead.
int
Returns the row index corresponding to the lead path.
int
Returns the largest selected row.
int
Returns the smallest selected row.
Returns the TreeModel
that is providing the data.
Returns the TreePath to the next tree element that begins with a prefix.
Returns the paths (inclusive) between the specified rows.
Returns the Rectangle
that the specified node will be drawn into.
Returns the path for the node at the specified location.
Returns the path for the specified row.
Returns the preferred display size of a JTree
.
Returns the Rectangle
that the node at the specified row is drawn in.
int
Returns the number of viewable nodes.
int
Returns the row for the specified location.
int
Returns the row that displays the node identified by the specified path.
int
Returns the height of each row.
int
Returns the amount for a block increment, which is the height or width of visibleRect
, based on orientation
.
boolean
Returns false to indicate that the height of the viewport does not determine the height of the table, unless the preferred height of the tree is smaller than the viewports height.
boolean
Returns false to indicate that the width of the viewport does not determine the width of the table, unless the preferred width of the tree is smaller than the viewports width.
int
Returns the amount to increment when scrolling.
boolean
Returns the value of the scrollsOnExpand
property.
int
Returns the number of nodes selected.
Returns the model for selections.
Returns the path to the first selected node.
Returns the paths of all selected values.
int[]
Returns all of the currently selected rows.
boolean
Returns the value of the showsRootHandles
property.
int
Returns the number of mouse clicks needed to expand or close a node.
Overrides JComponent
's getToolTipText
method in order to allow renderer's tips to be used if it has text set.
Returns an array of all the TreeExpansionListener
s added to this JTree with addTreeExpansionListener().
Returns an array of all the TreeSelectionListener
s added to this JTree with addTreeSelectionListener().
Returns an array of all the TreeWillExpandListener
s added to this JTree with addTreeWillExpandListener().
Returns the L&F object that renders this component.
Returns the name of the L&F class that renders this component.
int
Returns the number of rows that are displayed in the display area.
boolean
Returns true if the node identified by the path has ever been expanded.
boolean
Returns true if the node at the specified display row is collapsed.
boolean
Returns true if the value identified by path is currently collapsed, this will return false if any of the values in path are currently not being displayed.
boolean
Returns true if the tree is editable.
boolean
Returns true if the tree is being edited.
boolean
Returns true if the node at the specified display row is currently expanded.
boolean
Returns true if the node identified by the path is currently expanded,
boolean
Returns true if the height of each display row is a fixed size.
boolean
Returns true if the tree is configured for a large model.
boolean
boolean
Returns true if the item identified by the path is currently selected.
boolean
Returns true if the root node of the tree is displayed.
boolean
Returns true if the node identified by row is selected.
boolean
Returns true if the selection is currently empty.
boolean
Returns true if the value identified by path is currently viewable, which means it is either the root or all of its parents are expanded.
void
Ensures that the node identified by path is currently viewable.
Returns a string representation of this JTree
.
protected boolean
Removes any paths in the selection that are descendants of path
.
protected void
Removes any descendants of the TreePaths
in toRemove
that have been expanded.
void
Removes the specified rows (inclusive) from the selection.
void
Removes the node identified by the specified path from the current selection.
void
Removes the nodes identified by the specified paths from the current selection.
void
Removes the row at the index row
from the current selection.
void
Removes the rows that are selected at each of the specified rows.
void
Removes a listener for TreeExpansion
events.
void
Removes a TreeSelection
listener.
void
Removes a listener for TreeWillExpand
events.
void
Makes sure all the path components in path are expanded (except for the last path component) and scrolls so that the node identified by the path is displayed.
void
Scrolls the item identified by row until it is displayed.
void
Sets the path identified as the anchor.
void
void
Sets the TreeCellRenderer
that will be used to draw each cell.
void
Turns on or off automatic drag handling.
final void
Sets the drop mode for this component.
void
Determines whether the tree is editable.
protected void
Sets the expanded state of this JTree
.
void
Configures the expandsSelectedPaths
property.
void
Determines what happens when editing is interrupted by selecting another node in the tree, a change in the tree's data, or by some other means.
void
Specifies whether the UI should use a large model.
void
Sets the path identifies as the lead.
void
Sets the TreeModel
that will provide the data.
void
Determines whether or not the root node from the TreeModel
is visible.
void
Sets the height of each cell, in pixels.
void
Sets the scrollsOnExpand
property, which determines whether the tree might scroll to show previously hidden children.
void
Selects the rows in the specified interval (inclusive).
void
Sets the tree's selection model.
void
Selects the node identified by the specified path.
void
Selects the nodes identified by the specified array of paths.
void
Selects the node at the specified row in the display.
void
Selects the nodes corresponding to each of the specified rows in the display.
void
Sets the value of the showsRootHandles
property, which specifies whether the node handles should be displayed.
void
Sets the number of mouse clicks before a node will expand or close.
void
Sets the L&F object that renders this component.
void
Sets the number of rows that are to be displayed.
void
Selects the node identified by the specified path and initiates editing.
boolean
Ends the current editing session.
void
Sent when the tree has changed enough that we need to resize the bounds, but not enough that we need to remove the expanded node set (e.g nodes were expanded or collapsed, or nodes were inserted into the tree).
void
Notification from the UIManager
that the L&F has changed.
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
Methods declared in class java.awt.Containeradd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
Methods declared in class java.awt.Componentaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4