All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.as400.vaccess.VJob
java.lang.Object
|
+----com.ibm.as400.vaccess.VJob
- public class VJob
- extends Object
- implements VNode, Serializable
The VJob class defines the representation of a job on an
AS/400 for use in various models and panes in this package.
You must explicitly call load() to load the information from
the AS/400.
Most errors are reported as ErrorEvents rather than
throwing exceptions. Users should listen for ErrorEvents
in order to diagnose and recover from error conditions.
VJob objects generate the following events:
- ErrorEvent
- PropertyChangeEvent
- VObjectEvent
- WorkingEvent
-
CPUUSED_PROPERTY
- Property identifier for the CPU used.
-
DATE_PROPERTY
- Property identifier for the date.
-
FUNCTION_PROPERTY
- Property identifier for the function.
-
NUMBER_PROPERTY
- Property identifier for the number.
-
STATUS_PROPERTY
- Property identifier for the status.
-
SUBSYSTEM_PROPERTY
- Property identifier for the subsystem.
-
SUBTYPE_PROPERTY
- Property identifier for the subtype.
-
TYPE_PROPERTY
- Property identifier for the type.
-
USER_PROPERTY
- Property identifier for the user.
-
VJob()
- Constructs a VJob object.
-
VJob(AS400, Job)
- Constructs a VJob object.
-
VJob(VNode, AS400, Job)
- Constructs a VJob object.
-
addErrorListener(ErrorListener)
- Adds a listener to be notified when an error occurs.
-
addPropertyChangeListener(PropertyChangeListener)
- Adds a listener to be notified when the value of any
bound property changes.
-
addVetoableChangeListener(VetoableChangeListener)
- Adds a listener to be notified when the value of any
constrained property changes.
-
addVObjectListener(VObjectListener)
- Adds a listener to be notified when a VObject is changed,
created, or deleted.
-
addWorkingListener(WorkingListener)
- Adds a listener to be notified when work starts and stops
on potentially long-running operations.
-
children()
- Returns the children of the node.
-
getActions()
- Returns the list of actions that can be performed.
-
getAllowsChildren()
- Indiciates if the node allows children.
-
getChildAt(int)
- Returns the child node at the specified index.
-
getChildCount()
- Returns the number of children.
-
getDefaultAction()
- Returns the default action.
-
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.
-
getIcon(int, boolean)
- Returns the icon.
-
getIndex(TreeNode)
- Returns the index of the specified child.
-
getJob()
- Returns the job.
-
getParent()
- Returns the parent node.
-
getPropertiesPane()
- Returns the properties pane.
-
getPropertyValue(Object)
- Returns a property value.
-
getSystem()
- Returns the AS/400 system on which the job resides.
-
getText()
- Returns the text.
-
isLeaf()
- Indicates if the node is a leaf.
-
isSortable()
- Indicates if the details children are sortable.
-
load()
- Loads information about the object from the AS/400.
-
removeErrorListener(ErrorListener)
- Removes an error listener.
-
removePropertyChangeListener(PropertyChangeListener)
- Removes a property change listener.
-
removeVetoableChangeListener(VetoableChangeListener)
- Removes a vetoable change listener.
-
removeVObjectListener(VObjectListener)
- Removes a VObjectListener.
-
removeWorkingListener(WorkingListener)
- Removes a working listener.
-
setJob(Job)
- Sets the job.
-
setSystem(AS400)
- Sets the AS/400 on which the job resides.
-
sortDetailsChildren(Object[], boolean[])
- Sorts the children for the details.
-
toString()
- Returns the string representation of the job name.
CPUUSED_PROPERTY
public static final Object CPUUSED_PROPERTY
- Property identifier for the CPU used.
DATE_PROPERTY
public static final Object DATE_PROPERTY
- Property identifier for the date.
FUNCTION_PROPERTY
public static final Object FUNCTION_PROPERTY
- Property identifier for the function.
NUMBER_PROPERTY
public static final Object NUMBER_PROPERTY
- Property identifier for the number.
STATUS_PROPERTY
public static final Object STATUS_PROPERTY
- Property identifier for the status.
SUBSYSTEM_PROPERTY
public static final Object SUBSYSTEM_PROPERTY
- Property identifier for the subsystem.
SUBTYPE_PROPERTY
public static final Object SUBTYPE_PROPERTY
- Property identifier for the subtype.
TYPE_PROPERTY
public static final Object TYPE_PROPERTY
- Property identifier for the type.
USER_PROPERTY
public static final Object USER_PROPERTY
- Property identifier for the user.
VJob
public VJob()
- Constructs a VJob object.
VJob
public VJob(AS400 system,
Job job)
- Constructs a VJob object.
- Parameters:
- system - The AS/400 system on which the job resides.
- job - The job.
VJob
public VJob(VNode parent,
AS400 system,
Job job)
- Constructs a VJob object.
- Parameters:
- parent - The parent.
- system - The AS/400 system on which the job resides.
- job - The job.
addErrorListener
public void addErrorListener(ErrorListener listener)
- Adds a listener to be notified when an error occurs.
- Parameters:
- listener - The listener.
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
- Adds a listener to be notified when the value of any
bound property changes.
- Parameters:
- listener - The listener.
addVetoableChangeListener
public void addVetoableChangeListener(VetoableChangeListener listener)
- Adds a listener to be notified when the value of any
constrained property changes.
- Parameters:
- listener - The listener.
addVObjectListener
public void addVObjectListener(VObjectListener listener)
- Adds a listener to be notified when a VObject is changed,
created, or deleted.
- Parameters:
- listener - The listener.
addWorkingListener
public void addWorkingListener(WorkingListener listener)
- Adds a listener to be notified when work starts and stops
on potentially long-running operations.
- Parameters:
- listener - The listener.
children
public Enumeration children()
- Returns the children of the node.
- Returns:
- The children.
getActions
public VAction[] getActions()
- Returns the list of actions that can be performed.
- Returns:
- Always null. There are no actions.
getAllowsChildren
public boolean getAllowsChildren()
- Indiciates if the node allows children.
- Returns:
- Always false.
getChildAt
public TreeNode getChildAt(int index)
- Returns the child node at the specified index.
- Parameters:
- index - The index.
- Returns:
- Always null.
getChildCount
public int getChildCount()
- Returns the number of children.
- Returns:
- Always 0.
getDefaultAction
public VAction getDefaultAction()
- Returns the default action.
- Returns:
- Always null. There is no default action.
getDetailsChildAt
public 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 synchronized int getDetailsChildCount()
- Returns the number of children for the details.
- Returns:
- The number of children for the details.
getDetailsColumnModel
public TableColumnModel getDetailsColumnModel()
- Returns the table column model to use in the details
when representing the children. This column model
describes the details values for the children.
- Returns:
- The details column model.
getDetailsIndex
public synchronized 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.
getIcon
public Icon getIcon(int size,
boolean open)
- Returns the icon.
- Parameters:
- size - The icon size, either 16 or 32. If any other
value is given, then return a default.
- open - This parameter has no effect.
- Returns:
- The icon.
getIndex
public int getIndex(TreeNode child)
- Returns the index of the specified child.
- Parameters:
- child - The child.
- Returns:
- Always -1.
getJob
public Job getJob()
- Returns the job.
- Returns:
- The job, or null if it has not been set.
getParent
public TreeNode getParent()
- Returns the parent node.
- Returns:
- The parent node, or null if there is no parent.
getPropertiesPane
public VPropertiesPane getPropertiesPane()
- Returns the properties pane.
- Returns:
- The properties pane.
getPropertyValue
public Object getPropertyValue(Object propertyIdentifier)
- Returns a property value.
- Parameters:
- propertyIdentifier - The property identifier. The choices are
- NAME_PROPERTY
- DESCRIPTION_PROPERTY
- USER_PROPERTY
- NUMBER_PROPERTY
- SUBSYSTEM_PROPERTY
- TYPE_PROPERTY
- SUBTYPE_PROPERTY
- CPUUSED_PROPERTY
- FUNCTION_PROPERTY
- STATUS_PROPERTY
- DATE_PROPERTY
- Returns:
- The property value, or null if the
property identifier is not recognized.
getSystem
public AS400 getSystem()
- Returns the AS/400 system on which the job resides.
- Returns:
- The AS/400 system on which the job resides.
- See Also:
- getSystem
getText
public String getText()
- Returns the text. This is the job name.
- Returns:
- The text which is the job name.
isLeaf
public boolean isLeaf()
- Indicates if the node is a leaf.
- Returns:
- Always true.
isSortable
public boolean isSortable()
- Indicates if the details children are sortable.
- Returns:
- Always false.
load
public void load()
- Loads information about the object from the AS/400.
removeErrorListener
public void removeErrorListener(ErrorListener listener)
- Removes an error listener.
- Parameters:
- listener - The listener.
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
- Removes a property change listener.
- Parameters:
- listener - The listener.
removeVetoableChangeListener
public void removeVetoableChangeListener(VetoableChangeListener listener)
- Removes a vetoable change listener.
- Parameters:
- listener - The listener.
removeVObjectListener
public void removeVObjectListener(VObjectListener listener)
- Removes a VObjectListener.
- Parameters:
- listener - The listener.
removeWorkingListener
public void removeWorkingListener(WorkingListener listener)
- Removes a working listener.
- Parameters:
- listener - The listener.
setJob
public void setJob(Job job) throws PropertyVetoException
- Sets the job.
- Parameters:
- job - The job.
- Throws: PropertyVetoException
- If the change is vetoed.
setSystem
public void setSystem(AS400 system) throws PropertyVetoException
- Sets the AS/400 on which the job resides.
- Parameters:
- system - The AS/400 on which the job resides.
- Throws: PropertyVetoException
- If the change is vetoed.
- See Also:
- setSystem
sortDetailsChildren
public synchronized void sortDetailsChildren(Object propertyIdentifiers[],
boolean orders[])
- Sorts the children for the details. Sorting in not supported.
- Parameters:
- propertyIdentifiers - The property identifiers.
- orders - The sort orders for each property
identifier. true for ascending order;
false for descending order.
toString
public String toString()
- Returns the string representation of the job name.
- Returns:
- The string representation of the job name.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index