|
|||||||||
| 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.ProgramCallButton
public class ProgramCallButton extends JButton implements Serializable
The ProgramCallButton class represents a button that calls a program when pressed. Results of the program are returned in a message list.
ProgramCallButton objects generate the following events:
ProgramCall,
AS400Message,
Serialized Form| Modifier and Type | Class and Description |
|---|
| Nested classes/interfaces inherited from class javax.swing.JButton |
|---|
JButton.AccessibleJButton |
| 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 |
|---|
ProgramCallButton()
Deprecated. Constructs a ProgramCallButton object. |
ProgramCallButton(String text)
Deprecated. Constructs a ProgramCallButton object. |
ProgramCallButton(String text,
Icon icon)
Deprecated. Constructs a ProgramCallButton object. |
ProgramCallButton(String text,
Icon icon,
AS400 system)
Deprecated. Constructs a ProgramCallButton object. |
ProgramCallButton(String text,
Icon icon,
AS400 system,
String program,
ProgramParameter[] parmlist)
Deprecated. Constructs a ProgramCallButton object. |
| Modifier and Type | Method and Description |
|---|---|
void |
addActionCompletedListener(ActionCompletedListener listener)
Deprecated. Adds a listener to be notified when a program has been called. |
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 end of 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 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 |
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 javax.swing.JButton |
|---|
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 ProgramCallButton()
public ProgramCallButton(String text)
text - The button text, or null if there is no text.
public ProgramCallButton(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 ProgramCallButton(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 the programs are run.
public ProgramCallButton(String text,
Icon icon,
AS400 system,
String program,
ProgramParameter[] parmlist)
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 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 Containerlistener - The listener.public void addVetoableChangeListener(VetoableChangeListener listener)
addVetoableChangeListener in class JComponentlistener - 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 Componentlistener - The listener.public void removeVetoableChangeListener(VetoableChangeListener listener)
removeVetoableChangeListener in class JComponentlistener - 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 veoted.
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 | ||||||||