|
|||||||||||
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
javax.swing.AbstractButton
javax.swing.JButton
com.ibm.as400.vaccess.CommandCallButton
The CommandCallButton class represents a button that calls a CL command when pressed. Results of the command are returned in a message list.
CommandCallButton objects generate the following events:
CommandCall
,
AS400Message
,
Serialized FormNested Class Summary |
---|
Nested classes inherited from class javax.swing.JButton |
---|
JButton.AccessibleJButton |
Nested classes inherited from class javax.swing.AbstractButton |
---|
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
Nested classes inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes 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 javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
CommandCallButton()
Deprecated. Constructs a CommandCallButton object. |
|
CommandCallButton(String text)
Deprecated. Constructs a CommandCallButton object. |
|
CommandCallButton(String text,
Icon icon)
Deprecated. Constructs a CommandCallButton object. |
|
CommandCallButton(String text,
Icon icon,
AS400 system)
Deprecated. Constructs a CommandCallButton object. |
|
CommandCallButton(String text,
Icon icon,
AS400 system,
String command)
Deprecated. Constructs a CommandCallButton object. |
Method Summary | |
---|---|
void |
addActionCompletedListener(ActionCompletedListener listener)
Deprecated. Adds a listener to be notified when a command has been run on the system. |
void |
addErrorListener(ErrorListener listener)
Deprecated. Adds a listener to be notified when an error 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. |
String |
getCommand()
Deprecated. Returns the command that is run when the button is pressed. |
AS400Message[] |
getMessageList()
Deprecated. Returns the message list resulting from the last command that was run. |
String |
getMessageText()
Deprecated. Returns the text from the first message resulting from the last command that was run. |
AS400 |
getSystem()
Deprecated. Returns the system on which commands are run. |
void |
removeActionCompletedListener(ActionCompletedListener listener)
Deprecated. Removes an action completed listener. |
void |
removeErrorListener(ErrorListener listener)
Deprecated. Removes an error listener. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Deprecated. Removes a property change listener. |
void |
removeVetoableChangeListener(VetoableChangeListener listener)
Deprecated. Removes a vetoable change listener. |
void |
setCommand(String command)
Deprecated. Sets the command that is run when the button is pressed. |
void |
setSystem(AS400 system)
Deprecated. Sets the system on which commands are run. |
Methods inherited from class javax.swing.JButton |
---|
configurePropertiesFromAction, getAccessibleContext, getUIClassID, isDefaultButton, isDefaultCapable, paramString, removeNotify, setDefaultCapable, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CommandCallButton()
public CommandCallButton(String text)
text
- The button text, or null if there is no text.public CommandCallButton(String text, Icon icon)
text
- The button text, or null if there is no text.icon
- The button icon, or null if there is no icon.public CommandCallButton(String text, Icon icon, AS400 system)
text
- The button text, or null if there is no text.icon
- The button icon, or null if there is no icon.system
- The system on which commands are run.public CommandCallButton(String text, Icon icon, AS400 system, String command)
text
- The button text, or null if there is no text.icon
- The button icon, or null if there is no icon.system
- The system on which commands are run.command
- The command.Method Detail |
public void addActionCompletedListener(ActionCompletedListener listener)
listener
- The listener.public void addErrorListener(ErrorListener listener)
listener
- The listener.public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- The listener.public void addVetoableChangeListener(VetoableChangeListener listener)
listener
- The listener.public String getCommand()
public AS400Message[] getMessageList()
public String getMessageText()
public AS400 getSystem()
public void removeActionCompletedListener(ActionCompletedListener listener)
listener
- The listener.public void removeErrorListener(ErrorListener listener)
listener
- The listener.public void removePropertyChangeListener(PropertyChangeListener listener)
listener
- The listener.public void removeVetoableChangeListener(VetoableChangeListener listener)
listener
- The listener.public void setCommand(String command) throws PropertyVetoException
command
- The command that is run when the button is pressed.
PropertyVetoException
- If the change is vetoed.public void setSystem(AS400 system) throws PropertyVetoException
system
- The system on which commands are run.
PropertyVetoException
- If the change is vetoed.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |