public interface VNode extends VObject, javax.swing.tree.TreeNode
In the hierarchy, a node has exactly one parent and any number of children. Note that there may be a different set of children for the "tree" hierarchy than those represented in the "details" hierarchy. The tree hierarchy is for displaying in tree views, while the details hierarchy is for list and details views.
Many of these methods are not called directly by programs. Instead, they are called by the server panes to respond to the user interface as needed.
Most errors are reported as ErrorEvents rather than throwing exceptions. Users should listen for ErrorEvents in order to diagnose and recover from error conditions.
VNode objects generate the following events:
An implementation of this interface should pass on all events fired by its children to its listeners.
DESCRIPTION_PROPERTY, NAME_PROPERTY
Modifier and Type | Method and Description |
---|---|
VObject |
getDetailsChildAt(int index)
Deprecated.
Returns the child for the details at the specified index.
|
int |
getDetailsChildCount()
Deprecated.
Returns the number of children for the details.
|
javax.swing.table.TableColumnModel |
getDetailsColumnModel()
Deprecated.
Returns the table column model to use in the details
when representing the children.
|
int |
getDetailsIndex(VObject detailsChild)
Deprecated.
Returns the index of the specified child for the details.
|
boolean |
isSortable()
Deprecated.
Indicates if the details children are sortable.
|
void |
sortDetailsChildren(java.lang.Object[] propertyIdentifiers,
boolean[] orders)
Deprecated.
Sorts the children for the details.
|
addErrorListener, addVObjectListener, addWorkingListener, getActions, getDefaultAction, getIcon, getPropertiesPane, getPropertyValue, getText, load, removeErrorListener, removeVObjectListener, removeWorkingListener
javax.swing.table.TableColumnModel getDetailsColumnModel()
This is called on the root of an AS400DetailsPane or AS400DetailsModel to determine the structure of the table.
VObject.getPropertyValue(java.lang.Object)
VObject getDetailsChildAt(int index)
index
- The index.int getDetailsChildCount()
int getDetailsIndex(VObject detailsChild)
detailsChild
- The details child.boolean isSortable()
void sortDetailsChildren(java.lang.Object[] propertyIdentifiers, boolean[] orders)
An implementation that contains a large number of children or children that are not all loaded from the system at once may not want to allow sorting of its children. In that case, this method will have no effect.
propertyIdentifiers
- The property identifiers. If any of
the property identifiers are null, it
means to sort using the string
representation of the object.orders
- The sort orders for each property
identifier. true for ascending order;
false for descending order.