com.ibm.as400.vaccess
Class VSystemStatusPane

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--com.ibm.as400.vaccess.VSystemStatusPane
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class VSystemStatusPane
extends javax.swing.JPanel
implements java.io.Serializable

The VSystemStatusPane class represents a visual pane which shows the system status information.

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
VSystemStatusPane(AS400 system)
          Constructs a VSystemStatusPane object.
 
Method Summary
 void addErrorListener(ErrorListener listener)
          Adds a listener to be notified when an error occurs.
 void addListSelectionListener(javax.swing.event.ListSelectionListener listener)
          Adds a listener to be notified when a list selection occurs in the details pane.
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Adds a listener to be notified when the value of any bound property changes.
 void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
          Adds a listener to be notified when the value of any constrained property changes.
 VActionContext getActionContext()
          Returns the context in which actions will be performed.
 boolean getAllowActions()
          Returns the value indicating if actions can be invoked on objects.
 javax.swing.table.TableColumnModel getDetailsColumnModel()
          Returns the column model that is used to maintain the columns of the details.
 javax.swing.table.TableModel getDetailsModel()
          Returns the details model.
 javax.swing.ListSelectionModel getDetailsSelectionModel()
          Returns the selection model that is used to maintain selection state in the details.
 VObject getSelectedObject()
          Returns the first selected object.
 VObject[] getSelectedObjects()
          Returns the selected objects.
 VSystemStatus getVSystemStatus()
          Returns the VSystemStatus contained in VSystemStatusPane.
 boolean isAllowModifyAllPools()
          Return true if the modify action to all system pools is allowed; false otherwise.
 void load()
          Loads system status information from the AS/400.
 void removeErrorListener(ErrorListener listener)
          Removes an error listener.
 void removeListSelectionListener(javax.swing.event.ListSelectionListener listener)
          Removes a list selection listener.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Removes a property change listener.
 void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
          Removes a vetoable change listener.
 void setAllowActions(boolean allowAction)
          Sets the value indicating whether actions are allowed.
 void setAllowModifyAllPools(boolean allow)
          Set the state of modify action of all the pools.
 void setConfirm(boolean confirm)
          Sets the value indicating whether certain actions are confirmed with the user.
 void setDetailsSelectionModel(javax.swing.ListSelectionModel listSe1)
          Sets the selection model that is used to maintain selection state in the details.
 void setRoot(VNode root)
          Sets the root, or the AS/400 resource, from which all information for the model is gathered.
 void sort(java.lang.Object[] propertyIdentifiers, boolean[] orders)
          Sorts the contents.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUIClassID, paramString, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VSystemStatusPane

public VSystemStatusPane(AS400 system)
Constructs a VSystemStatusPane object.
Parameters:
system - The AS/400 system in which the system status information resides.
Method Detail

addErrorListener

public void addErrorListener(ErrorListener listener)
Adds a listener to be notified when an error occurs.
Parameters:
listener - The listener.

addListSelectionListener

public void addListSelectionListener(javax.swing.event.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(java.beans.PropertyChangeListener listener)
Adds a listener to be notified when the value of any bound property changes.
Overrides:
addPropertyChangeListener in class javax.swing.JComponent
Parameters:
listener - The listener.

addVetoableChangeListener

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

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 javax.swing.table.TableColumnModel getDetailsColumnModel()
Returns the column model that is used to maintain the columns of the details.
Returns:
The column model.

getDetailsModel

public javax.swing.table.TableModel getDetailsModel()
Returns the details model.
Returns:
The details model.

getDetailsSelectionModel

public javax.swing.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.

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.

removeErrorListener

public void removeErrorListener(ErrorListener listener)
Removes an error listener.
Parameters:
listener - The listener.

removeListSelectionListener

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

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a property change listener.
Overrides:
removePropertyChangeListener in class javax.swing.JComponent
Parameters:
listener - The listener.

removeVetoableChangeListener

public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
Removes a vetoable change listener.
Overrides:
removeVetoableChangeListener in class javax.swing.JComponent
Parameters:
listener - The listener.

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(javax.swing.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.

setRoot

public void setRoot(VNode root)
             throws java.beans.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:
java.beans.PropertyVetoException - If the proposed change to root is unacceptable.

sort

public void sort(java.lang.Object[] propertyIdentifiers,
                 boolean[] orders)
Sorts the contents.
Parameters:
propertyIdentifiers - The property identifiers.
orders - The sort orders for each property identifier.