|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.ibm.as400.vaccess.AS400DetailsPane
public class AS400DetailsPane
The AS400DetailsPane class represents a graphical user interface that displays the details regarding the contents of a system resource, known as the root. You must explicitly call load() to load the information from the system.
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 FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
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 | |
---|---|
AS400DetailsPane()
Deprecated. Constructs an AS400DetailsPane object. |
|
AS400DetailsPane(VNode root)
Deprecated. Constructs an AS400DetailsPane object. |
Method Summary | |
---|---|
void |
addErrorListener(ErrorListener listener)
Deprecated. Adds a listener to be notified when an error occurs. |
void |
addListSelectionListener(ListSelectionListener listener)
Deprecated. Adds a listener to be notified when a list selection occurs. |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Deprecated. Adds a listener to be notified when the value of any bound property changes. |
void |
addVetoableChangeListener(VetoableChangeListener listener)
Deprecated. Adds a listener to be notified when the value of any constrained property changes. |
VActionContext |
getActionContext()
Deprecated. Returns the context in which actions will be performed. |
boolean |
getAllowActions()
Deprecated. Indicates if actions can be invoked on objects. |
TableColumnModel |
getColumnModel()
Deprecated. Returns the column model that is used to maintain the columns. |
boolean |
getConfirm()
Deprecated. Indicates if certain actions are confirmed with the user. |
TableModel |
getModel()
Deprecated. Returns the model that contains data for the table. |
VNode |
getRoot()
Deprecated. Returns the root, or the system resource, from which all information for the model is gathered. |
boolean |
getRowSelectionAllowed()
Deprecated. Returns the indicator for whether the rows can be selected. |
VObject |
getSelectedObject()
Deprecated. Returns the first selected object. |
VObject[] |
getSelectedObjects()
Deprecated. Returns the objects which are represented by the selected rows. |
ListSelectionModel |
getSelectionModel()
Deprecated. Returns the selection model that is used to maintain row selection state. |
boolean |
isSelected(VObject object)
Deprecated. Indicates if the object is selected. |
void |
load()
Deprecated. Loads the information from the system. |
void |
removeErrorListener(ErrorListener listener)
Deprecated. Removes an error listener. |
void |
removeListSelectionListener(ListSelectionListener listener)
Deprecated. Removes a list selection listener. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Deprecated. Removes a property change listener. |
void |
removeVetoableChangeListener(VetoableChangeListener listener)
Deprecated. Removes a vetoable change listener. |
void |
setAllowActions(boolean allowActions)
Deprecated. Sets whether actions are allowed. |
void |
setConfirm(boolean confirm)
Deprecated. Sets whether certain actions are confirmed with the user. |
void |
setRoot(VNode root)
Deprecated. Sets the root, or the system resource, from which all information for the model is gathered. |
void |
setRowSelectionAllowed(boolean selectable)
Deprecated. Sets the indicator for whether the rows can be selected. |
void |
setSelectionModel(ListSelectionModel selectionModel)
Deprecated. Sets the selection model that is used to maintain selection state. |
void |
sort(Object[] propertyIdentifiers,
boolean[] orders)
Deprecated. Sorts the contents.The propertyIdentifer[0], orders[0] combination is used to do the sort. |
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 system resource, from which all information for the model is gathered.Method Detail |
---|
public void addErrorListener(ErrorListener listener)
listener
- The listener.public void addListSelectionListener(ListSelectionListener listener)
listener
- The listener.public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in class Container
listener
- The listener.public void addVetoableChangeListener(VetoableChangeListener listener)
addVetoableChangeListener
in class JComponent
listener
- The listener.public VActionContext getActionContext()
public boolean getAllowActions()
public TableColumnModel getColumnModel()
public boolean getConfirm()
public TableModel getModel()
public VNode getRoot()
public boolean getRowSelectionAllowed()
public VObject getSelectedObject()
public VObject[] getSelectedObjects()
public ListSelectionModel getSelectionModel()
public boolean isSelected(VObject object)
object
- The object.
public void load()
public void removeErrorListener(ErrorListener listener)
listener
- The listener.public void removeListSelectionListener(ListSelectionListener listener)
listener
- The listener.public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in class Component
listener
- The listener.public void removeVetoableChangeListener(VetoableChangeListener listener)
removeVetoableChangeListener
in class JComponent
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 PropertyVetoException
root
- The root, or the system resource, from which all information for the model is gathered.
PropertyVetoException
- If the change is vetoed.public void setRowSelectionAllowed(boolean selectable)
selectable
- The value indicating if the rows can be selected.public void setSelectionModel(ListSelectionModel selectionModel)
selectionModel
- The selection model.public void sort(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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |