RingJavafor Ring

javax.swing.tree

20 classes of the module java.desktop.

Load them with:

using {
	"javax.swing.tree"
}

All packages

AbstractLayoutCache#

abstract · extends Object · javax.swing.tree.AbstractLayoutCache

Implements: RowMapper

Methods

MethodRing callJava overloads
getBoundsgetBounds(path,placeIn)Rectangle getBounds(TreePath path, Rectangle placeIn)
getExpandedStategetExpandedState(path)boolean getExpandedState(TreePath path)
getModelgetModel()TreeModel getModel()
getNodeDimensionsgetNodeDimensions()NodeDimensions getNodeDimensions()
getPathClosestTogetPathClosestTo(x,y)TreePath getPathClosestTo(int x, int y)
getPathForRowgetPathForRow(row)TreePath getPathForRow(int row)
getPreferredHeightgetPreferredHeight()int getPreferredHeight()
getPreferredWidthgetPreferredWidth(bounds)int getPreferredWidth(Rectangle bounds)
getRowCountgetRowCount()int getRowCount()
getRowForPathgetRowForPath(path)int getRowForPath(TreePath path)
getRowHeightgetRowHeight()int getRowHeight()
getRowsForPathsgetRowsForPaths(paths)int[] getRowsForPaths(TreePath[] paths)
getSelectionModelgetSelectionModel()TreeSelectionModel getSelectionModel()
getVisibleChildCountgetVisibleChildCount(path)int getVisibleChildCount(TreePath path)
getVisiblePathsFromgetVisiblePathsFrom(path)Enumeration getVisiblePathsFrom(TreePath path)
invalidatePathBoundsinvalidatePathBounds(path)void invalidatePathBounds(TreePath path)
invalidateSizesinvalidateSizes()void invalidateSizes()
isExpandedisExpanded(path)boolean isExpanded(TreePath path)
isRootVisibleisRootVisible()boolean isRootVisible()
setExpandedStatesetExpandedState(path,isExpanded)void setExpandedState(TreePath path, boolean isExpanded)
setModelsetModel(newModel)void setModel(TreeModel newModel)
setNodeDimensionssetNodeDimensions(nd)void setNodeDimensions(NodeDimensions nd)
setRootVisiblesetRootVisible(rootVisible)void setRootVisible(boolean rootVisible)
setRowHeightsetRowHeight(rowHeight)void setRowHeight(int rowHeight)
setSelectionModelsetSelectionModel(newLSM)void setSelectionModel(TreeSelectionModel newLSM)
treeNodesChangedtreeNodesChanged(e)void treeNodesChanged(TreeModelEvent e)
treeNodesInsertedtreeNodesInserted(e)void treeNodesInserted(TreeModelEvent e)
treeNodesRemovedtreeNodesRemoved(e)void treeNodesRemoved(TreeModelEvent e)
treeStructureChangedtreeStructureChanged(e)void treeStructureChanged(TreeModelEvent e)

The methods and fields of Object are inherited.

AbstractLayoutCacheNodeDimensions#

abstract · extends Object · javax.swing.tree.AbstractLayoutCache$NodeDimensions

Methods

MethodRing callJava overloads
getNodeDimensionsgetNodeDimensions(value,row,depth,expanded,bounds)Rectangle getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds)

The methods and fields of Object are inherited.

DefaultMutableTreeNode#

class · extends Object · javax.swing.tree.DefaultMutableTreeNode

Implements: Cloneable, MutableTreeNode, Serializable

Constructors

new DefaultMutableTreeNode()
new DefaultMutableTreeNode(Object userObject)
new DefaultMutableTreeNode(Object userObject, boolean allowsChildren)

Ring: new DefaultMutableTreeNode(args) uses the constructor with the fewest parameters (at least one); new DefaultMutableTreeNode makes the object with the constructor without parameters; the others: (new DefaultMutableTreeNode).@New([ :param = value ]) or .@New([v1,v2]).

Fields

NameTypeAccessIn Ring
EMPTY_ENUMERATIONEnumerationconstant · statico.EMPTY_ENUMERATION

Methods

