All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.ibm.as400.ui.framework.java.WindowManager

public interface WindowManager
The interface which defines the function that standalone windows and dialogs in the UI framework must be capable of supporting. A WindowManager is capable of cascading itself relative to other windows on the screen.

See Also:
PanelManager, PropertySheetManager, WizardManager

Variable Index

 o OFFSET_FROM_OWNER
Number of pixels by which a modal dialog should be offset from its owner.

Method Index

 o addCancelListener(ActionListener)
Adds an ActionListener which is notified when the user cancels out of a window.
 o addCommitListener(ActionListener)
Adds an ActionListener which is notified when commit processing is complete.
 o getWindow()
Returns the main window containing the UI components being managed by this WindowManager.
 o setModalRelativeTo(WindowManager)
Sets the location of the window being managed relative to a window managed by the specified WindowManager.

Variables

 o OFFSET_FROM_OWNER
 public static final int OFFSET_FROM_OWNER
Number of pixels by which a modal dialog should be offset from its owner.

Methods

 o getWindow
 public abstract Window getWindow()
Returns the main window containing the UI components being managed by this WindowManager. The window may be an instance of either JDialog or JFrame, depending on whether the main window is modal or modeless.

Returns:
the main window for this WindowManager
 o setModalRelativeTo
 public abstract void setModalRelativeTo(WindowManager mgr)
Sets the location of the window being managed relative to a window managed by the specified WindowManager. If the window is not currently showing, the window for this WindowManager is centered on the screen.

Parameters:
mgr - the WindowManager managing the window in relation to which this object's window location is determined
 o addCommitListener
 public abstract void addCommitListener(ActionListener listener)
Adds an ActionListener which is notified when commit processing is complete.

This facility is provided for modeless windows, so that the application may learn when the window has closed. The listener's actionPerformed method will be called following successful completion of commit processing on the window. The ActionEvent passed to the listener object will have its action command string set to "COMMIT".

This method is not recommended for modal windows, since the application will be blocked on the setVisible call until the window is closed.

Parameters:
listener - the ActionListener to be notified
 o addCancelListener
 public abstract void addCancelListener(ActionListener listener)
Adds an ActionListener which is notified when the user cancels out of a window.

This facility is provided for modeless windows, so that the application may learn when the window has closed. The listener's actionPerformed method will be called when the user cancels out of a window without committing any changes. The ActionEvent passed to the listener object will have its action command string set to "CANCEL".

This method is not recommended for modal windows, since the application will be blocked on the setVisible call until the window is closed.

Parameters:
listener - the ActionListener to be notified

All Packages  Class Hierarchy  This Package  Previous  Next  Index