| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private final Object | |
| private final Runnable | |
| private final Runnable | |
| private final Component | |
| private WindowClosingProtocol. | |
| private boolean | |
| private Window | |
| pack-priv WindowListener |
| Access | Constructor and Description |
|---|---|
| public | AWTWindowClosingProtocol(final Component
mandatory AWT component which AWT Window is being queried by parent traversal comp, final Runnable mandatory closing operation, triggered if windowClosing and closingOperationClose, final Runnable WindowClosingMode#DISPOSE_ON_CLOSEoptional closing operation, triggered if windowClosing and closingOperationNOP)WindowClosingMode#DO_NOTHING_ON_CLOSE
|
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | Returns: true if added, otherwise false.Adds this closing listener to the components Window if exist and only one time. |
| public final WindowClosingProtocol. | Returns: the user set close operation if set bysetDefaultCloseOperation(int),
otherwise return the AWT/Swing close operation value translated to
a WindowClosingProtocol value .Implements com. |
| public final boolean | |
| public final WindowClosingProtocol. | setDefaultCloseOperation(final WindowClosingProtocol.
the new close operation value opImplements com. |
| closingListenerLock | back to summary |
|---|---|
| private final Object closingListenerLock | |
| closingOperationClose | back to summary |
|---|---|
| private final Runnable closingOperationClose | |
| closingOperationNOP | back to summary |
|---|---|
| private final Runnable closingOperationNOP | |
| comp | back to summary |
|---|---|
| private final Component comp | |
| defaultCloseOperation | back to summary |
|---|---|
| private WindowClosingProtocol. | |
| defaultCloseOperationSetByUser | back to summary |
|---|---|
| private boolean defaultCloseOperationSetByUser | |
| listenTo | back to summary |
|---|---|
| private Window listenTo | |
| windowClosingAdapter | back to summary |
|---|---|
| pack-priv WindowListener windowClosingAdapter | |
| AWTWindowClosingProtocol | back to summary |
|---|---|
public AWTWindowClosingProtocol(final Component comp, final Runnable closingOperationClose, final Runnable closingOperationNOP)
| |
| addClosingListener | back to summary |
|---|---|
| public final boolean addClosingListener() throws IllegalStateException Adds this closing listener to the components Window if exist and only one time.
If the closing listener is already added, and
| |
| getDefaultCloseOperation | back to summary |
|---|---|
| public final WindowClosingProtocol. Implements com.
| |
| removeClosingListener | back to summary |
|---|---|
| public final boolean removeClosingListener() | |
| setDefaultCloseOperation | back to summary |
|---|---|
| public final WindowClosingProtocol. Implements com.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | windowClosing(final WindowEvent
the event to be processed e)Overrides java. Implements java. |
| WindowClosingAdapter | back to summary |
|---|---|
| pack-priv WindowClosingAdapter() | |
| windowClosing | back to summary |
|---|---|
| public void windowClosing(final WindowEvent e) Overrides java. Implements java. Doc from java. Invoked when a window is in the process of being closed. The close operation can be overridden at this point.
| |