|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The VNode interface defines the representation of an system resource that exists in a hierarchy.
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.
Field Summary |
---|
Fields inherited from interface com.ibm.as400.vaccess.VObject |
---|
DESCRIPTION_PROPERTY, NAME_PROPERTY |
Method Summary | |
---|---|
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. |
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(Object[] propertyIdentifiers,
boolean[] orders)
Deprecated. Sorts the children for the details. |
Methods inherited from interface com.ibm.as400.vaccess.VObject |
---|
addErrorListener, addVObjectListener, addWorkingListener, getActions, getDefaultAction, getIcon, getPropertiesPane, getPropertyValue, getText, load, removeErrorListener, removeVObjectListener, removeWorkingListener |
Methods inherited from interface javax.swing.tree.TreeNode |
---|
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf |
Method Detail |
public 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)
public VObject getDetailsChildAt(int index)
index
- The index.
public int getDetailsChildCount()
public int getDetailsIndex(VObject detailsChild)
detailsChild
- The details child.
public boolean isSortable()
public void sortDetailsChildren(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.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |