|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.AbstractButton | +--javax.swing.JButton | +--com.ibm.as400.vaccess.ProgramCallButton
The ProgramCallButton class represents a button that calls an AS/400 program when pressed. Results of the program are returned in a message list.
ProgramCallButton objects generate the following events:
ProgramCall
,
AS400Message
, Serialized FormInner classes inherited from class javax.swing.JButton |
javax.swing.JButton.AccessibleJButton |
Inner classes inherited from class javax.swing.AbstractButton |
javax.swing.AbstractButton.AccessibleAbstractButton,
javax.swing.AbstractButton.ButtonChangeListener |
Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Fields inherited from class javax.swing.AbstractButton |
actionListener,
BORDER_PAINTED_CHANGED_PROPERTY,
changeEvent,
changeListener,
CONTENT_AREA_FILLED_CHANGED_PROPERTY,
DISABLED_ICON_CHANGED_PROPERTY,
DISABLED_SELECTED_ICON_CHANGED_PROPERTY,
FOCUS_PAINTED_CHANGED_PROPERTY,
HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY,
HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY,
ICON_CHANGED_PROPERTY,
itemListener,
MARGIN_CHANGED_PROPERTY,
MNEMONIC_CHANGED_PROPERTY,
model,
MODEL_CHANGED_PROPERTY,
PRESSED_ICON_CHANGED_PROPERTY,
ROLLOVER_ENABLED_CHANGED_PROPERTY,
ROLLOVER_ICON_CHANGED_PROPERTY,
ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY,
SELECTED_ICON_CHANGED_PROPERTY,
TEXT_CHANGED_PROPERTY,
VERTICAL_ALIGNMENT_CHANGED_PROPERTY,
VERTICAL_TEXT_POSITION_CHANGED_PROPERTY |
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 |
Constructor Summary | |
ProgramCallButton()
Constructs a ProgramCallButton object. |
|
ProgramCallButton(java.lang.String text)
Constructs a ProgramCallButton object. |
|
ProgramCallButton(java.lang.String text,
javax.swing.Icon icon)
Constructs a ProgramCallButton object. |
|
ProgramCallButton(java.lang.String text,
javax.swing.Icon icon,
AS400 system)
Constructs a ProgramCallButton object. |
|
ProgramCallButton(java.lang.String text,
javax.swing.Icon icon,
AS400 system,
java.lang.String program,
ProgramParameter[] parmlist)
Constructs a ProgramCallButton object. |
Method Summary | |
void |
addActionCompletedListener(ActionCompletedListener listener)
Adds a listener to be notified when a program has been called. |
void |
addErrorListener(ErrorListener listener)
Adds a listener to be notified when an error occurs. |
void |
addParameter(ProgramParameter parameter)
Adds a parameter to the end of the parameter list. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a listener to be notified when the value of any bound property changes. |
void |
addVetoableChangeListener(java.beans.VetoableChangeListener listener)
Adds a listener to be notified when the value of any constrained property changes. |
AS400Message[] |
getMessageList()
Returns the message list resulting from the last program call that was run. |
java.lang.String |
getMessageText()
Returns the message text from the last program that was run. |
ProgramParameter[] |
getParameterList()
Returns the parameter list. |
java.lang.String |
getProgram()
Returns the program which will be called when the button is pressed. |
AS400 |
getSystem()
Returns the AS/400 on which programs are run. |
void |
removeActionCompletedListener(ActionCompletedListener listener)
Removes an action completed listener. |
void |
removeErrorListener(ErrorListener listener)
Removes an error listener. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a property change listener. |
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
Removes a vetoable change listener. |
void |
setParameterList(ProgramParameter[] parmlist)
Sets the list of parameters to pass to the AS/400 program. |
void |
setProgram(java.lang.String program)
Sets the program. |
void |
setSystem(AS400 system)
Sets the AS/400 on which programs are run. |
Methods inherited from class javax.swing.JButton |
getAccessibleContext,
getUIClassID,
isDefaultButton,
isDefaultCapable,
paramString,
setDefaultCapable,
updateUI |
Methods inherited from class javax.swing.AbstractButton |
addActionListener,
addChangeListener,
addItemListener,
checkHorizontalKey,
checkVerticalKey,
createActionListener,
createChangeListener,
createItemListener,
doClick,
doClick,
fireActionPerformed,
fireItemStateChanged,
fireStateChanged,
getActionCommand,
getDisabledIcon,
getDisabledSelectedIcon,
getHorizontalAlignment,
getHorizontalTextPosition,
getIcon,
getLabel,
getMargin,
getMnemonic,
getModel,
getPressedIcon,
getRolloverIcon,
getRolloverSelectedIcon,
getSelectedIcon,
getSelectedObjects,
getText,
getUI,
getVerticalAlignment,
getVerticalTextPosition,
init,
isBorderPainted,
isContentAreaFilled,
isFocusPainted,
isRolloverEnabled,
isSelected,
paintBorder,
removeActionListener,
removeChangeListener,
removeItemListener,
setActionCommand,
setBorderPainted,
setContentAreaFilled,
setDisabledIcon,
setDisabledSelectedIcon,
setEnabled,
setFocusPainted,
setHorizontalAlignment,
setHorizontalTextPosition,
setIcon,
setLabel,
setMargin,
setMnemonic,
setMnemonic,
setModel,
setPressedIcon,
setRolloverEnabled,
setRolloverIcon,
setRolloverSelectedIcon,
setSelected,
setSelectedIcon,
setText,
setUI,
setVerticalAlignment,
setVerticalTextPosition |
Methods inherited from class javax.swing.JComponent |
addAncestorListener,
addNotify,
addPropertyChangeListener,
computeVisibleRect,
contains,
createToolTip,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
firePropertyChange,
fireVetoableChange,
getActionForKeyStroke,
getAlignmentX,
getAlignmentY,
getAutoscrolls,
getBorder,
getBounds,
getClientProperty,
getComponentGraphics,
getConditionForKeyStroke,
getDebugGraphicsOptions,
getGraphics,
getHeight,
getInsets,
getInsets,
getLocation,
getMaximumSize,
getMinimumSize,
getNextFocusableComponent,
getPreferredSize,
getRegisteredKeyStrokes,
getRootPane,
getSize,
getToolTipLocation,
getToolTipText,
getToolTipText,
getTopLevelAncestor,
getVisibleRect,
getWidth,
getX,
getY,
grabFocus,
hasFocus,
isDoubleBuffered,
isFocusCycleRoot,
isFocusTraversable,
isLightweightComponent,
isManagingFocus,
isOpaque,
isOptimizedDrawingEnabled,
isPaintingTile,
isRequestFocusEnabled,
isValidateRoot,
paint,
paintChildren,
paintComponent,
paintImmediately,
paintImmediately,
processComponentKeyEvent,
processFocusEvent,
processKeyEvent,
processMouseMotionEvent,
putClientProperty,
registerKeyboardAction,
registerKeyboardAction,
removeAncestorListener,
removeNotify,
removePropertyChangeListener,
repaint,
repaint,
requestDefaultFocus,
requestFocus,
resetKeyboardActions,
reshape,
revalidate,
scrollRectToVisible,
setAlignmentX,
setAlignmentY,
setAutoscrolls,
setBackground,
setBorder,
setDebugGraphicsOptions,
setDoubleBuffered,
setFont,
setForeground,
setMaximumSize,
setMinimumSize,
setNextFocusableComponent,
setOpaque,
setPreferredSize,
setRequestFocusEnabled,
setToolTipText,
setUI,
setVisible,
unregisterKeyboardAction,
update |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getLayout,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paintComponents,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
setCursor,
setLayout,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
getBackground,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getToolkit,
getTreeLock,
gotFocus,
handleEvent,
hide,
imageUpdate,
inside,
isDisplayable,
isEnabled,
isLightweight,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processInputMethodEvent,
processMouseEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
repaint,
repaint,
repaint,
resize,
resize,
setBounds,
setBounds,
setComponentOrientation,
setDropTarget,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
show,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public ProgramCallButton()
public ProgramCallButton(java.lang.String text)
text
- The button text, or null if there is no text.public ProgramCallButton(java.lang.String text, javax.swing.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(java.lang.String text, javax.swing.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 AS/400 on which the programs are run.public ProgramCallButton(java.lang.String text, javax.swing.Icon icon, AS400 system, java.lang.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 AS/400 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 java.beans.PropertyVetoException
parameter
- The parameter.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The listener.public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener
- The listener.public AS400Message[] getMessageList()
public java.lang.String getMessageText()
public ProgramParameter[] getParameterList()
public java.lang.String getProgram()
public AS400 getSystem()
public void removeActionCompletedListener(ActionCompletedListener listener)
listener
- The listener.public void removeErrorListener(ErrorListener listener)
listener
- The listener.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The listener.public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener
- The listener.public void setParameterList(ProgramParameter[] parmlist) throws java.beans.PropertyVetoException
parmlist
- A list of up to 35 parameters with which to run the program.
It will replace any parameters previously set.public void setProgram(java.lang.String program) throws java.beans.PropertyVetoException
program
- The program.public void setSystem(AS400 system) throws java.beans.PropertyVetoException
system
- The AS/400 on which programs are run.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |