|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VAction
The VAction interface defines an action to be performed on a system 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)
Deprecated. Adds a listener to be notified when an error occurs. |
void |
addVObjectListener(VObjectListener listener)
Deprecated. Adds a listener to be notified when a VObject is changed, created, or deleted. |
void |
addWorkingListener(WorkingListener listener)
Deprecated. Adds a listener to be notified when work starts and stops on potentially long-running operations. |
String |
getText()
Deprecated. Returns the text for the action. |
boolean |
isEnabled()
Deprecated. Indicates if the action is enabled. |
void |
perform(VActionContext context)
Deprecated. Performs the action. |
void |
removeErrorListener(ErrorListener listener)
Deprecated. Removes an error listener. |
void |
removeVObjectListener(VObjectListener listener)
Deprecated. Removes a VObjectListener. |
void |
removeWorkingListener(WorkingListener listener)
Deprecated. Removes a working listener. |
void |
setEnabled(boolean enabled)
Deprecated. Sets the enabled state of the action. |
Method Detail |
---|
void addErrorListener(ErrorListener listener)
listener
- The listener.void addVObjectListener(VObjectListener listener)
listener
- The listener.void addWorkingListener(WorkingListener listener)
listener
- The listener.String getText()
boolean isEnabled()
void perform(VActionContext context)
context
- The action context.void removeErrorListener(ErrorListener listener)
listener
- The listener.void removeVObjectListener(VObjectListener listener)
listener
- The listener.void removeWorkingListener(WorkingListener listener)
listener
- The listener.void setEnabled(boolean enabled)
enabled
- true if the action is enabled; false otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |