|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.neu.ccs.gui.WindowActionAdapter
An adapter class for receiving window events and performing actions in response to those events.
| Field Summary | |
protected ActionSequence |
activatedActions
List of actions to be performed upon the notification of window activated events. |
protected ActionSequence |
closedActions
List of actions to be performed upon the notification of window closed events. |
protected ActionSequence |
closingActions
List of actions to be performed upon the notification of window closing events. |
protected ActionSequence |
deactivatedActions
List of actions to be performed upon the notification of window deactivated events. |
protected ActionSequence |
deiconifiedActions
List of actions to be performed upon the notification of window deiconified events. |
protected ActionSequence |
iconifiedActions
List of actions to be performed upon the notification of window iconified events. |
protected ActionSequence |
openedActions
List of actions to be performed upon the notification of window opened events. |
| Constructor Summary | |
WindowActionAdapter()
Constructs a window action adapter. |
|
WindowActionAdapter(Window target)
Constructs a window action adapter listening for window events generated by the given window. |
|
| Method Summary | |
void |
addWindowActivatedAction(ActionListener a)
Adds the given action listener to the action sequence so that it will be performed when the window is activated. |
void |
addWindowClosedAction(ActionListener a)
Adds the given action listener to the action sequence so that it will be performed when the window is closed. |
void |
addWindowClosingAction(ActionListener a)
Adds the given action listener to the action sequence so that it will be performed when the window is closing. |
void |
addWindowDeactivatedAction(ActionListener a)
Adds the given action listener to the action sequence so that it will be performed when the window is deactivated. |
void |
addWindowDeiconifiedAction(ActionListener a)
Adds the given action listener to the action sequence so that it will be performed when the window is deiconified. |
void |
addWindowIconifiedAction(ActionListener a)
Adds the given action listener to the action sequence so that it will be performed when the window is iconified. |
void |
addWindowOpenedAction(ActionListener a)
Adds the given action listener to the action sequence so that it will be performed when the window is opened. |
ActionSequence |
getWindowActivatedActions()
Returns the action sequence for window activated events. |
ActionSequence |
getWindowClosedActions()
Returns the action sequence for window closed events. |
ActionSequence |
getWindowClosingActions()
Returns the action sequence for window closing events. |
ActionSequence |
getWindowDeactivatedActions()
Returns the action sequence for window deactivated events. |
ActionSequence |
getWindowDeiconifiedActions()
Returns the action sequence for window deiconified events. |
ActionSequence |
getWindowIconifiedActions()
Returns the action sequence for window iconified events. |
ActionSequence |
getWindowOpenedActions()
Returns the action sequence for window opened events. |
void |
removeWindowActivatedAction(ActionListener a)
Removes the given action listener from this adapter so that it will be no longer be performed when the window is activated. |
void |
removeWindowClosedAction(ActionListener a)
Removes the given action listener from this adapter so that it will be no longer be performed when the window is closed. |
void |
removeWindowClosingAction(ActionListener a)
Removes the given action listener from this adapter so that it will be no longer be performed when the window is closing. |
void |
removeWindowDeactivatedAction(ActionListener a)
Removes the given action listener from this adapter so that it will be no longer be performed when the window is deactivated. |
void |
removeWindowDeiconifiedAction(ActionListener a)
Removes the given action listener from this adapter so that it will be no longer be performed when the window is deiconified. |
void |
removeWindowIconifiedAction(ActionListener a)
Removes the given action listener from this adapter so that it will be no longer be performed when the window is iconified. |
void |
removeWindowOpenedAction(ActionListener a)
Removes the given action listener from this adapter so that it will be no longer be performed when the window is opened. |
void |
setWindowActivatedActions(ActionSequence sequence)
Sets the action sequence for window activated events to the given action sequence. |
void |
setWindowClosedActions(ActionSequence sequence)
Sets the action sequence for window closed events to the given action sequence. |
void |
setWindowClosingActions(ActionSequence sequence)
Sets the action sequence for window closing events to the given action sequence. |
void |
setWindowDeactivatedActions(ActionSequence sequence)
Sets the action sequence for window deactivated events to the given action sequence. |
void |
setWindowDeiconifiedActions(ActionSequence sequence)
Sets the action sequence for window deiconified events to the given action sequence. |
void |
setWindowIconifiedActions(ActionSequence sequence)
Sets the action sequence for window iconified events to the given action sequence. |
void |
setWindowOpenedActions(ActionSequence sequence)
Sets the action sequence for window opened events to the given action sequence. |
void |
windowActivated(WindowEvent evt)
Performs the stored action sequence when the window is activated. |
void |
windowClosed(WindowEvent evt)
Performs the stored action sequence when the window is closed. |
void |
windowClosing(WindowEvent evt)
Performs the stored action sequence when the window is closing. |
void |
windowDeactivated(WindowEvent evt)
Performs the stored action sequence when the window is deactivated. |
void |
windowDeiconified(WindowEvent evt)
Performs the stored action sequence when the window is deiconified. |
void |
windowIconified(WindowEvent evt)
Performs the stored action sequence when the window is iconified. |
void |
windowOpened(WindowEvent evt)
Performs the stored action sequence when the window is opened. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ActionSequence activatedActions
protected ActionSequence closedActions
protected ActionSequence closingActions
protected ActionSequence deactivatedActions
protected ActionSequence deiconifiedActions
protected ActionSequence iconifiedActions
protected ActionSequence openedActions
| Constructor Detail |
public WindowActionAdapter()
public WindowActionAdapter(Window target)
null, this adapter does not listen
to a particular window by default.
target - the window that is listened to| Method Detail |
public final void windowActivated(WindowEvent evt)
windowActivated in interface WindowListenerevt - the window eventaddWindowActivatedAction(ActionListener),
getWindowActivatedActions()public final void windowClosed(WindowEvent evt)
windowClosed in interface WindowListenerevt - the window eventaddWindowClosedAction(ActionListener),
getWindowClosedActions()public final void windowClosing(WindowEvent evt)
windowClosing in interface WindowListenerevt - the window eventaddWindowClosingAction(ActionListener),
getWindowClosingActions()public final void windowDeactivated(WindowEvent evt)
windowDeactivated in interface WindowListenerevt - the window eventaddWindowDeactivatedAction(ActionListener),
getWindowDeactivatedActions()public final void windowDeiconified(WindowEvent evt)
windowDeiconified in interface WindowListenerevt - the window eventaddWindowDeiconifiedAction(ActionListener),
getWindowDeiconifiedActions()public final void windowIconified(WindowEvent evt)
windowIconified in interface WindowListenerevt - the window eventaddWindowIconifiedAction(ActionListener),
getWindowIconifiedActions()public final void windowOpened(WindowEvent evt)
windowOpened in interface WindowListenerevt - the window eventaddWindowOpenedAction(ActionListener),
getWindowOpenedActions()public void addWindowActivatedAction(ActionListener a)
a - the desired action listenerremoveWindowActivatedAction(ActionListener),
setWindowActivatedActions(ActionSequence),
getWindowActivatedActions()public void addWindowClosedAction(ActionListener a)
a - the desired action listenerremoveWindowClosedAction(ActionListener),
setWindowClosedActions(ActionSequence),
getWindowClosedActions()public void addWindowClosingAction(ActionListener a)
a - the desired action listenerremoveWindowClosingAction(ActionListener),
setWindowClosingActions(ActionSequence),
getWindowClosingActions()public void addWindowDeactivatedAction(ActionListener a)
a - the desired action listenerremoveWindowDeactivatedAction(ActionListener),
setWindowDeactivatedActions(ActionSequence),
getWindowDeactivatedActions()public void addWindowDeiconifiedAction(ActionListener a)
a - the desired action listenerremoveWindowDeiconifiedAction(ActionListener),
setWindowDeiconifiedActions(ActionSequence),
getWindowDeiconifiedActions()public void addWindowIconifiedAction(ActionListener a)
a - the desired action listenerremoveWindowIconifiedAction(ActionListener),
setWindowIconifiedActions(ActionSequence),
getWindowIconifiedActions()public void addWindowOpenedAction(ActionListener a)
a - the desired action listenerremoveWindowOpenedAction(ActionListener),
setWindowOpenedActions(ActionSequence),
getWindowOpenedActions()public void removeWindowActivatedAction(ActionListener a)
a - the action listener to be removedaddWindowActivatedAction(ActionListener),
setWindowActivatedActions(ActionSequence),
getWindowActivatedActions()public void removeWindowClosedAction(ActionListener a)
a - the action listener to be removedaddWindowClosedAction(ActionListener),
setWindowClosedActions(ActionSequence),
getWindowClosedActions()public void removeWindowClosingAction(ActionListener a)
a - the action listener to be removedaddWindowClosingAction(ActionListener),
setWindowClosingActions(ActionSequence),
getWindowClosingActions()public void removeWindowDeactivatedAction(ActionListener a)
a - the action listener to be removedaddWindowDeactivatedAction(ActionListener),
setWindowDeactivatedActions(ActionSequence),
getWindowDeactivatedActions()public void removeWindowDeiconifiedAction(ActionListener a)
a - the action listener to be removedaddWindowDeiconifiedAction(ActionListener),
setWindowDeiconifiedActions(ActionSequence),
getWindowDeiconifiedActions()public void removeWindowIconifiedAction(ActionListener a)
a - the action listener to be removedaddWindowIconifiedAction(ActionListener),
setWindowIconifiedActions(ActionSequence),
getWindowIconifiedActions()public void removeWindowOpenedAction(ActionListener a)
a - the action listener to be removedaddWindowOpenedAction(ActionListener),
setWindowOpenedActions(ActionSequence),
getWindowOpenedActions()public void setWindowActivatedActions(ActionSequence sequence)
null, the action sequence
for window activated events is cleared.
sequence - the desired action sequencegetWindowActivatedActions(),
addWindowActivatedAction(ActionListener),
removeWindowActivatedAction(ActionListener)public void setWindowClosedActions(ActionSequence sequence)
null, the action sequence
for window closed events is cleared.
sequence - the desired action sequencegetWindowClosedActions(),
addWindowClosedAction(ActionListener),
removeWindowClosedAction(ActionListener)public void setWindowClosingActions(ActionSequence sequence)
null, the action sequence
for window closing events is cleared.
sequence - the desired action sequencegetWindowClosingActions(),
addWindowClosingAction(ActionListener),
removeWindowClosingAction(ActionListener)public void setWindowDeactivatedActions(ActionSequence sequence)
null, the action sequence
for window deactivated events is cleared.
sequence - the desired action sequencegetWindowDeactivatedActions(),
addWindowDeactivatedAction(ActionListener),
removeWindowDeactivatedAction(ActionListener)public void setWindowDeiconifiedActions(ActionSequence sequence)
null, the action sequence
for window deiconified events is cleared.
sequence - the desired action sequencegetWindowDeiconifiedActions(),
addWindowDeiconifiedAction(ActionListener),
removeWindowDeiconifiedAction(ActionListener)public void setWindowIconifiedActions(ActionSequence sequence)
null, the action sequence
for window iconified events is cleared.
sequence - the desired action sequencegetWindowIconifiedActions(),
addWindowIconifiedAction(ActionListener),
removeWindowIconifiedAction(ActionListener)public void setWindowOpenedActions(ActionSequence sequence)
null, the action sequence
for window opened events is cleared.
sequence - the desired action sequencegetWindowOpenedActions(),
addWindowOpenedAction(ActionListener),
removeWindowOpenedAction(ActionListener)public ActionSequence getWindowActivatedActions()
setWindowActivatedActions(ActionSequence),
addWindowActivatedAction(ActionListener),
removeWindowActivatedAction(ActionListener)public ActionSequence getWindowClosedActions()
setWindowClosedActions(ActionSequence),
addWindowClosedAction(ActionListener),
removeWindowClosedAction(ActionListener)public ActionSequence getWindowClosingActions()
setWindowClosingActions(ActionSequence),
addWindowClosingAction(ActionListener),
removeWindowClosingAction(ActionListener)public ActionSequence getWindowDeactivatedActions()
setWindowDeactivatedActions(ActionSequence),
addWindowDeactivatedAction(ActionListener),
removeWindowDeactivatedAction(ActionListener)public ActionSequence getWindowDeiconifiedActions()
setWindowDeiconifiedActions(ActionSequence),
addWindowDeiconifiedAction(ActionListener),
removeWindowDeiconifiedAction(ActionListener)public ActionSequence getWindowIconifiedActions()
setWindowIconifiedActions(ActionSequence),
addWindowIconifiedAction(ActionListener),
removeWindowIconifiedAction(ActionListener)public ActionSequence getWindowOpenedActions()
setWindowOpenedActions(ActionSequence),
addWindowOpenedAction(ActionListener),
removeWindowOpenedAction(ActionListener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||