public interface VAction
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:
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.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.
|
void addErrorListener(ErrorListener listener)
listener
- The listener.void addVObjectListener(VObjectListener listener)
listener
- The listener.void addWorkingListener(WorkingListener listener)
listener
- The listener.java.lang.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.