public class SlideableTree extends JTree implements TreeExpansionListener, TreeSelectionListener, TreeWillExpandListener
SlideableTree visualize the children of the trees root node with an JXTaskpane. The TaskPanes contains a SlideablesubTree, which represents the tree under this child.
To use this specialized View, you have to use the constructor with an boolean flag e.g
| Modifier and Type | Class and Description |
|---|---|
protected class |
SlideableTree.ClickAndSelectListener
DOCUMENT ME!
|
protected class |
SlideableTree.MyTreeModelHandler
DOCUMENT ME!
|
JTree.AccessibleJTree, JTree.DropLocation, JTree.DynamicUtilTreeNode, JTree.EmptySelectionModel, JTree.TreeModelHandler, JTree.TreeSelectionRedirectorJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected boolean |
useSlideableTreeView |
ANCHOR_SELECTION_PATH_PROPERTY, CELL_EDITOR_PROPERTY, CELL_RENDERER_PROPERTY, cellEditor, cellRenderer, editable, EDITABLE_PROPERTY, EXPANDS_SELECTED_PATHS_PROPERTY, INVOKES_STOP_CELL_EDITING_PROPERTY, invokesStopCellEditing, LARGE_MODEL_PROPERTY, largeModel, LEAD_SELECTION_PATH_PROPERTY, ROOT_VISIBLE_PROPERTY, rootVisible, ROW_HEIGHT_PROPERTY, rowHeight, SCROLLS_ON_EXPAND_PROPERTY, scrollsOnExpand, SELECTION_MODEL_PROPERTY, selectionModel, selectionRedirector, SHOWS_ROOT_HANDLES_PROPERTY, showsRootHandles, TOGGLE_CLICK_COUNT_PROPERTY, toggleClickCount, TREE_MODEL_PROPERTY, treeModel, treeModelListener, VISIBLE_ROW_COUNT_PROPERTY, visibleRowCountlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
SlideableTree()
Creates a new SlideableTree object.
|
SlideableTree(boolean useSlideableView)
Creates a new SlideableTree object.
|
SlideableTree(TreeModel model)
Creates a new SlideableTree object.
|
SlideableTree(TreeNode node)
Creates a new SlideableTree object.
|
addTreeSelectionListener, addTreeWillExpandListener, collapsePath, collapseRow, convertValueToText, createTreeModel, expandPath, fireTreeCollapsed, fireTreeWillCollapse, fireTreeWillExpand, fireValueChanged, getAccessibleContext, getAnchorSelectionPath, getCellEditor, getCellRenderer, getClosestRowForLocation, getDefaultTreeModel, getDragEnabled, getDropLocation, getDropMode, getExpandsSelectedPaths, getInvokesStopCellEditing, getLeadSelectionPath, getLeadSelectionRow, getModel, getPreferredScrollableViewportSize, getRowBounds, getRowForLocation, getRowHeight, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getScrollsOnExpand, getSelectionModel, getShowsRootHandles, getToggleClickCount, getToolTipText, getTreeExpansionListeners, getTreeSelectionListeners, getTreeWillExpandListeners, getUI, getUIClassID, getVisibleRowCount, isCollapsed, isCollapsed, isEditable, isFixedRowHeight, isLargeModel, isPathEditable, isRootVisible, paramString, removeTreeExpansionListener, removeTreeSelectionListener, removeTreeWillExpandListener, setDropMode, treeDidChangeaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, 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, updateadd, 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, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, 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, getPeer, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic SlideableTree()
public SlideableTree(boolean useSlideableView)
useSlideableView - a flag for using a specialized view with JXTaskPanespublic SlideableTree(TreeModel model)
model - DOCUMENT ME!public SlideableTree(TreeNode node)
node - DOCUMENT ME!public boolean isUseSlideableTreeView()
public org.jdesktop.swingx.JXTaskPaneContainer getContainer()
public void addSelectionPath(TreePath path)
addSelectionPath in class JTreepublic void addSelectionPaths(TreePath[] paths)
addSelectionPaths in class JTreepublic void addSelectionRow(int row)
addSelectionRow in class JTreepublic void addSelectionRows(int[] rows)
addSelectionRows in class JTreepublic void addSelectionInterval(int index0,
int index1)
addSelectionInterval in class JTreepublic void cancelEditing()
cancelEditing in class JTreepublic void clearSelection()
clearSelection in class JTreeprotected void clearToggledPaths()
clearToggledPaths in class JTreepublic Enumeration<TreePath> getExpandedDescendants(TreePath parent)
getExpandedDescendants in class JTreepublic TreePath getEditingPath()
getEditingPath in class JTreepublic TreePath getPathForLocation(int x, int y)
getPathForLocation in class JTreepublic TreePath getClosestPathForLocation(int x, int y)
getClosestPathForLocation in class JTreeprotected Enumeration<TreePath> getDescendantToggledPaths(TreePath parent)
getDescendantToggledPaths in class JTreepublic int getMaxSelectionRow()
getMaxSelectionRow in class JTreepublic int getMinSelectionRow()
getMinSelectionRow in class JTreepublic Rectangle getPathBounds(TreePath path)
getPathBounds in class JTreepublic int getRowCount()
getRowCount in class JTreepublic TreePath getSelectionPath()
getSelectionPath in class JTreepublic TreePath[] getSelectionPaths()
getSelectionPaths in class JTreepublic int getSelectionCount()
getSelectionCount in class JTreepublic TreePath getPathForRow(int row)
getPathForRow in class JTreepublic int getRowForPath(TreePath path)
getRowForPath in class JTreepublic TreePath getNextMatch(String prefix, int startingRow, Position.Bias bias)
getNextMatch in class JTreeprotected TreePath[] getPathBetweenRows(int index0, int index1)
getPathBetweenRows in class JTreepublic boolean hasBeenExpanded(TreePath path)
hasBeenExpanded in class JTreepublic boolean isExpanded(TreePath path)
isExpanded in class JTreepublic boolean isExpanded(int row)
isExpanded in class JTreepublic boolean isPathSelected(TreePath path)
isPathSelected in class JTreepublic boolean isRowSelected(int row)
isRowSelected in class JTreepublic boolean isSelectionEmpty()
isSelectionEmpty in class JTreepublic void makeVisible(TreePath path)
makeVisible in class JTreepublic void removeSelectionInterval(int index0,
int index1)
removeSelectionInterval in class JTreepublic void removeSelectionPath(TreePath path)
removeSelectionPath in class JTreepublic void removeSelectionPaths(TreePath[] paths)
removeSelectionPaths in class JTreepublic void removeSelectionRow(int row)
removeSelectionRow in class JTreepublic void removeSelectionRows(int[] rows)
removeSelectionRows in class JTreeprotected boolean removeDescendantSelectedPaths(TreePath path, boolean includePath)
removeDescendantSelectedPaths in class JTreeprotected void removeDescendantToggledPaths(Enumeration<TreePath> toRemove)
removeDescendantToggledPaths in class JTreepublic int[] getSelectionRows()
getSelectionRows in class JTreepublic void scrollPathToVisible(TreePath path)
scrollPathToVisible in class JTreepublic void scrollRowToVisible(int row)
scrollRowToVisible in class JTreepublic void setAnchorSelectionPath(TreePath newPath)
setAnchorSelectionPath in class JTreepublic void setCellEditor(TreeCellEditor cellEditor)
setCellEditor in class JTreepublic void setCellRenderer(TreeCellRenderer x)
setCellRenderer in class JTreepublic void setDragEnabled(boolean b)
setDragEnabled in class JTreepublic void setEditable(boolean flag)
setEditable in class JTreepublic void setExpandsSelectedPaths(boolean newValue)
setExpandsSelectedPaths in class JTreeprotected void setExpandedState(TreePath path, boolean state)
setExpandedState in class JTreepublic void setInvokesStopCellEditing(boolean newValue)
setInvokesStopCellEditing in class JTreepublic void setLargeModel(boolean newValue)
setLargeModel in class JTreepublic void setLeadSelectionPath(TreePath newPath)
setLeadSelectionPath in class JTreepublic void setRootVisible(boolean rootVisible)
setRootVisible in class JTreepublic void setRowHeight(int rowHeight)
setRowHeight in class JTreepublic void setScrollsOnExpand(boolean newValue)
setScrollsOnExpand in class JTreepublic void setSelectionInterval(int index0,
int index1)
setSelectionInterval in class JTreepublic void setSelectionModel(TreeSelectionModel selectionModel)
setSelectionModel in class JTreepublic void setSelectionPath(TreePath path)
setSelectionPath in class JTreepublic void setSelectionPaths(TreePath[] paths)
setSelectionPaths in class JTreepublic void setSelectionRow(int row)
setSelectionRow in class JTreepublic void setSelectionRows(int[] rows)
setSelectionRows in class JTreepublic void setShowsRootHandles(boolean newValue)
setShowsRootHandles in class JTreepublic void setToggleClickCount(int clickCount)
setToggleClickCount in class JTreepublic void setVisibleRowCount(int newCount)
setVisibleRowCount in class JTreepublic void startEditingAtPath(TreePath path)
startEditingAtPath in class JTreepublic boolean stopEditing()
stopEditing in class JTreeprotected TreePath getPathforOriginalTree(TreePath subTreePath)
subTreePath - a path of a SlideableSubTreepublic Object getLastSelectedPathComponent()
getLastSelectedPathComponent in class JTreepublic void addTreeExpansionListener(TreeExpansionListener tel)
addTreeExpansionListener in class JTreepublic void fireTreeExpanded(TreePath path)
fireTreeExpanded in class JTreepublic void treeExpanded(TreeExpansionEvent event)
treeExpanded in interface TreeExpansionListenerpublic void treeCollapsed(TreeExpansionEvent event)
treeCollapsed in interface TreeExpansionListenerpublic void valueChanged(TreeSelectionEvent e)
valueChanged in interface TreeSelectionListenerpublic void treeWillExpand(TreeExpansionEvent event) throws ExpandVetoException
treeWillExpand in interface TreeWillExpandListenerExpandVetoExceptionpublic void treeWillCollapse(TreeExpansionEvent event) throws ExpandVetoException
treeWillCollapse in interface TreeWillExpandListenerExpandVetoExceptionpublic TreeModelListener createTreeModelListener()
createTreeModelListener in class JTreepublic void addMouseListener(MouseListener l)
addMouseListener in class Componentpublic ArrayList<SlideableSubTree> getTrees()
public ArrayList<SubTreePane> getPanes()
Copyright © 2012–2026 cismet GmbH. All rights reserved.