|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The VAction interface defines an action to be performed on an AS/400 resource.
Most errors are reported as ErrorEvents rather than throwing exceptions. Users should listen for ErrorEvents in order to diagnose and recover from error conditions.
VAction objects generate the following events:
VObject.getActions()
,
VObject.getDefaultAction()
,
VActionAdapter
Method Summary | |
void |
addErrorListener(ErrorListener listener)
Adds a listener to be notified when an error occurs. |
void |
addVObjectListener(VObjectListener listener)
Adds a listener to be notified when a VObject is changed, created, or deleted. |
void |
addWorkingListener(WorkingListener listener)
Adds a listener to be notified when work starts and stops on potentially long-running operations. |
java.lang.String |
getText()
Returns the text for the action. |
boolean |
isEnabled()
Indicates if the action is enabled. |
void |
perform(VActionContext context)
Performs the action. |
void |
removeErrorListener(ErrorListener listener)
Removes an error listener. |
void |
removeVObjectListener(VObjectListener listener)
Removes a VObjectListener. |
void |
removeWorkingListener(WorkingListener listener)
Removes a working listener. |
void |
setEnabled(boolean enabled)
Sets the enabled state of the action. |
Method Detail |
public void addErrorListener(ErrorListener listener)
listener
- The listener.public void addVObjectListener(VObjectListener listener)
listener
- The listener.public void addWorkingListener(WorkingListener listener)
listener
- The listener.public java.lang.String getText()
public boolean isEnabled()
public void perform(VActionContext context)
context
- The action context.public void removeErrorListener(ErrorListener listener)
listener
- The listener.public void removeVObjectListener(VObjectListener listener)
listener
- The listener.public void removeWorkingListener(WorkingListener listener)
listener
- The listener.public void setEnabled(boolean enabled)
enabled
- true if the action is enabled; false otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |