All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.as400.vaccess.VSystemStatusPane

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.ibm.as400.vaccess.VSystemStatusPane

public class VSystemStatusPane
extends JComponent
implements Serializable, Runnable, ErrorListener, PropertyChangeListener
The VSystemStatusPane class represents a visual pane which shows the system status information.


Constructor Index

 o VSystemStatusPane(AS400)
Constructs a VSystemStatusPane object.

Method Index

 o addErrorListener(ErrorListener)
Adds a listener to be notified when an error occurs.
 o addListSelectionListener(ListSelectionListener)
Adds a listener to be notified when a list selection occurs in the details pane.
 o addPropertyChangeListener(PropertyChangeListener)
Adds a listener to be notified when the value of any bound property changes.
 o addVetoableChangeListener(VetoableChangeListener)
Adds a listener to be notified when the value of any constrained property changes.
 o errorOccurred(ErrorEvent)
Invoked when an error has occurred.
 o getActionContext()
Returns the context in which actions will be performed.
 o getAllowActions()
Returns the value indicating if actions can be invoked on objects.
 o getDetailsColumnModel()
Returns the column model that is used to maintain the columns of the details.
 o getDetailsModel()
Returns the details model.
 o getDetailsSelectionModel()
Returns the selection model that is used to maintain selection state in the details.
 o getRefreshInterval()
Returns the refresh interval in milliseconds.
 o getSelectedObject()
Returns the first selected object.
 o getSelectedObjects()
Returns the selected objects.
 o getVSystemStatus()
Returns the VSystemStatus contained in VSystemStatusPane.
 o isAllowModifyAllPools()
Return true if the modify action to all system pools is allowed; false otherwise.
 o load()
Loads system status information from the AS/400.
 o propertyChange(PropertyChangeEvent)
The property is changed.
 o removeErrorListener(ErrorListener)
Removes an error listener.
 o removeListSelectionListener(ListSelectionListener)
Removes a list selection listener.
 o removePropertyChangeListener(PropertyChangeListener)
Removes a property change listener.
 o removeVetoableChangeListener(VetoableChangeListener)
Removes a vetoable change listener.
 o run()
This method makes the refresh to happen automatically.
 o setAllowActions(boolean)
Sets the value indicating whether actions are allowed.
 o setAllowModifyAllPools(boolean)
Set the state of modify action of all the pools.
 o setConfirm(boolean)
Sets the value indicating whether certain actions are confirmed with the user.
 o setDetailsSelectionModel(ListSelectionModel)
Sets the selection model that is used to maintain selection state in the details.
 o setRefreshInterval(int)
Set the refresh interval.
 o setRoot(VNode)
Sets the root, or the AS/400 resource, from which all information for the model is gathered.
 o sort(Object[], boolean[])
Sorts the contents.

Constructors

 o VSystemStatusPane
 public VSystemStatusPane(AS400 system)
Constructs a VSystemStatusPane object.

Parameters:
system - The AS/400 system in which the system status information resides.

Methods

 o addErrorListener
 public void addErrorListener(ErrorListener listener)
Adds a listener to be notified when an error occurs.

Parameters:
listener - The listener.
 o addListSelectionListener
 public void addListSelectionListener(ListSelectionListener listener)
Adds a listener to be notified when a list selection occurs in the details pane.

Parameters:
listener - The listener.
 o addPropertyChangeListener
 public void addPropertyChangeListener(PropertyChangeListener listener)
Adds a listener to be notified when the value of any bound property changes.

Parameters:
listener - The listener.
Overrides:
addPropertyChangeListener in class JComponent
 o addVetoableChangeListener
 public void addVetoableChangeListener(VetoableChangeListener listener)
Adds a listener to be notified when the value of any constrained property changes.

Parameters:
listener - The listener.
Overrides:
addVetoableChangeListener in class JComponent
 o errorOccurred
 public void errorOccurred(ErrorEvent event)
Invoked when an error has occurred.

Parameters:
event - The error event.
 o getActionContext
 public VActionContext getActionContext()
Returns the context in which actions will be performed.

Returns:
The context.
 o getAllowActions
 public boolean getAllowActions()
Returns the value indicating if actions can be invoked on objects.

