Interface VNode
-
- All Superinterfaces:
- javax.swing.tree.TreeNode, VObject
- All Known Implementing Classes:
- VIFSDirectory, VJob, VJobList, VMessageList, VMessageQueue, VPrinter, VPrinterOutput, VPrinters, VSystemStatus, VSystemValueList, VUserAndGroup, VUserList
Deprecated.Use Java Swing instead, along with the classes in package com.ibm.as400.access
public interface VNode extends VObject, javax.swing.tree.TreeNode
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:
- ErrorEvent
- VObjectEvent
- WorkingEvent
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
Methods 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.-
Methods inherited from interface com.ibm.as400.vaccess.VObject
addErrorListener, addVObjectListener, addWorkingListener, getActions, getDefaultAction, getIcon, getPropertiesPane, getPropertyValue, getText, load, removeErrorListener, removeVObjectListener, removeWorkingListener
-
-
-
-
Method Detail
-
getDetailsColumnModel
javax.swing.table.TableColumnModel getDetailsColumnModel()
Deprecated.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.This is called on the root of an AS400DetailsPane or AS400DetailsModel to determine the structure of the table.
- Returns:
- The details column model, or null if there is none.
- See Also:
VObject.getPropertyValue(java.lang.Object)
-
getDetailsChildAt
VObject getDetailsChildAt(int index)
Deprecated.Returns the child for the details at the specified index. This is called in order to determine the list of children to be displayed in an AS400DetailsPane, AS400DetailsModel, AS400ListPane, or AS400ListModel.- Parameters:
index
- The index.- Returns:
- The child, or null if the index is not valid.
-
getDetailsChildCount
int getDetailsChildCount()
Deprecated.Returns the number of children for the details. This is called in order to determine the list of children to be displayed in an AS400DetailsPane, AS400DetailsModel, AS400ListPane, or AS400ListModel.- Returns:
- The number of children for the details.
-
getDetailsIndex
int getDetailsIndex(VObject detailsChild)
Deprecated.Returns the index of the specified child for the details. This is called in order to determine the list of children to be displayed in an AS400DetailsPane, AS400DetailsModel, AS400ListPane, or AS400ListModel.- Parameters:
detailsChild
- The details child.- Returns:
- The index, or -1 if the child is not found in the details.
-
isSortable
boolean isSortable()
Deprecated.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
void sortDetailsChildren(java.lang.Object[] propertyIdentifiers, boolean[] orders)
Deprecated.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.
-
-