com.ibm.as400.vaccess
Interface VAction

All Known Implementing Classes:
VPropertiesAction

Deprecated. Use Java Swing instead, along with the classes in package com.ibm.as400.access

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:

See Also:
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

addErrorListener

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

Parameters:
listener - The listener.

addVObjectListener

void addVObjectListener(VObjectListener listener)
Deprecated. 
Adds a listener to be notified when a VObject is changed, created, or deleted.

Parameters:
listener - The listener.

addWorkingListener

void addWorkingListener(WorkingListener listener)
Deprecated. 
Adds a listener to be notified when work starts and stops on potentially long-running operations.

Parameters:
listener - The listener.

getText

String getText()
Deprecated. 
Returns the text for the action.

Returns:
The text.

isEnabled

boolean isEnabled()
Deprecated. 
Indicates if the action is enabled.

Returns:
true if the action is enabled; false otherwise.

perform

void perform(VActionContext context)
Deprecated. 
Performs the action.

Parameters:
context - The action context.

removeErrorListener

void removeErrorListener(ErrorListener listener)
Deprecated. 
Removes an error listener.

Parameters:
listener - The listener.

removeVObjectListener

void removeVObjectListener(VObjectListener listener)
Deprecated. 
Removes a VObjectListener.

Parameters:
listener - The listener.

removeWorkingListener

void removeWorkingListener(WorkingListener listener)
Deprecated. 
Removes a working listener.

Parameters:
listener - The listener.

setEnabled

void setEnabled(boolean enabled)
Deprecated. 
Sets the enabled state of the action.

Parameters:
enabled - true if the action is enabled; false otherwise.