All Packages Class Hierarchy This Package Previous Next Index
Interface com.ibm.as400.vaccess.VAction
- public interface VAction
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:
- ErrorEvent
- VObjectEvent
- WorkingEvent
- See Also:
- getActions, getDefaultAction, VActionAdapter
-
addErrorListener(ErrorListener)
- Adds a listener to be notified when an error occurs.
-
addVObjectListener(VObjectListener)
- Adds a listener to be notified when a VObject is changed,
created, or deleted.
-
addWorkingListener(WorkingListener)
- Adds a listener to be notified when work starts and stops
on potentially long-running operations.
-
getText()
- Returns the text for the action.
-
isEnabled()
- Indicates if the action is enabled.
-
perform(VActionContext)
- Performs the action.
-
removeErrorListener(ErrorListener)
- Removes an error listener.
-
removeVObjectListener(VObjectListener)
- Removes a VObjectListener.
-
removeWorkingListener(WorkingListener)
- Removes a working listener.
-
setEnabled(boolean)
- Sets the enabled state of the action.
addErrorListener
public abstract void addErrorListener(ErrorListener listener)
- Adds a listener to be notified when an error occurs.
- Parameters:
- listener - The listener.
addVObjectListener
public abstract void addVObjectListener(VObjectListener listener)
- Adds a listener to be notified when a VObject is changed,
created, or deleted.
- Parameters:
- listener - The listener.
addWorkingListener
public abstract void addWorkingListener(WorkingListener listener)
- Adds a listener to be notified when work starts and stops
on potentially long-running operations.
- Parameters:
- listener - The listener.
getText
public abstract String getText()
- Returns the text for the action.
- Returns:
- The text.
isEnabled
public abstract boolean isEnabled()
- Indicates if the action is enabled.
- Returns:
- true if the action is enabled; false otherwise.
perform
public abstract void perform(VActionContext context)
- Performs the action.
- Parameters:
- context - The action context.
removeErrorListener
public abstract void removeErrorListener(ErrorListener listener)
- Removes an error listener.
- Parameters:
- listener - The listener.
removeVObjectListener
public abstract void removeVObjectListener(VObjectListener listener)
- Removes a VObjectListener.
- Parameters:
- listener - The listener.
removeWorkingListener
public abstract void removeWorkingListener(WorkingListener listener)
- Removes a working listener.
- Parameters:
- listener - The listener.
setEnabled
public abstract void setEnabled(boolean enabled)
- Sets the enabled state of the action.
- Parameters:
- enabled - true if the action is enabled; false otherwise.
All Packages Class Hierarchy This Package Previous Next Index