| javax.swing.JDialog jimm.datavision.gui.EditWin
All known Subclasses: jimm.datavision.gui.ScriptingWin, jimm.datavision.gui.FormatWin, jimm.datavision.gui.parameter.ParamEditWin, jimm.datavision.gui.sql.VisTableWin, jimm.datavision.gui.DescripWin, jimm.datavision.gui.BoundsWin, jimm.datavision.gui.AggregatesWin, jimm.datavision.gui.sql.DbConnWin, jimm.datavision.gui.TwoListWin,
EditWin | abstract public class EditWin extends JDialog implements ActionListener(Code) | | The abstract parent of all edit windows except the main design window.
Handles common behavior.
author: Jim Menard, jimm@io.com |
Method Summary | |
public void | actionPerformed(ActionEvent e) Handles the four buttons. | protected JPanel | closeButtonPanel() Builds and returns a panel containing the bottom four buttons. | abstract protected void | doRevert() Gives subclasses a chance to clean up their GUI. | abstract protected void | doSave() Saves all data by creating a new command, performing it, and adding it
to commands. | protected void | revert() Reverts all state information by undoing any commands previously performed
and emptying the compound command. | protected void | save(boolean closing) Saves all data by creating and performing a command. |
EditWin | public EditWin(Designer designer, String title, String commandNameKey)(Code) | | Constructor for a non-modal dialog.
Parameters: designer - the design window to which this dialog belongs Parameters: title - window title Parameters: commandNameKey - the jimm.util.I18N lookup key for the commandname |
EditWin | public EditWin(Designer designer, String title, String commandNameKey, boolean modal)(Code) | | Constructor.
Parameters: designer - the window to which this dialog belongs Parameters: title - window title Parameters: commandNameKey - the jimm.util.I18N lookup key for the commandname Parameters: modal - passed on to superclass |
actionPerformed | public void actionPerformed(ActionEvent e)(Code) | | Handles the four buttons.
Parameters: e - action event |
closeButtonPanel | protected JPanel closeButtonPanel()(Code) | | Builds and returns a panel containing the bottom four buttons.
the four buttons OK, Apply, Revert, and Cancel |
doRevert | abstract protected void doRevert()(Code) | | Gives subclasses a chance to clean up their GUI.
|
doSave | abstract protected void doSave()(Code) | | Saves all data by creating a new command, performing it, and adding it
to commands.
|
revert | protected void revert()(Code) | | Reverts all state information by undoing any commands previously performed
and emptying the compound command.
See Also: EditWin.doRevert |
save | protected void save(boolean closing)(Code) | | Saves all data by creating and performing a command. If not, that means we
are done and we should give the compound command to the design window.
Subclasses that implement
EditWin.doSave should probably create a command,
call its perform method, and add it to the commands
compound command.
Parameters: closing - passed through to doSave |
|
|