javax.swing.tree
20 classes of the module java.desktop.
Load them with:
using {
"javax.swing.tree"
}
AbstractLayoutCache#
abstract · extends Object · javax.swing.tree.AbstractLayoutCache
Implements: RowMapper
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getBounds | getBounds(path,placeIn) | Rectangle getBounds(TreePath path, Rectangle placeIn) |
getExpandedState | getExpandedState(path) | boolean getExpandedState(TreePath path) |
getModel | getModel() | TreeModel getModel() |
getNodeDimensions | getNodeDimensions() | NodeDimensions getNodeDimensions() |
getPathClosestTo | getPathClosestTo(x,y) | TreePath getPathClosestTo(int x, int y) |
getPathForRow | getPathForRow(row) | TreePath getPathForRow(int row) |
getPreferredHeight | getPreferredHeight() | int getPreferredHeight() |
getPreferredWidth | getPreferredWidth(bounds) | int getPreferredWidth(Rectangle bounds) |
getRowCount | getRowCount() | int getRowCount() |
getRowForPath | getRowForPath(path) | int getRowForPath(TreePath path) |
getRowHeight | getRowHeight() | int getRowHeight() |
getRowsForPaths | getRowsForPaths(paths) | int[] getRowsForPaths(TreePath[] paths) |
getSelectionModel | getSelectionModel() | TreeSelectionModel getSelectionModel() |
getVisibleChildCount | getVisibleChildCount(path) | int getVisibleChildCount(TreePath path) |
getVisiblePathsFrom | getVisiblePathsFrom(path) | Enumeration getVisiblePathsFrom(TreePath path) |
invalidatePathBounds | invalidatePathBounds(path) | void invalidatePathBounds(TreePath path) |
invalidateSizes | invalidateSizes() | void invalidateSizes() |
isExpanded | isExpanded(path) | boolean isExpanded(TreePath path) |
isRootVisible | isRootVisible() | boolean isRootVisible() |
setExpandedState | setExpandedState(path,isExpanded) | void setExpandedState(TreePath path, boolean isExpanded) |
setModel | setModel(newModel) | void setModel(TreeModel newModel) |
setNodeDimensions | setNodeDimensions(nd) | void setNodeDimensions(NodeDimensions nd) |
setRootVisible | setRootVisible(rootVisible) | void setRootVisible(boolean rootVisible) |
setRowHeight | setRowHeight(rowHeight) | void setRowHeight(int rowHeight) |
setSelectionModel | setSelectionModel(newLSM) | void setSelectionModel(TreeSelectionModel newLSM) |
treeNodesChanged | treeNodesChanged(e) | void treeNodesChanged(TreeModelEvent e) |
treeNodesInserted | treeNodesInserted(e) | void treeNodesInserted(TreeModelEvent e) |
treeNodesRemoved | treeNodesRemoved(e) | void treeNodesRemoved(TreeModelEvent e) |
treeStructureChanged | treeStructureChanged(e) | void treeStructureChanged(TreeModelEvent e) |
The methods and fields of Object are inherited.
AbstractLayoutCacheNodeDimensions#
abstract · extends Object · javax.swing.tree.AbstractLayoutCache$NodeDimensions
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getNodeDimensions | getNodeDimensions(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
| Name | Type | Access | In Ring |
|---|---|---|---|
EMPTY_ENUMERATION | Enumeration | constant · static | o.EMPTY_ENUMERATION |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
add | add(newChild) | void add(MutableTreeNode newChild) |
breadthFirstEnumeration | breadthFirstEnumeration() | Enumeration breadthFirstEnumeration() |
children | children() | Enumeration children() |
clone | clone() | Object clone() |
depthFirstEnumeration | depthFirstEnumeration() | Enumeration depthFirstEnumeration() |
getAllowsChildren | getAllowsChildren() | boolean getAllowsChildren() |
getChildAfter | getChildAfter(aChild) | TreeNode getChildAfter(TreeNode aChild) |
getChildAt | getChildAt(index) | TreeNode getChildAt(int index) |
getChildBefore | getChildBefore(aChild) | TreeNode getChildBefore(TreeNode aChild) |
getChildCount | getChildCount() | int getChildCount() |
getDepth | getDepth() | int getDepth() |
getFirstChild | getFirstChild() | TreeNode getFirstChild() |
getFirstLeaf | getFirstLeaf() | DefaultMutableTreeNode getFirstLeaf() |
getIndex | getIndex(aChild) | int getIndex(TreeNode aChild) |
getLastChild | getLastChild() | TreeNode getLastChild() |
getLastLeaf | getLastLeaf() | DefaultMutableTreeNode getLastLeaf() |
getLeafCount | getLeafCount() | int getLeafCount() |
getLevel | getLevel() | int getLevel() |
getNextLeaf | getNextLeaf() | DefaultMutableTreeNode getNextLeaf() |
getNextNode | getNextNode() | DefaultMutableTreeNode getNextNode() |
getNextSibling | getNextSibling() | DefaultMutableTreeNode getNextSibling() |
getParent | getParent() | TreeNode getParent() |
getPath | getPath() | TreeNode[] getPath() |
getPreviousLeaf | getPreviousLeaf() | DefaultMutableTreeNode getPreviousLeaf() |
getPreviousNode | getPreviousNode() | DefaultMutableTreeNode getPreviousNode() |
getPreviousSibling | getPreviousSibling() | DefaultMutableTreeNode getPreviousSibling() |
getRoot | getRoot() | TreeNode getRoot() |
getSharedAncestor | getSharedAncestor(aNode) | TreeNode getSharedAncestor(DefaultMutableTreeNode aNode) |
getSiblingCount | getSiblingCount() | int getSiblingCount() |
getUserObject | getUserObject() | Object getUserObject() |
getUserObjectPath | getUserObjectPath() | Object[] getUserObjectPath() |
insert | insert(newChild,childIndex) | void insert(MutableTreeNode newChild, int childIndex) |
isLeaf | isLeaf() | boolean isLeaf() |
isNodeAncestor | isNodeAncestor(anotherNode) | boolean isNodeAncestor(TreeNode anotherNode) |
isNodeChild | isNodeChild(aNode) | boolean isNodeChild(TreeNode aNode) |
isNodeDescendant | isNodeDescendant(anotherNode) | boolean isNodeDescendant(DefaultMutableTreeNode anotherNode) |
isNodeRelated | isNodeRelated(aNode) | boolean isNodeRelated(DefaultMutableTreeNode aNode) |
isNodeSibling | isNodeSibling(anotherNode) | boolean isNodeSibling(TreeNode anotherNode) |
isRoot | isRoot() | boolean isRoot() |
pathFromAncestorEnumeration | pathFromAncestorEnumeration(ancestor) | Enumeration pathFromAncestorEnumeration(TreeNode ancestor) |
postorderEnumeration | postorderEnumeration() | Enumeration postorderEnumeration() |
preorderEnumeration | preorderEnumeration() | Enumeration preorderEnumeration() |
remove | remove(aChild) | void remove(MutableTreeNode aChild)void remove(int childIndex) |
removeAllChildren | removeAllChildren() | void removeAllChildren() |
removeFromParent | removeFromParent() | void removeFromParent() |
setAllowsChildren | setAllowsChildren(allows) | void setAllowsChildren(boolean allows) |
setParent | setParent(newParent) | void setParent(MutableTreeNode newParent) |
setUserObject | setUserObject(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
| Method | Ring call | Java overloads |
|---|---|---|
actionPerformed | actionPerformed(e) | void actionPerformed(ActionEvent e) |
addCellEditorListener | addCellEditorListener(l) | void addCellEditorListener(CellEditorListener l) |
cancelCellEditing | cancelCellEditing() | void cancelCellEditing() |
getBorderSelectionColor | getBorderSelectionColor() | Color getBorderSelectionColor() |
getCellEditorListeners | getCellEditorListeners() | CellEditorListener[] getCellEditorListeners() |
getCellEditorValue | getCellEditorValue() | Object getCellEditorValue() |
getFont | getFont() | Font getFont() |
getTreeCellEditorComponent | getTreeCellEditorComponent(tree,value,isSelected,expanded,leaf,row) | Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) |
isCellEditable | isCellEditable(event) | boolean isCellEditable(EventObject event) |
removeCellEditorListener | removeCellEditorListener(l) | void removeCellEditorListener(CellEditorListener l) |
setBorderSelectionColor | setBorderSelectionColor(newColor) | void setBorderSelectionColor(Color newColor) |
setFont | setFont(font) | void setFont(Font font) |
shouldSelectCell | shouldSelectCell(event) | boolean shouldSelectCell(EventObject event) |
stopCellEditing | stopCellEditing() | boolean stopCellEditing() |
valueChanged | valueChanged(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
| Method | Ring call | Java overloads |
|---|---|---|
EditorContainer | EditorContainer() | 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
| Method | Ring call | Java overloads |
|---|---|---|
getBackgroundNonSelectionColor | getBackgroundNonSelectionColor() | Color getBackgroundNonSelectionColor() |
getBackgroundSelectionColor | getBackgroundSelectionColor() | Color getBackgroundSelectionColor() |
getBorderSelectionColor | getBorderSelectionColor() | Color getBorderSelectionColor() |
getClosedIcon | getClosedIcon() | Icon getClosedIcon() |
getDefaultClosedIcon | getDefaultClosedIcon() | Icon getDefaultClosedIcon() |
getDefaultLeafIcon | getDefaultLeafIcon() | Icon getDefaultLeafIcon() |
getDefaultOpenIcon | getDefaultOpenIcon() | Icon getDefaultOpenIcon() |
getLeafIcon | getLeafIcon() | Icon getLeafIcon() |
getOpenIcon | getOpenIcon() | Icon getOpenIcon() |
getTextNonSelectionColor | getTextNonSelectionColor() | Color getTextNonSelectionColor() |
getTextSelectionColor | getTextSelectionColor() | Color getTextSelectionColor() |
getTreeCellRendererComponent | getTreeCellRendererComponent(tree,value,sel,expanded,leaf,row,hasFocus) | Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) |
setBackgroundNonSelectionColor | setBackgroundNonSelectionColor(newColor) | void setBackgroundNonSelectionColor(Color newColor) |
setBackgroundSelectionColor | setBackgroundSelectionColor(newColor) | void setBackgroundSelectionColor(Color newColor) |
setBorderSelectionColor | setBorderSelectionColor(newColor) | void setBorderSelectionColor(Color newColor) |
setClosedIcon | setClosedIcon(newIcon) | void setClosedIcon(Icon newIcon) |
setLeafIcon | setLeafIcon(newIcon) | void setLeafIcon(Icon newIcon) |
setOpenIcon | setOpenIcon(newIcon) | void setOpenIcon(Icon newIcon) |
setTextNonSelectionColor | setTextNonSelectionColor(newColor) | void setTextNonSelectionColor(Color newColor) |
setTextSelectionColor | setTextSelectionColor(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
| Method | Ring call | Java overloads |
|---|---|---|
@reload | @reload(node) | void reload(TreeNode node) |
addTreeModelListener | addTreeModelListener(l) | void addTreeModelListener(TreeModelListener l) |
asksAllowsChildren | asksAllowsChildren() | boolean asksAllowsChildren() |
getChild | getChild(parent,index) | Object getChild(Object parent, int index) |
getChildCount | getChildCount(parent) | int getChildCount(Object parent) |
getIndexOfChild | getIndexOfChild(parent,child) | int getIndexOfChild(Object parent, Object child) |
getListeners | getListeners(listenerType) | EventListener[] getListeners(Class listenerType) |
getPathToRoot | getPathToRoot(aNode) | TreeNode[] getPathToRoot(TreeNode aNode) |
getRoot | getRoot() | Object getRoot() |
getTreeModelListeners | getTreeModelListeners() | TreeModelListener[] getTreeModelListeners() |
insertNodeInto | insertNodeInto(newChild,parent,index) | void insertNodeInto(MutableTreeNode newChild, MutableTreeNode parent, int index) |
isLeaf | isLeaf(node) | boolean isLeaf(Object node) |
nodeChanged | nodeChanged(node) | void nodeChanged(TreeNode node) |
nodesChanged | nodesChanged(node,childIndices) | void nodesChanged(TreeNode node, int[] childIndices) |
nodeStructureChanged | nodeStructureChanged(node) | void nodeStructureChanged(TreeNode node) |
nodesWereInserted | nodesWereInserted(node,childIndices) | void nodesWereInserted(TreeNode node, int[] childIndices) |
nodesWereRemoved | nodesWereRemoved(node,childIndices,removedChildren) | void nodesWereRemoved(TreeNode node, int[] childIndices, Object[] removedChildren) |
reload | reload() | void reload() |
removeNodeFromParent | removeNodeFromParent(node) | void removeNodeFromParent(MutableTreeNode node) |
removeTreeModelListener | removeTreeModelListener(l) | void removeTreeModelListener(TreeModelListener l) |
setAsksAllowsChildren | setAsksAllowsChildren(newValue) | void setAsksAllowsChildren(boolean newValue) |
setRoot | setRoot(root) | void setRoot(TreeNode root) |
valueForPathChanged | valueForPathChanged(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
| Name | Type | Access | In Ring |
|---|---|---|---|
SELECTION_MODE_PROPERTY | String | constant · static | o.SELECTION_MODE_PROPERTY |
SINGLE_TREE_SELECTION | int | constant · static | o.SINGLE_TREE_SELECTION |
CONTIGUOUS_TREE_SELECTION | int | constant · static | o.CONTIGUOUS_TREE_SELECTION |
DISCONTIGUOUS_TREE_SELECTION | int | constant · static | o.DISCONTIGUOUS_TREE_SELECTION |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
addPropertyChangeListener | addPropertyChangeListener(listener) | void addPropertyChangeListener(PropertyChangeListener listener) |
addSelectionPath | addSelectionPath(path) | void addSelectionPath(TreePath path) |
addSelectionPaths | addSelectionPaths(paths) | void addSelectionPaths(TreePath[] paths) |
addTreeSelectionListener | addTreeSelectionListener(x) | void addTreeSelectionListener(TreeSelectionListener x) |
clearSelection | clearSelection() | void clearSelection() |
clone | clone() | Object clone() |
getLeadSelectionPath | getLeadSelectionPath() | TreePath getLeadSelectionPath() |
getLeadSelectionRow | getLeadSelectionRow() | int getLeadSelectionRow() |
getListeners | getListeners(listenerType) | EventListener[] getListeners(Class listenerType) |
getMaxSelectionRow | getMaxSelectionRow() | int getMaxSelectionRow() |
getMinSelectionRow | getMinSelectionRow() | int getMinSelectionRow() |
getPropertyChangeListeners | getPropertyChangeListeners() | PropertyChangeListener[] getPropertyChangeListeners() |
getRowMapper | getRowMapper() | RowMapper getRowMapper() |
getSelectionCount | getSelectionCount() | int getSelectionCount() |
getSelectionMode | getSelectionMode() | int getSelectionMode() |
getSelectionPath | getSelectionPath() | TreePath getSelectionPath() |
getSelectionPaths | getSelectionPaths() | TreePath[] getSelectionPaths() |
getSelectionRows | getSelectionRows() | int[] getSelectionRows() |
getTreeSelectionListeners | getTreeSelectionListeners() | TreeSelectionListener[] getTreeSelectionListeners() |
isPathSelected | isPathSelected(path) | boolean isPathSelected(TreePath path) |
isRowSelected | isRowSelected(row) | boolean isRowSelected(int row) |
isSelectionEmpty | isSelectionEmpty() | boolean isSelectionEmpty() |
removePropertyChangeListener | removePropertyChangeListener(listener) | void removePropertyChangeListener(PropertyChangeListener listener) |
removeSelectionPath | removeSelectionPath(path) | void removeSelectionPath(TreePath path) |
removeSelectionPaths | removeSelectionPaths(paths) | void removeSelectionPaths(TreePath[] paths) |
removeTreeSelectionListener | removeTreeSelectionListener(x) | void removeTreeSelectionListener(TreeSelectionListener x) |
resetRowSelection | resetRowSelection() | void resetRowSelection() |
setRowMapper | setRowMapper(newMapper) | void setRowMapper(RowMapper newMapper) |
setSelectionMode | setSelectionMode(mode) | void setSelectionMode(int mode) |
setSelectionPath | setSelectionPath(path) | void setSelectionPath(TreePath path) |
setSelectionPaths | setSelectionPaths(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
| Method | Ring call | Java overloads |
|---|---|---|
children | children() | Enumeration children() |
getAllowsChildren | getAllowsChildren() | boolean getAllowsChildren() |
getChildAt | getChildAt(childIndex) | TreeNode getChildAt(int childIndex) |
getChildCount | getChildCount() | int getChildCount() |
getIndex | getIndex(node) | int getIndex(TreeNode node) |
getParent | getParent() | TreeNode getParent() |
insert | insert(child,index) | void insert(MutableTreeNode child, int index) |
isLeaf | isLeaf() | boolean isLeaf() |
remove | remove(node) | void remove(MutableTreeNode node)void remove(int index) |
removeFromParent | removeFromParent() | void removeFromParent() |
setParent | setParent(newParent) | void setParent(MutableTreeNode newParent) |
setUserObject | setUserObject(object) | void setUserObject(Object object) |
RowMapper#
interface · javax.swing.tree.RowMapper
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getRowsForPaths | getRowsForPaths(path) | int[] getRowsForPaths(TreePath[] path) |
TreeCellEditor#
interface · javax.swing.tree.TreeCellEditor
Extends: CellEditor
Methods
| Method | Ring call | Java overloads |
|---|---|---|
addCellEditorListener | addCellEditorListener(l) | void addCellEditorListener(CellEditorListener l) |
cancelCellEditing | cancelCellEditing() | void cancelCellEditing() |
getCellEditorValue | getCellEditorValue() | Object getCellEditorValue() |
getTreeCellEditorComponent | getTreeCellEditorComponent(tree,value,isSelected,expanded,leaf,row) | Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) |
isCellEditable | isCellEditable(anEvent) | boolean isCellEditable(EventObject anEvent) |
removeCellEditorListener | removeCellEditorListener(l) | void removeCellEditorListener(CellEditorListener l) |
shouldSelectCell | shouldSelectCell(anEvent) | boolean shouldSelectCell(EventObject anEvent) |
stopCellEditing | stopCellEditing() | boolean stopCellEditing() |
TreeCellRenderer#
interface · javax.swing.tree.TreeCellRenderer
Methods
| Method | Ring call | Java overloads |
|---|---|---|
getTreeCellRendererComponent | getTreeCellRendererComponent(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
| Method | Ring call | Java overloads |
|---|---|---|
addTreeModelListener | addTreeModelListener(l) | void addTreeModelListener(TreeModelListener l) |
getChild | getChild(parent,index) | Object getChild(Object parent, int index) |
getChildCount | getChildCount(parent) | int getChildCount(Object parent) |
getIndexOfChild | getIndexOfChild(parent,child) | int getIndexOfChild(Object parent, Object child) |
getRoot | getRoot() | Object getRoot() |
isLeaf | isLeaf(node) | boolean isLeaf(Object node) |
removeTreeModelListener | removeTreeModelListener(l) | void removeTreeModelListener(TreeModelListener l) |
valueForPathChanged | valueForPathChanged(path,newValue) | void valueForPathChanged(TreePath path, Object newValue) |
TreeNode#
interface · javax.swing.tree.TreeNode
Methods
| Method | Ring call | Java overloads |
|---|---|---|
children | children() | Enumeration children() |
getAllowsChildren | getAllowsChildren() | boolean getAllowsChildren() |
getChildAt | getChildAt(childIndex) | TreeNode getChildAt(int childIndex) |
getChildCount | getChildCount() | int getChildCount() |
getIndex | getIndex(node) | int getIndex(TreeNode node) |
getParent | getParent() | TreeNode getParent() |
isLeaf | isLeaf() | 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
| Method | Ring call | Java overloads |
|---|---|---|
getLastPathComponent | getLastPathComponent() | Object getLastPathComponent() |
getParentPath | getParentPath() | TreePath getParentPath() |
getPath | getPath() | Object[] getPath() |
getPathComponent | getPathComponent(index) | Object getPathComponent(int index) |
getPathCount | getPathCount() | int getPathCount() |
isDescendant | isDescendant(aTreePath) | boolean isDescendant(TreePath aTreePath) |
pathByAddingChild | pathByAddingChild(child) | TreePath pathByAddingChild(Object child) |
The methods and fields of Object are inherited.
TreeSelectionModel#
interface · javax.swing.tree.TreeSelectionModel
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
SINGLE_TREE_SELECTION | int | constant · static | o.SINGLE_TREE_SELECTION |
CONTIGUOUS_TREE_SELECTION | int | constant · static | o.CONTIGUOUS_TREE_SELECTION |
DISCONTIGUOUS_TREE_SELECTION | int | constant · static | o.DISCONTIGUOUS_TREE_SELECTION |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
addPropertyChangeListener | addPropertyChangeListener(listener) | void addPropertyChangeListener(PropertyChangeListener listener) |
addSelectionPath | addSelectionPath(path) | void addSelectionPath(TreePath path) |
addSelectionPaths | addSelectionPaths(paths) | void addSelectionPaths(TreePath[] paths) |
addTreeSelectionListener | addTreeSelectionListener(x) | void addTreeSelectionListener(TreeSelectionListener x) |
clearSelection | clearSelection() | void clearSelection() |
getLeadSelectionPath | getLeadSelectionPath() | TreePath getLeadSelectionPath() |
getLeadSelectionRow | getLeadSelectionRow() | int getLeadSelectionRow() |
getMaxSelectionRow | getMaxSelectionRow() | int getMaxSelectionRow() |
getMinSelectionRow | getMinSelectionRow() | int getMinSelectionRow() |
getRowMapper | getRowMapper() | RowMapper getRowMapper() |
getSelectionCount | getSelectionCount() | int getSelectionCount() |
getSelectionMode | getSelectionMode() | int getSelectionMode() |
getSelectionPath | getSelectionPath() | TreePath getSelectionPath() |
getSelectionPaths | getSelectionPaths() | TreePath[] getSelectionPaths() |
getSelectionRows | getSelectionRows() | int[] getSelectionRows() |
isPathSelected | isPathSelected(path) | boolean isPathSelected(TreePath path) |
isRowSelected | isRowSelected(row) | boolean isRowSelected(int row) |
isSelectionEmpty | isSelectionEmpty() | boolean isSelectionEmpty() |
removePropertyChangeListener | removePropertyChangeListener(listener) | void removePropertyChangeListener(PropertyChangeListener listener) |
removeSelectionPath | removeSelectionPath(path) | void removeSelectionPath(TreePath path) |
removeSelectionPaths | removeSelectionPaths(paths) | void removeSelectionPaths(TreePath[] paths) |
removeTreeSelectionListener | removeTreeSelectionListener(x) | void removeTreeSelectionListener(TreeSelectionListener x) |
resetRowSelection | resetRowSelection() | void resetRowSelection() |
setRowMapper | setRowMapper(newMapper) | void setRowMapper(RowMapper newMapper) |
setSelectionMode | setSelectionMode(mode) | void setSelectionMode(int mode) |
setSelectionPath | setSelectionPath(path) | void setSelectionPath(TreePath path) |
setSelectionPaths | setSelectionPaths(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.