MethodRing callJava overloads
addadd(newChild)void add(MutableTreeNode newChild)
breadthFirstEnumerationbreadthFirstEnumeration()Enumeration breadthFirstEnumeration()
childrenchildren()Enumeration children()
cloneclone()Object clone()
depthFirstEnumerationdepthFirstEnumeration()Enumeration depthFirstEnumeration()
getAllowsChildrengetAllowsChildren()boolean getAllowsChildren()
getChildAftergetChildAfter(aChild)TreeNode getChildAfter(TreeNode aChild)
getChildAtgetChildAt(index)TreeNode getChildAt(int index)
getChildBeforegetChildBefore(aChild)TreeNode getChildBefore(TreeNode aChild)
getChildCountgetChildCount()int getChildCount()
getDepthgetDepth()int getDepth()
getFirstChildgetFirstChild()TreeNode getFirstChild()
getFirstLeafgetFirstLeaf()DefaultMutableTreeNode getFirstLeaf()
getIndexgetIndex(aChild)int getIndex(TreeNode aChild)
getLastChildgetLastChild()TreeNode getLastChild()
getLastLeafgetLastLeaf()DefaultMutableTreeNode getLastLeaf()
getLeafCountgetLeafCount()int getLeafCount()
getLevelgetLevel()int getLevel()
getNextLeafgetNextLeaf()DefaultMutableTreeNode getNextLeaf()
getNextNodegetNextNode()DefaultMutableTreeNode getNextNode()
getNextSiblinggetNextSibling()DefaultMutableTreeNode getNextSibling()
getParentgetParent()TreeNode getParent()
getPathgetPath()TreeNode[] getPath()
getPreviousLeafgetPreviousLeaf()DefaultMutableTreeNode getPreviousLeaf()
getPreviousNodegetPreviousNode()DefaultMutableTreeNode getPreviousNode()
getPreviousSiblinggetPreviousSibling()DefaultMutableTreeNode getPreviousSibling()
getRootgetRoot()TreeNode getRoot()
getSharedAncestorgetSharedAncestor(aNode)TreeNode getSharedAncestor(DefaultMutableTreeNode aNode)
getSiblingCountgetSiblingCount()int getSiblingCount()
getUserObjectgetUserObject()Object getUserObject()
getUserObjectPathgetUserObjectPath()Object[] getUserObjectPath()
insertinsert(newChild,childIndex)void insert(MutableTreeNode newChild, int childIndex)
isLeafisLeaf()boolean isLeaf()
isNodeAncestorisNodeAncestor(anotherNode)boolean isNodeAncestor(TreeNode anotherNode)
isNodeChildisNodeChild(aNode)boolean isNodeChild(TreeNode aNode)
isNodeDescendantisNodeDescendant(anotherNode)boolean isNodeDescendant(DefaultMutableTreeNode anotherNode)
isNodeRelatedisNodeRelated(aNode)boolean isNodeRelated(DefaultMutableTreeNode aNode)
isNodeSiblingisNodeSibling(anotherNode)boolean isNodeSibling(TreeNode anotherNode)
isRootisRoot()boolean isRoot()
pathFromAncestorEnumerationpathFromAncestorEnumeration(ancestor)Enumeration pathFromAncestorEnumeration(TreeNode ancestor)
postorderEnumerationpostorderEnumeration()Enumeration postorderEnumeration()
preorderEnumerationpreorderEnumeration()Enumeration preorderEnumeration()
removeremove(aChild)void remove(MutableTreeNode aChild)
void remove(int childIndex)
removeAllChildrenremoveAllChildren()void removeAllChildren()
removeFromParentremoveFromParent()void removeFromParent()
setAllowsChildrensetAllowsChildren(allows)void setAllowsChildren(boolean allows)
setParentsetParent(newParent)void setParent(MutableTreeNode newParent)
setUserObjectsetUserObject(userObject)void setUserObject(Object userObject)

The methods and fields of Object are inherited.

DefaultTreeCellEditor#

class · extends Object · javax.swing.tree.DefaultTreeCellEditor

Implements: ActionListener, TreeCellEditor, TreeSelectionListener

Constructors

new DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer)
new DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor)

Ring: new DefaultTreeCellEditor(args) uses the constructor with the fewest parameters (at least one); new DefaultTreeCellEditor makes the object with the constructor without parameters; the others: (new DefaultTreeCellEditor).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
actionPerformedactionPerformed(e)void actionPerformed(ActionEvent e)
addCellEditorListeneraddCellEditorListener(l)void addCellEditorListener(CellEditorListener l)
cancelCellEditingcancelCellEditing()void cancelCellEditing()
getBorderSelectionColorgetBorderSelectionColor()Color getBorderSelectionColor()
getCellEditorListenersgetCellEditorListeners()CellEditorListener[] getCellEditorListeners()
getCellEditorValuegetCellEditorValue()Object getCellEditorValue()
getFontgetFont()Font getFont()
getTreeCellEditorComponentgetTreeCellEditorComponent(tree,value,isSelected,expanded,leaf,row)Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
isCellEditableisCellEditable(event)boolean isCellEditable(EventObject event)
removeCellEditorListenerremoveCellEditorListener(l)void removeCellEditorListener(CellEditorListener l)
setBorderSelectionColorsetBorderSelectionColor(newColor)void setBorderSelectionColor(Color newColor)
setFontsetFont(font)void setFont(Font font)
shouldSelectCellshouldSelectCell(event)boolean shouldSelectCell(EventObject event)
stopCellEditingstopCellEditing()boolean stopCellEditing()
valueChangedvalueChanged(e)void valueChanged(TreeSelectionEvent e)

The methods and fields of Object are inherited.

DefaultTreeCellEditorDefaultTextField#

class · extends JTextField · javax.swing.tree.DefaultTreeCellEditor$DefaultTextField

Constructors

new DefaultTreeCellEditorDefaultTextField(DefaultTreeCellEditor p1, Border p2)

Ring: new DefaultTreeCellEditorDefaultTextField(args) uses the constructor with the fewest parameters (at least one); new DefaultTreeCellEditorDefaultTextField makes the object with the constructor without parameters; the others: (new DefaultTreeCellEditorDefaultTextField).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of JTextField are inherited.

DefaultTreeCellEditorEditorContainer#

class · extends Container · javax.swing.tree.DefaultTreeCellEditor$EditorContainer

Constructors

new DefaultTreeCellEditorEditorContainer(DefaultTreeCellEditor p1)

Ring: new DefaultTreeCellEditorEditorContainer(args) uses the constructor with the fewest parameters (at least one); new DefaultTreeCellEditorEditorContainer makes the object with the constructor without parameters; the others: (new DefaultTreeCellEditorEditorContainer).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
EditorContainerEditorContainer()void EditorContainer()

The methods and fields of Container are inherited.

DefaultTreeCellRenderer#

class · extends JLabel · javax.swing.tree.DefaultTreeCellRenderer

Implements: TreeCellRenderer

Constructors

new DefaultTreeCellRenderer()

Ring: new DefaultTreeCellRenderer(args) uses the constructor with the fewest parameters (at least one); new DefaultTreeCellRenderer makes the object with the constructor without parameters; the others: (new DefaultTreeCellRenderer).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
getBackgroundNonSelectionColorgetBackgroundNonSelectionColor()Color getBackgroundNonSelectionColor()
getBackgroundSelectionColorgetBackgroundSelectionColor()Color getBackgroundSelectionColor()
getBorderSelectionColorgetBorderSelectionColor()Color getBorderSelectionColor()
getClosedIcongetClosedIcon()Icon getClosedIcon()
getDefaultClosedIcongetDefaultClosedIcon()Icon getDefaultClosedIcon()
getDefaultLeafIcongetDefaultLeafIcon()Icon getDefaultLeafIcon()
getDefaultOpenIcongetDefaultOpenIcon()Icon getDefaultOpenIcon()
getLeafIcongetLeafIcon()Icon getLeafIcon()
getOpenIcongetOpenIcon()Icon getOpenIcon()
getTextNonSelectionColorgetTextNonSelectionColor()Color getTextNonSelectionColor()
getTextSelectionColorgetTextSelectionColor()Color getTextSelectionColor()
getTreeCellRendererComponentgetTreeCellRendererComponent(tree,value,sel,expanded,leaf,row,hasFocus)Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus)
setBackgroundNonSelectionColorsetBackgroundNonSelectionColor(newColor)void setBackgroundNonSelectionColor(Color newColor)
setBackgroundSelectionColorsetBackgroundSelectionColor(newColor)void setBackgroundSelectionColor(Color newColor)
setBorderSelectionColorsetBorderSelectionColor(newColor)void setBorderSelectionColor(Color newColor)
setClosedIconsetClosedIcon(newIcon)void setClosedIcon(Icon newIcon)
setLeafIconsetLeafIcon(newIcon)void setLeafIcon(Icon newIcon)
setOpenIconsetOpenIcon(newIcon)void setOpenIcon(Icon newIcon)
setTextNonSelectionColorsetTextNonSelectionColor(newColor)void setTextNonSelectionColor(Color newColor)
setTextSelectionColorsetTextSelectionColor(newColor)void setTextSelectionColor(Color newColor)

The methods and fields of JLabel are inherited.

DefaultTreeModel#

class · extends Object · javax.swing.tree.DefaultTreeModel

Implements: Serializable, TreeModel

Constructors

new DefaultTreeModel(TreeNode root)
new DefaultTreeModel(TreeNode root, boolean asksAllowsChildren)

Ring: new DefaultTreeModel(args) uses the constructor with the fewest parameters (at least one); new DefaultTreeModel makes the object with the constructor without parameters; the others: (new DefaultTreeModel).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
@reload@reload(node)void reload(TreeNode node)
addTreeModelListeneraddTreeModelListener(l)void addTreeModelListener(TreeModelListener l)
asksAllowsChildrenasksAllowsChildren()boolean asksAllowsChildren()
getChildgetChild(parent,index)Object getChild(Object parent, int index)
getChildCountgetChildCount(parent)int getChildCount(Object parent)
getIndexOfChildgetIndexOfChild(parent,child)int getIndexOfChild(Object parent, Object child)
getListenersgetListeners(listenerType)EventListener[] getListeners(Class listenerType)
getPathToRootgetPathToRoot(aNode)TreeNode[] getPathToRoot(TreeNode aNode)
getRootgetRoot()Object getRoot()
getTreeModelListenersgetTreeModelListeners()TreeModelListener[] getTreeModelListeners()
insertNodeIntoinsertNodeInto(newChild,parent,index)void insertNodeInto(MutableTreeNode newChild, MutableTreeNode parent, int index)
isLeafisLeaf(node)boolean isLeaf(Object node)
nodeChangednodeChanged(node)void nodeChanged(TreeNode node)
nodesChangednodesChanged(node,childIndices)void nodesChanged(TreeNode node, int[] childIndices)
nodeStructureChangednodeStructureChanged(node)void nodeStructureChanged(TreeNode node)
nodesWereInsertednodesWereInserted(node,childIndices)void nodesWereInserted(TreeNode node, int[] childIndices)
nodesWereRemovednodesWereRemoved(node,childIndices,removedChildren)void nodesWereRemoved(TreeNode node, int[] childIndices, Object[] removedChildren)
reloadreload()void reload()
removeNodeFromParentremoveNodeFromParent(node)void removeNodeFromParent(MutableTreeNode node)
removeTreeModelListenerremoveTreeModelListener(l)void removeTreeModelListener(TreeModelListener l)
setAsksAllowsChildrensetAsksAllowsChildren(newValue)void setAsksAllowsChildren(boolean newValue)
setRootsetRoot(root)void setRoot(TreeNode root)
valueForPathChangedvalueForPathChanged(path,newValue)void valueForPathChanged(TreePath path, Object newValue)

The methods and fields of Object are inherited.

DefaultTreeSelectionModel#

class · extends Object · javax.swing.tree.DefaultTreeSelectionModel

Implements: Cloneable, Serializable, TreeSelectionModel

Constructors

new DefaultTreeSelectionModel()

