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