All Packages Class Hierarchy This Package Previous Next Index
Interface com.ibm.as400.vaccess.VNode
- public interface VNode
- extends VObject, TreeNode
The VNode interface defines the representation of an
AS/400 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.
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:
- ErrorEvent
- VObjectEvent
- WorkingEvent
An implementation of this interface should pass on all
events fired by its children to its listeners.
-
getDetailsChildAt(int)
- Returns the child for the details at the specified index.
-
getDetailsChildCount()
- Returns the number of children for the details.
-
getDetailsColumnModel()
- Returns the table column model to use in the details
when representing the children.
-
getDetailsIndex(VObject)
- Returns the index of the specified child for the details.
-
isSortable()
- Indicates if the details children are sortable.
-
sortDetailsChildren(Object[], boolean[])
- Sorts the children for the details.
getDetailsColumnModel
public abstract TableColumnModel getDetailsColumnModel()
- Returns the table column model to use in the details
when representing the children. Each of the columns
in this column model has an identifier that identifies
the property with which it is associated. The property
values of the children are then displayed in that column.
- Returns:
- The details column model, or null if there is none.
- See Also:
- getPropertyValue
getDetailsChildAt
public abstract VObject getDetailsChildAt(int index)
- Returns the child for the details at the specified index.
- Parameters:
- index - The index.
- Returns:
- The child, or null if the index is not valid.
getDetailsChildCount
public abstract int getDetailsChildCount()
- Returns the number of children for the details.
- Returns:
- The number of children for the details.
getDetailsIndex
public abstract int getDetailsIndex(VObject detailsChild)
- Returns the index of the specified child for the details.
- Parameters:
- detailsChild - The details child.
- Returns:
- The index, or -1 if the child is not
found in the details.
isSortable
public abstract boolean isSortable()
- Indicates if the details children are sortable. An
implementation that contains a large number of children or
children that are not all loaded from the system at once
may not want its' children to be sortable.
- Returns:
- true if the details children are sortable; false
otherwise.
sortDetailsChildren
public abstract void sortDetailsChildren(Object propertyIdentifiers[],
boolean orders[])
- Sorts the children for the details. The propertyIdentifer[0], orders[0] combination is used to do the sort. If the values are equal, propertyIdentifier[1], orders[1] is used to break the tie, and so forth.
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.
- Parameters:
- 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.
All Packages Class Hierarchy This Package Previous Next Index