|
||||||||||
| 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.TurnoutTableAction
public class TurnoutTableAction
Swing action to create and register a TurnoutTable GUI.
| Nested Class Summary | |
|---|---|
protected class |
TurnoutTableAction.TurnoutOperationEditor
|
| Field Summary | |
|---|---|
protected TurnoutManager |
turnManager
|
| 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 | |
|---|---|
TurnoutTableAction()
|
|
TurnoutTableAction(String actionName)
Create an action with a specific title. |
|
| Method Summary | |
|---|---|
protected void |
addPressed(ActionEvent e)
|
void |
addToFrame(BeanTableFrame f)
Add the check box and Operations menu item |
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 void |
createModel()
Create the JTable DataModel, along with the changes for the specific case of Turnouts |
protected JButton |
editButton()
Create a JButton to edit a turnout operation. |
protected void |
editTurnoutOperation(Turnout t,
JComboBox box)
pop up a TurnoutOperationConfig for the turnout |
String |
getClassDescription()
|
protected String |
getClassName()
|
protected String |
helpTarget()
Specify the JavaHelp target for this specific panel |
protected JComboBox |
makeAutomationBox(Turnout t)
Create a JComboBox containing all the options for turnout automation parameters for this turnout |
protected void |
setDefaultSpeeds(JFrame _who)
|
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 void |
setTitle()
Include the correct title |
static void |
updateAutomationBox(Turnout t,
JComboBox cb)
Add the content and make the appropriate selection to a combox box for a turnout's automation choices |
| Methods inherited from class jmri.jmrit.beantable.AbstractTableAction |
|---|
actionPerformed, dispose, getPanel, getTableDataModel, makeJTable, print, setFrame |
| 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 TurnoutManager turnManager
| Constructor Detail |
|---|
public TurnoutTableAction(String actionName)
Note that the argument is the Action title, not the title of the resulting frame. Perhaps this should be changed?
actionName - public TurnoutTableAction()
| Method Detail |
|---|
public void setManager(Manager man)
AbstractTableAction
setManager in class AbstractTableActionprotected void createModel()
createModel in class AbstractTableActionprotected void setTitle()
AbstractTableAction
setTitle in class AbstractTableActionprotected String helpTarget()
AbstractTableAction
helpTarget in class AbstractTableActionprotected void addPressed(ActionEvent e)
addPressed in class AbstractTableActionprotected JComboBox makeAutomationBox(Turnout t)
t - the turnout
protected JButton editButton()
public static void updateAutomationBox(Turnout t,
JComboBox cb)
t - turnoutcb - the JComboBox
protected void editTurnoutOperation(Turnout t,
JComboBox box)
t - turnoutbox - JComboBox that triggered the editprotected void setDefaultSpeeds(JFrame _who)
public void addToFrame(BeanTableFrame f)
addToFrame in class AbstractTableActionpublic void addToPanel(AbstractTableTabAction f)
AbstractTableAction
addToPanel in class AbstractTableActionpublic void setMenuBar(BeanTableFrame f)
AbstractTableAction
setMenuBar in class AbstractTableActionprotected String getClassName()
getClassName in class AbstractTableActionpublic void setMessagePreferencesDetails()
setMessagePreferencesDetails 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 | |||||||||