Ring: new DefaultTreeSelectionModel(args) uses the constructor with the fewest parameters (at least one); new DefaultTreeSelectionModel makes the object with the constructor without parameters; the others: (new DefaultTreeSelectionModel).@New([ :param = value ]) or .@New([v1,v2]).

Fields

NameTypeAccessIn Ring
SELECTION_MODE_PROPERTYStringconstant · statico.SELECTION_MODE_PROPERTY
SINGLE_TREE_SELECTIONintconstant · statico.SINGLE_TREE_SELECTION
CONTIGUOUS_TREE_SELECTIONintconstant · statico.CONTIGUOUS_TREE_SELECTION
DISCONTIGUOUS_TREE_SELECTIONintconstant · statico.DISCONTIGUOUS_TREE_SELECTION

Methods

MethodRing callJava overloads
addPropertyChangeListeneraddPropertyChangeListener(listener)void addPropertyChangeListener(PropertyChangeListener listener)
addSelectionPathaddSelectionPath(path)void addSelectionPath(TreePath path)
addSelectionPathsaddSelectionPaths(paths)void addSelectionPaths(TreePath[] paths)
addTreeSelectionListeneraddTreeSelectionListener(x)void addTreeSelectionListener(TreeSelectionListener x)
clearSelectionclearSelection()void clearSelection()
cloneclone()Object clone()
getLeadSelectionPathgetLeadSelectionPath()TreePath getLeadSelectionPath()
getLeadSelectionRowgetLeadSelectionRow()int getLeadSelectionRow()
getListenersgetListeners(listenerType)EventListener[] getListeners(Class listenerType)
getMaxSelectionRowgetMaxSelectionRow()int getMaxSelectionRow()
getMinSelectionRowgetMinSelectionRow()int getMinSelectionRow()
getPropertyChangeListenersgetPropertyChangeListeners()PropertyChangeListener[] getPropertyChangeListeners()
getRowMappergetRowMapper()RowMapper getRowMapper()
getSelectionCountgetSelectionCount()int getSelectionCount()
getSelectionModegetSelectionMode()int getSelectionMode()
getSelectionPathgetSelectionPath()TreePath getSelectionPath()
getSelectionPathsgetSelectionPaths()TreePath[] getSelectionPaths()
getSelectionRowsgetSelectionRows()int[] getSelectionRows()
getTreeSelectionListenersgetTreeSelectionListeners()TreeSelectionListener[] getTreeSelectionListeners()
isPathSelectedisPathSelected(path)boolean isPathSelected(TreePath path)
isRowSelectedisRowSelected(row)boolean isRowSelected(int row)
isSelectionEmptyisSelectionEmpty()boolean isSelectionEmpty()
removePropertyChangeListenerremovePropertyChangeListener(listener)void removePropertyChangeListener(PropertyChangeListener listener)
removeSelectionPathremoveSelectionPath(path)void removeSelectionPath(TreePath path)
removeSelectionPathsremoveSelectionPaths(paths)void removeSelectionPaths(TreePath[] paths)
removeTreeSelectionListenerremoveTreeSelectionListener(x)void removeTreeSelectionListener(TreeSelectionListener x)
resetRowSelectionresetRowSelection()void resetRowSelection()
setRowMappersetRowMapper(newMapper)void setRowMapper(RowMapper newMapper)
setSelectionModesetSelectionMode(mode)void setSelectionMode(int mode)
setSelectionPathsetSelectionPath(path)void setSelectionPath(TreePath path)
setSelectionPathssetSelectionPaths(pPaths)void setSelectionPaths(TreePath[] pPaths)

The methods and fields of Object are inherited.

ExpandVetoException#

class · extends Exception · javax.swing.tree.ExpandVetoException

Constructors

new ExpandVetoException(TreeExpansionEvent event)
new ExpandVetoException(TreeExpansionEvent event, String message)

Ring: new ExpandVetoException(args) uses the constructor with the fewest parameters (at least one); new ExpandVetoException makes the object with the constructor without parameters; the others: (new ExpandVetoException).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of Exception are inherited.

FixedHeightLayoutCache#

class · extends AbstractLayoutCache · javax.swing.tree.FixedHeightLayoutCache

Constructors

new FixedHeightLayoutCache()

Ring: new FixedHeightLayoutCache(args) uses the constructor with the fewest parameters (at least one); new FixedHeightLayoutCache makes the object with the constructor without parameters; the others: (new FixedHeightLayoutCache).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of AbstractLayoutCache are inherited.

MutableTreeNode#

interface · javax.swing.tree.MutableTreeNode

Extends: TreeNode

Methods

MethodRing callJava overloads
childrenchildren()Enumeration children()
getAllowsChildrengetAllowsChildren()boolean getAllowsChildren()
getChildAtgetChildAt(childIndex)TreeNode getChildAt(int childIndex)
getChildCountgetChildCount()int getChildCount()
getIndexgetIndex(node)int getIndex(TreeNode node)
getParentgetParent()TreeNode getParent()
insertinsert(child,index)void insert(MutableTreeNode child, int index)
isLeafisLeaf()boolean isLeaf()
removeremove(node)void remove(MutableTreeNode node)
void remove(int index)
removeFromParentremoveFromParent()void removeFromParent()
setParentsetParent(newParent)void setParent(MutableTreeNode newParent)
setUserObjectsetUserObject(object)void setUserObject(Object object)

RowMapper#

interface · javax.swing.tree.RowMapper

Methods

MethodRing callJava overloads
getRowsForPathsgetRowsForPaths(path)int[] getRowsForPaths(TreePath[] path)

TreeCellEditor#

interface · javax.swing.tree.TreeCellEditor

Extends: CellEditor

Methods

MethodRing callJava overloads
addCellEditorListeneraddCellEditorListener(l)void addCellEditorListener(CellEditorListener l)
cancelCellEditingcancelCellEditing()void cancelCellEditing()
getCellEditorValuegetCellEditorValue()Object getCellEditorValue()
getTreeCellEditorComponentgetTreeCellEditorComponent(tree,value,isSelected,expanded,leaf,row)Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
isCellEditableisCellEditable(anEvent)boolean isCellEditable(EventObject anEvent)
removeCellEditorListenerremoveCellEditorListener(l)void removeCellEditorListener(CellEditorListener l)
shouldSelectCellshouldSelectCell(anEvent)boolean shouldSelectCell(EventObject anEvent)
stopCellEditingstopCellEditing()boolean stopCellEditing()

TreeCellRenderer#

interface · javax.swing.tree.TreeCellRenderer

Methods

MethodRing callJava overloads
getTreeCellRendererComponentgetTreeCellRendererComponent(tree,value,selected,expanded,leaf,row,hasFocus)Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)

TreeModel#

interface · javax.swing.tree.TreeModel

Methods

MethodRing callJava overloads
addTreeModelListeneraddTreeModelListener(l)void addTreeModelListener(TreeModelListener l)
getChildgetChild(parent,index)Object getChild(Object parent, int index)
getChildCountgetChildCount(parent)int getChildCount(Object parent)
getIndexOfChildgetIndexOfChild(parent,child)int getIndexOfChild(Object parent, Object child)
getRootgetRoot()Object getRoot()
isLeafisLeaf(node)boolean isLeaf(Object node)
removeTreeModelListenerremoveTreeModelListener(l)void removeTreeModelListener(TreeModelListener l)
valueForPathChangedvalueForPathChanged(path,newValue)void valueForPathChanged(TreePath path, Object newValue)

TreeNode#

interface · javax.swing.tree.TreeNode

Methods

MethodRing callJava overloads
childrenchildren()Enumeration children()
getAllowsChildrengetAllowsChildren()boolean getAllowsChildren()
getChildAtgetChildAt(childIndex)TreeNode getChildAt(int childIndex)
getChildCountgetChildCount()int getChildCount()
getIndexgetIndex(node)int getIndex(TreeNode node)
getParentgetParent()TreeNode getParent()
isLeafisLeaf()boolean isLeaf()

TreePath#

class · extends Object · javax.swing.tree.TreePath

Implements: Serializable

Constructors

new TreePath(Object lastPathComponent)
new TreePath(Object[] path)

Ring: new TreePath(args) uses the constructor with the fewest parameters (at least one); new TreePath makes the object with the constructor without parameters; the others: (new TreePath).@New([ :param = value ]) or .@New([v1,v2]).

Methods

MethodRing callJava overloads
getLastPathComponentgetLastPathComponent()Object getLastPathComponent()
getParentPathgetParentPath()TreePath getParentPath()
getPathgetPath()Object[] getPath()
getPathComponentgetPathComponent(index)Object getPathComponent(int index)
getPathCountgetPathCount()int getPathCount()
isDescendantisDescendant(aTreePath)boolean isDescendant(TreePath aTreePath)
pathByAddingChildpathByAddingChild(child)TreePath pathByAddingChild(Object child)

The methods and fields of Object are inherited.

TreeSelectionModel#

interface · javax.swing.tree.TreeSelectionModel

Fields

NameTypeAccessIn Ring
SINGLE_TREE_SELECTIONintconstant · statico.SINGLE_TREE_SELECTION
CONTIGUOUS_TREE_SELECTIONintconstant · statico.CONTIGUOUS_TREE_SELECTION
DISCONTIGUOUS_TREE_SELECTIONintconstant · statico.DISCONTIGUOUS_TREE_SELECTION

Methods

MethodRing callJava overloads
addPropertyChangeListeneraddPropertyChangeListener(listener)void addPropertyChangeListener(PropertyChangeListener listener)
addSelectionPathaddSelectionPath(path)void addSelectionPath(TreePath path)
addSelectionPathsaddSelectionPaths(paths)void addSelectionPaths(TreePath[] paths)
addTreeSelectionListeneraddTreeSelectionListener(x)void addTreeSelectionListener(TreeSelectionListener x)
clearSelectionclearSelection()void clearSelection()
getLeadSelectionPathgetLeadSelectionPath()TreePath getLeadSelectionPath()
getLeadSelectionRowgetLeadSelectionRow()int getLeadSelectionRow()
getMaxSelectionRowgetMaxSelectionRow()int getMaxSelectionRow()
getMinSelectionRowgetMinSelectionRow()int getMinSelectionRow()
getRowMappergetRowMapper()RowMapper getRowMapper()
getSelectionCountgetSelectionCount()int getSelectionCount()
getSelectionModegetSelectionMode()int getSelectionMode()
getSelectionPathgetSelectionPath()TreePath getSelectionPath()
getSelectionPathsgetSelectionPaths()TreePath[] getSelectionPaths()
getSelectionRowsgetSelectionRows()int[] getSelectionRows()
isPathSelectedisPathSelected(path)boolean isPathSelected(TreePath path)
isRowSelectedisRowSelected(row)boolean isRowSelected(int row)
isSelectionEmptyisSelectionEmpty()boolean isSelectionEmpty()
removePropertyChangeListenerremovePropertyChangeListener(listener)void removePropertyChangeListener(PropertyChangeListener listener)
removeSelectionPathremoveSelectionPath(path)void removeSelectionPath(TreePath path)
removeSelectionPathsremoveSelectionPaths(paths)void removeSelectionPaths(TreePath[] paths)
removeTreeSelectionListenerremoveTreeSelectionListener(x)void removeTreeSelectionListener(TreeSelectionListener x)
resetRowSelectionresetRowSelection()void resetRowSelection()
setRowMappersetRowMapper(newMapper)void setRowMapper(RowMapper newMapper)
setSelectionModesetSelectionMode(mode)void setSelectionMode(int mode)
setSelectionPathsetSelectionPath(path)void setSelectionPath(TreePath path)
setSelectionPathssetSelectionPaths(paths)void setSelectionPaths(TreePath[] paths)

VariableHeightLayoutCache#

class · extends AbstractLayoutCache · javax.swing.tree.VariableHeightLayoutCache

Constructors

new VariableHeightLayoutCache()

Ring: new VariableHeightLayoutCache(args) uses the constructor with the fewest parameters (at least one); new VariableHeightLayoutCache makes the object with the constructor without parameters; the others: (new VariableHeightLayoutCache).@New([ :param = value ]) or .@New([v1,v2]).

The methods and fields of AbstractLayoutCache are inherited.

RingJava - use Java classes and methods from Ring programs.