|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.AbstractButton javax.swing.JMenuItem com.ibm.as400.vaccess.ProgramCallMenuItem
public class ProgramCallMenuItem extends JMenuItem implements Serializable
The ProgramCallMenuItem class represents a menu item that calls a program when pressed. The results of the program are returned in a message list.
ProgramCallMenuItem objects generate the following events:
ProgramCall
,
AS400Message
,
Serialized FormModifier 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 |
---|
ProgramCallMenuItem()
Deprecated. Constructs a ProgramCallMenuItem object. |
ProgramCallMenuItem(String text)
Deprecated. Constructs a ProgramCallMenuItem object. |
ProgramCallMenuItem(String text,
Icon icon)
Deprecated. Constructs a ProgramCallMenuItem object. |
ProgramCallMenuItem(String text,
Icon icon,
AS400 system)
Deprecated. Constructs a ProgramCallMenuItem object. |
ProgramCallMenuItem(String text,
Icon icon,
AS400 system,
String program,
ProgramParameter[] parmlist)
Deprecated. Constructs a ProgramCallMenuItem object. |
Modifier and Type | Method and Description |
---|---|
void |
addActionCompletedListener(ActionCompletedListener listener)
Deprecated. Adds a listener to be notified when an action is completed. |
void |
addErrorListener(ErrorListener listener)
Deprecated. Adds a listener to be notified when an error occurs. |
void |
addParameter(ProgramParameter parameter)
Deprecated. Adds a parameter to the parameter list. |
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. |
AS400Message[] |
getMessageList()
Deprecated. Returns the message list resulting from the last program call that was run. |
String |
getMessageText()
Deprecated. Returns the message text from the last program that was run. |
ProgramParameter[] |
getParameterList()
Deprecated. Returns the parameter list. |
String |
getProgram()
Deprecated. Returns the program which will be called when the button is pressed. |
AS400 |
getSystem()
Deprecated. Returns the system on which programs 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 |
setParameterList(ProgramParameter[] parmlist)
Deprecated. Sets the list of parameters to pass to the program. |
void |
setProgram(String program)
Deprecated. Sets the program. |
void |
setSystem(AS400 system)
Deprecated. Sets the system on which programs are run. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProgramCallMenuItem()
public ProgramCallMenuItem(String text)
text
- The menu item text, or null if there is no text.public ProgramCallMenuItem(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 ProgramCallMenuItem(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 the programs are run.public ProgramCallMenuItem(String text, Icon icon, AS400 system, String program, ProgramParameter[] parmlist)
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 the programs are run.program
- The program name as a fully qualified path name
in the library file system.
The library and program name must each be
10 characters or less.parmlist
- A list of up to 35 parameters with which to run the program.Method Detail |
---|
public void addActionCompletedListener(ActionCompletedListener listener)
listener
- The listener.public void addErrorListener(ErrorListener listener)
listener
- The listener.public void addParameter(ProgramParameter parameter) throws PropertyVetoException
parameter
- The parameter.PropertyVetoException
- If the change is vetoed.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 AS400Message[] getMessageList()
public String getMessageText()
public ProgramParameter[] getParameterList()
public String getProgram()
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 Component
listener
- The listener.public void removeVetoableChangeListener(VetoableChangeListener listener)
removeVetoableChangeListener
in class JComponent
listener
- The listener.public void setParameterList(ProgramParameter[] parmlist) throws PropertyVetoException
parmlist
- A list of up to 35 parameters with which to run the program.
It will replace any parameters previously set.PropertyVetoException
- If the change is vetoed.public void setProgram(String program) throws PropertyVetoException
program
- The program.PropertyVetoException
- If the change is vetoed.public void setSystem(AS400 system) throws PropertyVetoException
system
- The system on which programs are run.PropertyVetoException
- If the change is vetoed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |