zinger.bsheet
Class DialogEditor
java.lang.Object
zinger.bsheet.DialogEditor
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener
- Direct Known Subclasses:
- AppearanceEditor, CellFormatEditor, TableSearch, TableSort
public abstract class DialogEditor
- extends java.lang.Object
- implements java.awt.event.ActionListener
Base class for various dialogs applicable to cell or column ranges of a JTable
.
This abstract class provides basic logic for consuming events from accept and cancel buttons (OK, Cancel),
and menu items indicating column or cell set action.
- Author:
- Alexey Zinger (inline_four@yahoo.com)
Constructor Summary |
DialogEditor(javax.swing.JTable table,
java.lang.String dialogTitle,
java.lang.String acceptCommand,
java.lang.String acceptLabel,
java.lang.String cancelCommand,
java.lang.String cancelLabel,
java.lang.String colEditCommand,
java.lang.String cellEditCommand)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
table
protected final javax.swing.JTable table
dialog
protected javax.swing.JDialog dialog
acceptButton
protected javax.swing.JButton acceptButton
cancelButton
protected javax.swing.JButton cancelButton
lock
protected final java.lang.Object lock
changesAccepted
protected boolean changesAccepted
acceptCommand
protected final java.lang.String acceptCommand
cancelCommand
protected final java.lang.String cancelCommand
colEditCommand
protected final java.lang.String colEditCommand
cellEditCommand
protected final java.lang.String cellEditCommand
acceptLabel
protected final java.lang.String acceptLabel
cancelLabel
protected final java.lang.String cancelLabel
dialogTitle
protected final java.lang.String dialogTitle
DialogEditor
public DialogEditor(javax.swing.JTable table,
java.lang.String dialogTitle,
java.lang.String acceptCommand,
java.lang.String acceptLabel,
java.lang.String cancelCommand,
java.lang.String cancelLabel,
java.lang.String colEditCommand,
java.lang.String cellEditCommand)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent ev)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
buildButtonPanel
protected javax.swing.JPanel buildButtonPanel()
createDialog
protected void createDialog()
editColumns
protected abstract void editColumns()
editCells
protected abstract void editCells()