All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.as400.vaccess.VPropertiesAction

java.lang.Object
   |
   +----com.ibm.as400.vaccess.VPropertiesAction

public class VPropertiesAction
extends Object
implements VAction, Serializable
The VPropertiesAction class is an action that presents a properties pane for an AS/400 resource in a modeless dialog.

If a property dialog is already visible for the object, then it will be given focus.

Most errors are reported as ErrorEvents rather than throwing exceptions. Users should listen for ErrorEvents in order to diagnose and recover from error conditions.

VPropertiesAction objects generate the following events:

See Also:
VPropertiesPane

Constructor Index

 o VPropertiesAction()
Constructs a VPropertiesAction object.

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 getObject()
Returns the object with which the action is associated.
 o getText()
Returns the text for the properties 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.
 o setObject(VObject)
Sets the object with which the action is associated.
 o toString()
Returns the string representation of the properties action.

Constructors

 o VPropertiesAction
 public VPropertiesAction()
Constructs a VPropertiesAction object.

Methods

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

Parameters:
listener - The listener.
 o addVObjectListener
 public 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 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 getObject
 public VObject getObject()
Returns the object with which the action is associated.

Returns:
The object.
 o getText
 public String getText()
Returns the text for the properties action.

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

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

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

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

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

Parameters:
listener - The listener.
 o setEnabled
 public void setEnabled(boolean enabled)
Sets the enabled state of the action.

Parameters:
enabled - true if the action is enabled; false otherwise.
 o setObject
 public void setObject(VObject object)
Sets the object with which the action is associated.

Parameters:
object - The object.
 o toString
 public String toString()
Returns the string representation of the properties action.

Returns:
The string representation of the properties action.
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index