|
|||||||||
| 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.JMenuItem
com.ibm.as400.vaccess.CommandCallMenuItem
public class CommandCallMenuItem extends JMenuItem implements Serializable
The CommandCallMenuItem class represents a menu item that calls a CL command when selected. Results of the command are returned in a message list.
CommandCallMenuItem objects generate the following events:
CommandCall,
AS400Message,
Serialized Form| Modifier and Type | Class and Description |
|---|
| Nested classes/interfaces inherited from class javax.swing.JMenuItem |
|---|
JMenuItem.AccessibleJMenuItem |
| Nested classes/interfaces inherited from class javax.swing.AbstractButton |
|---|
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
| 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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Modifier and Type | Field and Description |
|---|
| 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 and Description |
|---|
CommandCallMenuItem()
Deprecated. Constructs a CommandCallMenuItem object. |
CommandCallMenuItem(String text)
Deprecated. Constructs a CommandCallMenuItem object. |
CommandCallMenuItem(String text,
Icon icon)
Deprecated. Constructs a CommandCallMenuItem object. |
CommandCallMenuItem(String text,
Icon icon,
AS400 system)
Deprecated. Constructs a CommandCallMenuItem object. |
CommandCallMenuItem(String text,
Icon icon,
AS400 system,
String command)
Deprecated. Constructs a CommandCallMenuItem object. |
| Modifier and Type | Method and Description |
|---|---|
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. |
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 a 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CommandCallMenuItem()
public CommandCallMenuItem(String text)
text - The menu item text, or null if there is no text.
public CommandCallMenuItem(String text,
Icon icon)
text - The menu item text, or null if there is no text.icon - The menu item icon, or null if there is no icon.
public CommandCallMenuItem(String text,
Icon icon,
AS400 system)
text - The menu item text, or null if there is no text.icon - The menu item icon, or null if there is no icon.system - The system on which commands are run.
public CommandCallMenuItem(String text,
Icon icon,
AS400 system,
String command)
text - The menu item text, or null if there is no text.icon - The menu item 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)
addPropertyChangeListener in class Containerlistener - The listener.public void addVetoableChangeListener(VetoableChangeListener listener)
addVetoableChangeListener in class JComponentlistener - 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)
removePropertyChangeListener in class Componentlistener - The listener.public void removeVetoableChangeListener(VetoableChangeListener listener)
removeVetoableChangeListener in class JComponentlistener - 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 | ||||||||