|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
jmri.jmrit.beantable.AbstractTableAction
public abstract class AbstractTableAction
Swing action to create and register a SignalHeadTable GUI
| Field Summary | |
|---|---|
protected BeanTableFrame |
f
|
protected BeanTableDataModel |
m
|
static ResourceBundle |
rb
|
static ResourceBundle |
rbean
|
| 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 | |
|---|---|
AbstractTableAction(String actionName)
|
|
AbstractTableAction(String actionName,
Object option)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
protected abstract void |
addPressed(ActionEvent e)
|
void |
addToFrame(BeanTableFrame f)
Allow subclasses to add to the frame without have to actually subclass the BeanTableDataFrame |
void |
addToPanel(AbstractTableTabAction f)
If the subClass is being included in a greater tabbed frame, then this method is used to add the details to the tabbed frame |
protected abstract void |
createModel()
Create the JTable DataModel, along with the changes for the specific NamedBean type |
void |
dispose()
|
String |
getClassDescription()
|
protected abstract String |
getClassName()
|
JPanel |
getPanel()
|
BeanTableDataModel |
getTableDataModel()
|
protected String |
helpTarget()
Specify the JavaHelp target for this specific panel |
protected JTable |
makeJTable(TableSorter sorter)
|
void |
print(JTable.PrintMode mode,
MessageFormat headerFormat,
MessageFormat footerFormat)
Used with the Tabbed instances of table action, so that the print option is handled via that on the appropriate tab. |
void |
setFrame(BeanTableFrame frame)
|
protected void |
setManager(Manager man)
If the subClass is being included in a greater tabbed frame, then this is used to specify which manager the subclass should be using. |
void |
setMenuBar(BeanTableFrame f)
Allow subclasses to add alter the frames Menubar without have to actually subclass the BeanTableDataFrame |
void |
setMessagePreferencesDetails()
|
protected abstract void |
setTitle()
Include the correct title |
| 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 |
| Field Detail |
|---|
protected BeanTableDataModel m
public static final ResourceBundle rbean
public static final ResourceBundle rb
protected BeanTableFrame f
| Constructor Detail |
|---|
public AbstractTableAction(String actionName)
public AbstractTableAction(String actionName,
Object option)
| Method Detail |
|---|
protected abstract void createModel()
protected abstract void setTitle()
public void actionPerformed(ActionEvent e)
protected JTable makeJTable(TableSorter sorter)
public BeanTableDataModel getTableDataModel()
public void setFrame(BeanTableFrame frame)
public void addToFrame(BeanTableFrame f)
public void addToPanel(AbstractTableTabAction f)
protected void setManager(Manager man)
public void setMenuBar(BeanTableFrame f)
public JPanel getPanel()
public void dispose()
protected String helpTarget()
public String getClassDescription()
public void setMessagePreferencesDetails()
protected abstract String getClassName()
public void print(JTable.PrintMode mode,
MessageFormat headerFormat,
MessageFormat footerFormat)
protected abstract void addPressed(ActionEvent e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||