Returns:
true if actions can be invoked; false otherwise.
 o getDetailsColumnModel
 public TableColumnModel getDetailsColumnModel()
Returns the column model that is used to maintain the columns of the details.

Returns:
The column model.
 o getDetailsModel
 public TableModel getDetailsModel()
Returns the details model.

Returns:
The details model.
 o getDetailsSelectionModel
 public ListSelectionModel getDetailsSelectionModel()
Returns the selection model that is used to maintain selection state in the details.

Returns:
The selection model, or null if selections are not allowed.
 o getRefreshInterval
 public int getRefreshInterval()
Returns the refresh interval in milliseconds.

Returns:
The refresh interval in milliseconds.
 o getSelectedObject
 public VObject getSelectedObject()
Returns the first selected object.

Returns:
The first selected object.
 o getSelectedObjects
 public VObject[] getSelectedObjects()
Returns the selected objects.

Returns:
The selected objects.
 o getVSystemStatus
 public VSystemStatus getVSystemStatus()
Returns the VSystemStatus contained in VSystemStatusPane.

Returns:
The VSystemStatus contained in VSystemStatusPane.
 o isAllowModifyAllPools
 public boolean isAllowModifyAllPools()
Return true if the modify action to all system pools is allowed; false otherwise.

Returns:
true if the modify action to all system pools is allowed; false otherwise.
 o load
 public void load()
Loads system status information from the AS/400.

 o propertyChange
 public void propertyChange(PropertyChangeEvent event)
The property is changed.

Parameters:
event - The property change event.
 o removeErrorListener
 public void removeErrorListener(ErrorListener listener)
Removes an error listener.

Parameters:
listener - The listener.
 o removeListSelectionListener
 public void removeListSelectionListener(ListSelectionListener listener)
Removes a list selection listener.

Parameters:
listener - The listener.
 o removePropertyChangeListener
 public void removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener.

Parameters:
listener - The listener.
Overrides:
removePropertyChangeListener in class JComponent
 o removeVetoableChangeListener
 public void removeVetoableChangeListener(VetoableChangeListener listener)
Removes a vetoable change listener.

Parameters:
listener - The listener.
Overrides:
removeVetoableChangeListener in class JComponent
 o run
 public void run()
This method makes the refresh to happen automatically. Here is an example:

 ...
 // Constructs a AS400 system object.
 AS400 system = new AS400();
 // Constructs a VSystemStatusPane object.
 VSystemStatusPane  pane= new VSystemStatusPane(as400);
 //Set the refreshing interval in milliseconds. 
 pane.setRefreshInterval(3000);
 pane.run();
 ...
 

 o setAllowActions
 public void setAllowActions(boolean allowAction)
Sets the value indicating whether actions are allowed.

Parameters:
allowAction - true if actions are allowed; false otherwise.
 o setAllowModifyAllPools
 public void setAllowModifyAllPools(boolean allow)
Set the state of modify action of all the pools.

Parameters:
allowModify - The boolean value.
 o setConfirm
 public void setConfirm(boolean confirm)
Sets the value indicating whether certain actions are confirmed with the user.

Parameters:
confirm - true if certain actions are confirmed with the user; false otherwise.
 o setDetailsSelectionModel
 public void setDetailsSelectionModel(ListSelectionModel listSe1)
Sets the selection model that is used to maintain selection state in the details.

Parameters:
listSe1 - The selection model, or null if selections are not allowed.
 o setRefreshInterval
 public void setRefreshInterval(int interval)
Set the refresh interval.

Parameters:
interval - The refresh interval.
 o setRoot
 public void setRoot(VNode root) throws PropertyVetoException
Sets the root, or the AS/400 resource, from which all information for the model is gathered.

Parameters:
vNode - The root, or the AS/400 resource, from which all information for the model is gathered.
Throws: PropertyVetoException
If the proposed change to root is unacceptable.
 o sort
 public void sort(Object propertyIdentifiers[],
                  boolean orders[])
Sorts the contents.

Parameters:
propertyIdentifiers - The property identifiers.
orders - The sort orders for each property identifier.

All Packages  Class Hierarchy  This Package  Previous  Next  Index