|
||||||||||
| 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.LightTableAction
public class LightTableAction
Swing action to create and register a LightTable GUI.
Based on SignalHeadTableAction.java
| Nested Class Summary | |
|---|---|
class |
LightTableAction.LightControlTableModel
Table model for Light Controls in the Add/Edit Light window |
| Field Summary | |
|---|---|
protected LightManager |
lightManager
|
| 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 | |
|---|---|
LightTableAction()
|
|
LightTableAction(String s)
Create an action with a specific title. |
|
| Method Summary | |
|---|---|
protected void |
addControlPressed(ActionEvent e)
Responds to the Add Control button |
protected void |
addPressed(ActionEvent e)
|
protected void |
addRangeChanged()
|
protected void |
cancelControlPressed(ActionEvent e)
|
protected void |
createControlPressed(ActionEvent e)
|
protected void |
createModel()
Create the JTable DataModel, along with the changes for the specific case of Lights |
protected void |
deleteControlAction(int row)
Responds to Delete button on row in the Light Control Table |
protected void |
editControlAction(int row)
Responds to Edit button on row in the Light Control Table |
String |
getClassDescription()
|
protected String |
getClassName()
|
String |
getControlTypeText(int type)
Returns text showing the type of Light Control |
String |
getDescriptionText(LightControl lc,
int type)
Returns text showing the type of Light Control |
protected String |
helpTarget()
Specify the JavaHelp target for this specific panel |
protected void |
prefixChanged()
|
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. |
protected void |
setTitle()
Include the correct title |
protected void |
updateControlPressed(ActionEvent e)
|
| Methods inherited from class jmri.jmrit.beantable.AbstractTableAction |
|---|
actionPerformed, addToFrame, addToPanel, dispose, getPanel, getTableDataModel, makeJTable, print, setFrame, 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 |
| Field Detail |
|---|
protected LightManager lightManager
| Constructor Detail |
|---|
public LightTableAction(String s)
Note that the argument is the Action title, not the title of the resulting frame. Perhaps this should be changed?
s - public LightTableAction()
| 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 void prefixChanged()
protected void addRangeChanged()
protected void addControlPressed(ActionEvent e)
protected void createControlPressed(ActionEvent e)
protected void updateControlPressed(ActionEvent e)
protected void cancelControlPressed(ActionEvent e)
public String getControlTypeText(int type)
public String getDescriptionText(LightControl lc,
int type)
protected void editControlAction(int row)
protected void deleteControlAction(int row)
public String getClassDescription()
getClassDescription in class AbstractTableActionprotected String getClassName()
getClassName in class AbstractTableAction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||