|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.as400.vaccess.VPropertiesAction
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:
VPropertiesPane
, Serialized FormConstructor Summary | |
VPropertiesAction()
Constructs a VPropertiesAction object. |
Method Summary | |
void |
addErrorListener(ErrorListener listener)
Adds a listener to be notified when an error occurs. |
void |
addVObjectListener(VObjectListener listener)
Adds a listener to be notified when a VObject is changed, created, or deleted. |
void |
addWorkingListener(WorkingListener listener)
Adds a listener to be notified when work starts and stops on potentially long-running operations. |
VObject |
getObject()
Returns the object with which the action is associated. |
java.lang.String |
getText()
Returns the text for the properties action. |
boolean |
isEnabled()
Indicates if the action is enabled. |
void |
perform(VActionContext context)
Performs the action. |
void |
removeErrorListener(ErrorListener listener)
Removes an error listener. |
void |
removeVObjectListener(VObjectListener listener)
Removes a VObjectListener. |
void |
removeWorkingListener(WorkingListener listener)
Removes a working listener. |
void |
setEnabled(boolean enabled)
Sets the enabled state of the action. |
void |
setObject(VObject object)
Sets the object with which the action is associated. |
java.lang.String |
toString()
Returns the string representation of the properties action. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public VPropertiesAction()
Method Detail |
public void addErrorListener(ErrorListener listener)
listener
- The listener.public void addVObjectListener(VObjectListener listener)
listener
- The listener.public void addWorkingListener(WorkingListener listener)
listener
- The listener.public VObject getObject()
public java.lang.String getText()
public boolean isEnabled()
public void perform(VActionContext context)
context
- The action context.public void removeErrorListener(ErrorListener listener)
listener
- The listener.public void removeVObjectListener(VObjectListener listener)
listener
- The listener.public void removeWorkingListener(WorkingListener listener)
listener
- The listener.public void setEnabled(boolean enabled)
enabled
- true if the action is enabled; false otherwise.public void setObject(VObject object)
object
- The object.public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |