|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--com.ibm.as400.vaccess.AS400DetailsPane
The AS400DetailsPane class represents a graphical user interface that displays the details regarding the contents of an AS/400 resource, known as the root. 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.
AS400DetailsPane objects generate the following events:
The following example creates a details pane.
// Set up the details pane. AS400 system = new AS400 ("MySystem", "Userid", "Password"); VPrinterOutput printerOutput = new VPrinterOutput (system); AS400DetailsPane detailsPane = new AS400DetailsPane (printerOutput); detailsPane.load ();
// Add the details pane to a frame. JFrame frame = new JFrame ("My Window"); frame.getContentPane().add (detailsPane);
AS400DetailsModel
, Serialized FormInner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
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 |
Constructor Summary | |
AS400DetailsPane()
Constructs an AS400DetailsPane object. |
|
AS400DetailsPane(VNode root)
Constructs an AS400DetailsPane 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. |
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()
Indicates if actions can be invoked on objects. |
javax.swing.table.TableColumnModel |
getColumnModel()
Returns the column model that is used to maintain the columns. |
boolean |
getConfirm()
Indicates if certain actions are confirmed with the user. |
javax.swing.table.TableModel |
getModel()
Returns the model that contains data for the table. |
VNode |
getRoot()
Returns the root, or the AS/400 resource, from which all information for the model is gathered. |
boolean |
getRowSelectionAllowed()
Returns the indicator for whether the rows can be selected. |
VObject |
getSelectedObject()
Returns the first selected object. |
VObject[] |
getSelectedObjects()
Returns the objects which are represented by the selected rows. |
javax.swing.ListSelectionModel |
getSelectionModel()
Returns the selection model that is used to maintain row selection state. |
boolean |
isSelected(VObject object)
Indicates if the object is selected. |
void |
load()
Loads the 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 allowActions)
Sets whether actions are allowed. |
void |
setConfirm(boolean confirm)
Sets whether certain actions are confirmed with the user. |
void |
setRoot(VNode root)
Sets the root, or the AS/400 resource, from which all information for the model is gathered. |
void |
setRowSelectionAllowed(boolean selectable)
Sets the indicator for whether the rows can be selected. |
void |
setSelectionModel(javax.swing.ListSelectionModel selectionModel)
Sets the selection model that is used to maintain selection state. |
void |
sort(java.lang.Object[] propertyIdentifiers,
boolean[] orders)
Sorts the contents.The propertyIdentifer[0], orders[0] combination is used to do the sort. |
Methods inherited from class javax.swing.JComponent |
addAncestorListener,
addNotify,
addPropertyChangeListener,
computeVisibleRect,
contains,
createToolTip,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
fireVetoableChange,
getAccessibleContext,
getActionForKeyStroke,
getAlignmentX,
getAlignmentY,
getAutoscrolls,
getBorder,
getBounds,
getClientProperty,
getComponentGraphics,
getConditionForKeyStroke,
getDebugGraphicsOptions,
getGraphics,
getHeight,
getInsets,
getInsets,
getLocation,
getMaximumSize,
getMinimumSize,
getNextFocusableComponent,
getPreferredSize,
getRegisteredKeyStrokes,
getRootPane,
getSize,
getToolTipLocation,
getToolTipText,
getToolTipText,
getTopLevelAncestor,
getUIClassID,
getVisibleRect,
getWidth,
getX,
getY,
grabFocus,
hasFocus,
isDoubleBuffered,
isFocusCycleRoot,
isFocusTraversable,
isLightweightComponent,
isManagingFocus,
isOpaque,
isOptimizedDrawingEnabled,
isPaintingTile,
isRequestFocusEnabled,
isValidateRoot,
paint,
paintBorder,
paintChildren,
paintComponent,
paintImmediately,
paintImmediately,
paramString,
processComponentKeyEvent,
processFocusEvent,
processKeyEvent,
processMouseMotionEvent,
putClientProperty,
registerKeyboardAction,
registerKeyboardAction,
removeAncestorListener,
removeNotify,
removePropertyChangeListener,
repaint,
repaint,
requestDefaultFocus,
requestFocus,
resetKeyboardActions,
reshape,
revalidate,
scrollRectToVisible,
setAlignmentX,
setAlignmentY,
setAutoscrolls,
setBackground,
setBorder,
setDebugGraphicsOptions,
setDoubleBuffered,
setEnabled,
setFont,
setForeground,
setMaximumSize,
setMinimumSize,
setNextFocusableComponent,
setOpaque,
setPreferredSize,
setRequestFocusEnabled,
setToolTipText,
setUI,
setVisible,
unregisterKeyboardAction,
update,
updateUI |
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,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setCursor,
setLayout,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
getBackground,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getToolkit,
getTreeLock,
gotFocus,
handleEvent,
hide,
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,
printAll,
processComponentEvent,
processInputMethodEvent,
processMouseEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
repaint,
repaint,
repaint,
resize,
resize,
setBounds,
setBounds,
setComponentOrientation,
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 |
public AS400DetailsPane()
public AS400DetailsPane(VNode root)
root
- The root, or the AS/400 resource, from which all information for the model is gathered.Method Detail |
public void addErrorListener(ErrorListener listener)
listener
- The listener.public void addListSelectionListener(javax.swing.event.ListSelectionListener listener)
listener
- The listener.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The listener.public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener
- The listener.public VActionContext getActionContext()
public boolean getAllowActions()
public javax.swing.table.TableColumnModel getColumnModel()
public boolean getConfirm()
public javax.swing.table.TableModel getModel()
public VNode getRoot()
public boolean getRowSelectionAllowed()
public VObject getSelectedObject()
public VObject[] getSelectedObjects()
public javax.swing.ListSelectionModel getSelectionModel()
public boolean isSelected(VObject object)
object
- The object.public void load()
public void removeErrorListener(ErrorListener listener)
listener
- The listener.public void removeListSelectionListener(javax.swing.event.ListSelectionListener listener)
listener
- The listener.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The listener.public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener
- The listener.public void setAllowActions(boolean allowActions)
The default is true.
allowActions
- true if actions are allowed; false otherwise.public void setConfirm(boolean confirm)
confirm
- true if certain actions are confirmed with the
user; false otherwise.public void setRoot(VNode root) throws java.beans.PropertyVetoException
root
- The root, or the AS/400 resource, from which all information for the model is gathered.public void setRowSelectionAllowed(boolean selectable)
selectable
- The value indicating if the rows can be selected.public void setSelectionModel(javax.swing.ListSelectionModel selectionModel)
selectionModel
- The selection model.public void sort(java.lang.Object[] propertyIdentifiers, boolean[] orders)
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |