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:
- ErrorEvent
- VObjectEvent
- WorkingEvent
- See Also:
- VPropertiesPane
-
VPropertiesAction()
- Constructs a VPropertiesAction object.
-
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.
-
getObject()
- Returns the object with which the action is associated.
-
getText()
- Returns the text for the properties 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.
-
setObject(VObject)
- Sets the object with which the action is associated.
-
toString()
- Returns the string representation of the properties action.
VPropertiesAction
public VPropertiesAction()
- Constructs a VPropertiesAction object.
addErrorListener
public void addErrorListener(ErrorListener listener)
- Adds a listener to be notified when an error occurs.
- Parameters:
- listener - The listener.
addVObjectListener
public void addVObjectListener(VObjectListener listener)
- Adds a listener to be notified when a VObject is changed,
created, or deleted.
- Parameters:
- listener - The listener.
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.
getObject
public VObject getObject()
- Returns the object with which the action is associated.
- Returns:
- The object.
getText
public String getText()
- Returns the text for the properties action.
- Returns:
- The text for the properties action.
isEnabled
public boolean isEnabled()
- Indicates if the action is enabled.
- Returns:
- true if the action is enabled; false otherwise.
perform
public void perform(VActionContext context)
- Performs the action.
- Parameters:
- context - The action context.
removeErrorListener
public void removeErrorListener(ErrorListener listener)
- Removes an error listener.
- Parameters:
- listener - The listener.
removeVObjectListener
public void removeVObjectListener(VObjectListener listener)
- Removes a VObjectListener.
- Parameters:
- listener - The listener.
removeWorkingListener
public void removeWorkingListener(WorkingListener listener)
- Removes a working listener.
- Parameters:
- listener - The listener.
setEnabled
public void setEnabled(boolean enabled)
- Sets the enabled state of the action.
- Parameters:
- enabled - true if the action is enabled; false otherwise.
setObject
public void setObject(VObject object)
- Sets the object with which the action is associated.
- Parameters:
- object - The object.
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