|
||||||||||
| 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
jmri.jmrit.beantable.SignalHeadTableAction
public class SignalHeadTableAction
Swing action to create and register a SignalHeadTable GUI.
| Field Summary |
|---|
| Fields inherited from class jmri.jmrit.beantable.AbstractTableAction |
|---|
f, m, rb, 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 | |
|---|---|
SignalHeadTableAction()
|
|
SignalHeadTableAction(String s)
Create an action with a specific title. |
|
| Method Summary | |
|---|---|
protected void |
addPressed(ActionEvent e)
Provide GUI for adding a new SignalHead. |
boolean |
checkIntegerOnly(String s)
|
protected void |
createModel()
Create the JTable DataModel, along with the changes for the specific case of SignalHeads |
void |
dispose()
|
String |
getClassDescription()
|
protected String |
getClassName()
|
protected Turnout |
getTurnoutFromPanel(BeanSelectCreatePanel bp,
String reference)
|
protected String |
helpTarget()
Specify the JavaHelp target for this specific panel |
protected void |
setTitle()
Include the correct title |
protected Turnout |
updateTurnoutFromPanel(BeanSelectCreatePanel bp,
String reference,
Turnout oldTurnout,
String title)
|
| Methods inherited from class jmri.jmrit.beantable.AbstractTableAction |
|---|
actionPerformed, addToFrame, addToPanel, getPanel, getTableDataModel, makeJTable, print, setFrame, setManager, setMenuBar, setMessagePreferencesDetails |
| 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 SignalHeadTableAction(String s)
Note that the argument is the Action title, not the title of the resulting frame. Perhaps this should be changed?
s - public SignalHeadTableAction()
| Method Detail |
|---|
protected void createModel()
createModel in class AbstractTableActionprotected void setTitle()
AbstractTableAction
setTitle in class AbstractTableActionprotected String helpTarget()
AbstractTableAction
helpTarget in class AbstractTableActionprotected void addPressed(ActionEvent e)
Because there are multiple options, each of which requires different inputs, we directly manipulate which parts of the GUI are displayed when the selected type is changed.
addPressed in class AbstractTableActionpublic boolean checkIntegerOnly(String s)
public void dispose()
dispose in class AbstractTableAction
protected Turnout updateTurnoutFromPanel(BeanSelectCreatePanel bp,
String reference,
Turnout oldTurnout,
String title)
protected Turnout getTurnoutFromPanel(BeanSelectCreatePanel bp,
String reference)
protected String getClassName()
getClassName in class AbstractTableActionpublic String getClassDescription()
getClassDescription in class AbstractTableAction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||