|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
edu.mit.csail.sdg.alloy4.Runner
public abstract class Runner
This class converts a Runnable into an AbstractAction, WindowListener, CaretListener, and MenuListener also.
Field Summary |
---|
Fields inherited from class javax.swing.AbstractAction |
---|
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
---|---|
Runner()
Constructs a new runner; you should override the run() and run(arg) method to customize it. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
This method is defined in java.awt.event.ActionListener; (this implementation calls this.run()) |
void |
caretUpdate(javax.swing.event.CaretEvent e)
This method is defined in java.awt.event.CaretListener; (this implementation calls this.run()) |
static Runner |
createDispose(java.awt.Window window)
This helper method returns a Runnable whose run() method will call window.dispose() |
void |
focusGained(java.awt.event.FocusEvent e)
This method is defined in java.awt.event.FocusListener; (this implementation calls this.run()) |
void |
focusLost(java.awt.event.FocusEvent e)
This method is defined in java.awt.event.FocusListener; (this implementation does nothing) |
void |
menuCanceled(javax.swing.event.MenuEvent e)
This method is defined in javax.swing.event.MenuListener; (this implementation does nothing) |
void |
menuDeselected(javax.swing.event.MenuEvent e)
This method is defined in javax.swing.event.MenuListener; (this implementation does nothing) |
void |
menuSelected(javax.swing.event.MenuEvent e)
This method is defined in javax.swing.event.MenuListener; (this implementation calls this.run()) |
abstract void |
run()
This method should be overriden to provide the default action that this Runner would perform. |
abstract void |
run(java.lang.Object arg)
This method should be overriden to provide the default action that this Runner would perform given an argument. |
void |
windowActivated(java.awt.event.WindowEvent e)
This method is defined in java.awt.event.WindowListener; (this implementation does nothing) |
void |
windowClosed(java.awt.event.WindowEvent e)
This method is defined in java.awt.event.WindowListener; (this implementation does nothing) |
void |
windowClosing(java.awt.event.WindowEvent e)
This method is defined in java.awt.event.WindowListener; (this implementation calls this.run()) |
void |
windowDeactivated(java.awt.event.WindowEvent e)
This method is defined in java.awt.event.WindowListener; (this implementation does nothing) |
void |
windowDeiconified(java.awt.event.WindowEvent e)
This method is defined in java.awt.event.WindowListener; (this implementation does nothing) |
void |
windowIconified(java.awt.event.WindowEvent e)
This method is defined in java.awt.event.WindowListener; (this implementation does nothing) |
void |
windowOpened(java.awt.event.WindowEvent e)
This method is defined in java.awt.event.WindowListener; (this implementation does nothing) |
Methods inherited from class javax.swing.AbstractAction |
---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Runner()
Method Detail |
---|
public abstract void run()
run
in interface java.lang.Runnable
public abstract void run(java.lang.Object arg)
public final void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public final void menuSelected(javax.swing.event.MenuEvent e)
menuSelected
in interface javax.swing.event.MenuListener
public final void menuDeselected(javax.swing.event.MenuEvent e)
menuDeselected
in interface javax.swing.event.MenuListener
public final void menuCanceled(javax.swing.event.MenuEvent e)
menuCanceled
in interface javax.swing.event.MenuListener
public final void caretUpdate(javax.swing.event.CaretEvent e)
caretUpdate
in interface javax.swing.event.CaretListener
public final void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
public final void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
public final void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
public final void windowClosed(java.awt.event.WindowEvent e)
windowClosed
in interface java.awt.event.WindowListener
public final void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
public final void windowIconified(java.awt.event.WindowEvent e)
windowIconified
in interface java.awt.event.WindowListener
public final void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified
in interface java.awt.event.WindowListener
public final void windowActivated(java.awt.event.WindowEvent e)
windowActivated
in interface java.awt.event.WindowListener
public final void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated
in interface java.awt.event.WindowListener
public static final Runner createDispose(java.awt.Window window)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |