Package jmri.jmrit.beantable
Class StringIOTableAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
Swing action to create and register a StringIOTable GUI.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.jmrit.beantable.AbstractTableAction
AbstractTableAction.TableItem<E extends NamedBean> -
Field Summary
FieldsFields inherited from class jmri.jmrit.beantable.AbstractTableAction
f, includeAddButton, mFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields 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
ConstructorsConstructorDescriptionStringIOTableAction(String actionName) Create an action with a specific title. -
Method Summary
Modifier and TypeMethodDescriptionprotected void(package private) voidprotected voidCreate the JTable DataModel, along with the changes for the specific case of StringIOs.(package private) voidRespond to Create new item button pressed on Add StringIO pane.protected String(package private) voidhandleCreateException(Exception ex, String sysName) protected StringSpecify the JavaHelp target for this specific panel.voidsetManager(Manager<StringIO> 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.voidprotected voidsetTitle()Include the correct title.Methods inherited from class jmri.jmrit.beantable.AbstractTableAction
actionPerformed, addBottomButtons, addToFrame, addToFrame, addToPanel, columnsVisibleUpdated, configureManagerComboBox, configureTable, displayHwError, dispose, getDataModel, getFrame, getManager, getPanel, getTableDataModel, includeAddButton, nextName, print, removePrefixBoxListener, setFrame, setMenuBarMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
stringIOManager
-
-
Constructor Details
-
StringIOTableAction
Create an action with a specific title.Note that the argument is the Action title, not the title of the resulting frame. Perhaps this should be changed?
- Parameters:
actionName- title of the action
-
StringIOTableAction
public StringIOTableAction()
-
-
Method Details
-
setManager
If the subClass is being included in a greater tabbed frame, then this is used to specify which manager the subclass should be using.- Overrides:
setManagerin classAbstractTableAction<StringIO>- Parameters:
man- Manager for this table tab
-
createModel
Create the JTable DataModel, along with the changes for the specific case of StringIOs.- Specified by:
createModelin classAbstractTableAction<StringIO>
-
setTitle
Include the correct title.- Specified by:
setTitlein classAbstractTableAction<StringIO>
-
helpTarget
Specify the JavaHelp target for this specific panel.- Overrides:
helpTargetin classAbstractTableAction<StringIO>- Returns:
- a fixed default string "index" pointing to to highest level in JMRI Help
-
addPressed
- Specified by:
addPressedin classAbstractTableAction<StringIO>
-
cancelPressed
-
createPressed
Respond to Create new item button pressed on Add StringIO pane.- Parameters:
e- the click event
-
handleCreateException
-
getClassName
- Specified by:
getClassNamein classAbstractTableAction<StringIO>
-
getClassDescription
- Overrides:
getClassDescriptionin classAbstractTableAction<StringIO>
-
setMessagePreferencesDetails
- Overrides:
setMessagePreferencesDetailsin classAbstractTableAction<StringIO>
-