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:

See Also:
getActions, getDefaultAction, VActionAdapter

Method Index

 o addErrorListener(ErrorListener)
Adds a listener to be notified when an error occurs.
 o addVObjectListener(VObjectListener)
Adds a listener to be notified when a VObject is changed, created, or deleted.
 o addWorkingListener(WorkingListener)
Adds a listener to be notified when work starts and stops on potentially long-running operations.
 o getText()
Returns the text for the action.
 o isEnabled()
Indicates if the action is enabled.
 o perform(VActionContext)
Performs the action.
 o removeErrorListener(ErrorListener)
Removes an error listener.
 o removeVObjectListener(VObjectListener)
Removes a VObjectListener.
 o removeWorkingListener(WorkingListener)
Removes a working listener.
 o setEnabled(boolean)
Sets the enabled state of the action.

Methods

 o addErrorListener
 public abstract void addErrorListener(ErrorListener listener)
Adds a listener to be notified when an error occurs.

Parameters:
listener - The listener.
 o 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.
 o 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.
 o getText
 public abstract String getText()
Returns the text for the action.

Returns:
The text.
 o isEnabled
 public abstract boolean isEnabled()
Indicates if the action is enabled.

Returns:
true if the action is enabled; false otherwise.
 o perform
 public abstract void perform(VActionContext context)
Performs the action.

Parameters:
context - The action context.
 o removeErrorListener
 public abstract void removeErrorListener(ErrorListener listener)
Removes an error listener.

Parameters:
listener - The listener.
 o removeVObjectListener
 public abstract void removeVObjectListener(VObjectListener listener)
Removes a VObjectListener.

Parameters:
listener - The listener.
 o removeWorkingListener
 public abstract void removeWorkingListener(WorkingListener listener)
Removes a working listener.

Parameters:
listener - The listener.
 o 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