All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.ibm.as400.vaccess.VPropertiesPane

public interface VPropertiesPane
The VPropertiesPane interface defines the representation of a properties pane. A properties pane is a graphical user interface that allows the user to view and optionally edit properties of an AS/400 resource.

When the user makes a change using the editor, the properties pane fires a change event. This signals to the dialog that a change was made so that it can enable the Apply button. The change to the underlying AS/400 resource is not made at this time. This way the user can still choose to cancel the changes.

When the user clicks the OK or Apply button, then applyChanges() is called. The change to the underlying AS/400 resource is made at this time.

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

VPropertiesPane objects generate the following events:

See Also:
getPropertiesPane, VPropertiesAction

Method Index

 o addChangeListener(ChangeListener)
Adds a listener to be notified when the user makes a change.
 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 applyChanges()
Applies the changes made by the user.
 o getComponent()
Returns the graphical user interface component.
 o removeChangeListener(ChangeListener)
Removes a change listener.
 o removeErrorListener(ErrorListener)
Removes an error listener.
 o removeVObjectListener(VObjectListener)
Removes a VObjectListener.
 o removeWorkingListener(WorkingListener)
Removes a working listener.

Methods

 o addChangeListener
 public abstract void addChangeListener(ChangeListener listener)
Adds a listener to be notified when the user makes a change.

Parameters:
listener - The listener.
 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 applyChanges
 public abstract void applyChanges() throws Exception
Applies the changes made by the user. It will change the resources on the AS/400.

Throws: Exception
If an error occurs.
 o getComponent
 public abstract Component getComponent()
Returns the graphical user interface component. This does not include the dialog or the OK, Cancel, and Apply buttons.

Returns:
The graphical user interface component.
 o removeChangeListener
 public abstract void removeChangeListener(ChangeListener listener)
Removes a change listener.

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index