public interface WindowContext
| Modifier and Type | Method and Description |
|---|---|
void |
addExitActionListener(ExitActionListener exitActionListener)
Adds an action listener for exit actions
|
void |
addWindowListener(java.awt.event.ActionListener listener)
Adds a window listener which will be invoked when windows are shown and
disposed.
|
void |
exit()
Requests the application to exit.
|
int |
getWindowCount(java.lang.Class<? extends DCWindow> windowClass)
Gets the count of windows of a particular type.
|
java.util.List<DCWindow> |
getWindows()
Gets all active windows in the application
|
void |
onDispose(DCWindow window)
Method which should be invoked when a window is closed/disposed.
|
void |
onShow(DCWindow window)
Method which should be invoked when a window is opened/shown.
|
void |
removeExitActionListener(ExitActionListener exitActionListener)
Removes an action listener for exit actions
|
void |
removeWindowListener(java.awt.event.ActionListener listener)
Removes a window listener that has previously been added using
addWindowListener(ActionListener) |
boolean |
showExitDialog()
Requests that an "exit application" dialog is shown.
|
void addExitActionListener(ExitActionListener exitActionListener)
exitActionListener - void removeExitActionListener(ExitActionListener exitActionListener)
exitActionListener - java.util.List<DCWindow> getWindows()
void onDispose(DCWindow window)
window - the window that was closed.void onShow(DCWindow window)
window - the window that is shown.int getWindowCount(java.lang.Class<? extends DCWindow> windowClass)
windowClass - the window typevoid addWindowListener(java.awt.event.ActionListener listener)
listener - void removeWindowListener(java.awt.event.ActionListener listener)
addWindowListener(ActionListener)listener - boolean showExitDialog()
void exit()
Copyright © 2015. All Rights Reserved.