Package jmri.jmrit.beantable
Class LogixNGTableTableAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrit.beantable.AbstractTableAction<E>
-
- jmri.jmrit.beantable.AbstractLogixNGTableAction<NamedTable>
-
- jmri.jmrit.beantable.LogixNGTableTableAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class LogixNGTableTableAction extends AbstractLogixNGTableAction<NamedTable>
Swing action to create and register a LogixNG Table.Also contains the panes to create, edit, and delete a LogixNG.
Most of the text used in this GUI is in BeanTableBundle.properties, accessed via Bundle.getMessage().
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.jmrit.beantable.AbstractLogixNGTableAction
AbstractLogixNGTableAction.TableModel
-
Nested classes/interfaces inherited from class jmri.jmrit.beantable.AbstractTableAction
AbstractTableAction.TableItem<E extends NamedBean>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.swing.ButtonGroup
_buttonGroup
(package private) javax.swing.JRadioButton
_csvComma
(package private) javax.swing.JTextField
_csvFileName
(package private) javax.swing.ButtonGroup
_csvGroup
(package private) javax.swing.JLabel
_csvLabel
(package private) javax.swing.JRadioButton
_csvTabbed
(package private) javax.swing.JRadioButton
_typeExternalTable
(package private) javax.swing.JRadioButton
_typeInternalTable
-
Fields inherited from class jmri.jmrit.beantable.AbstractLogixNGTableAction
_addUserName, _autoSystemName, _curNamedBean, _editor, _logixNGSysName, _pickTables, _showReminder, _sysNameLabel, _systemName, _userNameLabel, addLogixNGFrame, conditionalRowNumber, create, deleteBean, systemNameAuto
-
Fields inherited from class jmri.jmrit.beantable.AbstractTableAction
f, includeAddButton, m
-
-
Constructor Summary
Constructors Constructor Description LogixNGTableTableAction()
Create a LogixNGTableAction instance with default title.LogixNGTableTableAction(java.lang.String s)
Create a LogixNGTableAction instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
browseMonoSpace()
protected NamedTable
createBean(java.lang.String userName)
protected NamedTable
createBean(java.lang.String systemName, java.lang.String userName)
protected void
deleteBean(NamedTable bean)
protected void
enableAll(boolean enable)
protected java.lang.String
getAddTitleKey()
protected java.lang.String
getBeanText(NamedTable bean, Base.PrintTreeSettings printTreeSettings)
protected java.lang.String
getBrowserTitle()
java.lang.String
getClassDescription()
protected java.lang.String
getCreateButtonHintKey()
protected AbstractLogixNGEditor<NamedTable>
getEditor(BeanTableDataModel<NamedTable> m, java.lang.String sName)
protected void
getListenerRefsIncludingChildren(NamedTable table, java.util.List<java.lang.String> list)
protected Manager<NamedTable>
getManager()
Get the Bean Manager in use by the TableAction.protected boolean
hasChildren(NamedTable table)
protected java.lang.String
helpTarget()
Specify the JavaHelp target for this specific panel.protected boolean
isEnabled(NamedTable bean)
protected javax.swing.JPanel
makeAddFrame(java.lang.String titleId, java.lang.String startMessageId)
Create or copy bean frame.protected void
setEnabled(NamedTable bean, boolean enable)
protected void
setTitle()
Set title of NamedBean table.-
Methods inherited from class jmri.jmrit.beantable.AbstractLogixNGTableAction
addPressed, autoSystemName, browserPressed, cancelAddPressed, checkFlags, checkLogixNGSysName, checkLogixNGUserName, copyBean, copyPressed, createModel, createPressed, deletePressed, editPressed, execute, executePressed, getClassName, handleCreateException, isCopyBeanSupported, isEditSupported, isExecuteSupported, setMenuBar, setMessagePreferencesDetails, showSaveReminder
-
Methods inherited from class jmri.jmrit.beantable.AbstractTableAction
actionPerformed, addBottomButtons, addToFrame, addToFrame, addToPanel, columnsVisibleUpdated, configureManagerComboBox, configureTable, displayHwError, dispose, getFrame, getPanel, getTableDataModel, includeAddButton, nextName, print, removePrefixBoxListener, setFrame, setManager
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
_typeExternalTable
javax.swing.JRadioButton _typeExternalTable
-
_typeInternalTable
javax.swing.JRadioButton _typeInternalTable
-
_buttonGroup
javax.swing.ButtonGroup _buttonGroup
-
_csvFileName
javax.swing.JTextField _csvFileName
-
_csvGroup
javax.swing.ButtonGroup _csvGroup
-
_csvTabbed
javax.swing.JRadioButton _csvTabbed
-
_csvComma
javax.swing.JRadioButton _csvComma
-
_csvLabel
javax.swing.JLabel _csvLabel
-
-
Constructor Detail
-
LogixNGTableTableAction
public LogixNGTableTableAction(java.lang.String s)
Create a LogixNGTableAction instance.- Parameters:
s
- the Action title, not the title of the resulting frame. Perhaps this should be changed?
-
LogixNGTableTableAction
public LogixNGTableTableAction()
Create a LogixNGTableAction instance with default title.
-
-
Method Detail
-
setTitle
protected void setTitle()
Description copied from class:AbstractLogixNGTableAction
Set title of NamedBean table.- Overrides:
setTitle
in classAbstractLogixNGTableAction<NamedTable>
-
getClassDescription
public java.lang.String getClassDescription()
- Overrides:
getClassDescription
in classAbstractLogixNGTableAction<NamedTable>
-
getEditor
protected AbstractLogixNGEditor<NamedTable> getEditor(BeanTableDataModel<NamedTable> m, java.lang.String sName)
- Specified by:
getEditor
in classAbstractLogixNGTableAction<NamedTable>
-
getManager
protected Manager<NamedTable> getManager()
Description copied from class:AbstractTableAction
Get the Bean Manager in use by the TableAction.- Specified by:
getManager
in classAbstractLogixNGTableAction<NamedTable>
- Returns:
- Bean Manager, could be Proxy or normal Manager, may be null.
-
enableAll
protected void enableAll(boolean enable)
- Specified by:
enableAll
in classAbstractLogixNGTableAction<NamedTable>
-
setEnabled
protected void setEnabled(NamedTable bean, boolean enable)
- Specified by:
setEnabled
in classAbstractLogixNGTableAction<NamedTable>
-
isEnabled
protected boolean isEnabled(NamedTable bean)
- Specified by:
isEnabled
in classAbstractLogixNGTableAction<NamedTable>
-
createBean
protected NamedTable createBean(java.lang.String userName)
- Specified by:
createBean
in classAbstractLogixNGTableAction<NamedTable>
-
createBean
protected NamedTable createBean(java.lang.String systemName, java.lang.String userName)
- Specified by:
createBean
in classAbstractLogixNGTableAction<NamedTable>
-
deleteBean
protected void deleteBean(NamedTable bean)
- Specified by:
deleteBean
in classAbstractLogixNGTableAction<NamedTable>
-
browseMonoSpace
protected boolean browseMonoSpace()
- Overrides:
browseMonoSpace
in classAbstractLogixNGTableAction<NamedTable>
-
getBeanText
protected java.lang.String getBeanText(NamedTable bean, Base.PrintTreeSettings printTreeSettings)
- Specified by:
getBeanText
in classAbstractLogixNGTableAction<NamedTable>
-
getBrowserTitle
protected java.lang.String getBrowserTitle()
- Specified by:
getBrowserTitle
in classAbstractLogixNGTableAction<NamedTable>
-
getAddTitleKey
protected java.lang.String getAddTitleKey()
- Specified by:
getAddTitleKey
in classAbstractLogixNGTableAction<NamedTable>
-
getCreateButtonHintKey
protected java.lang.String getCreateButtonHintKey()
- Specified by:
getCreateButtonHintKey
in classAbstractLogixNGTableAction<NamedTable>
-
helpTarget
protected java.lang.String helpTarget()
Description copied from class:AbstractTableAction
Specify the JavaHelp target for this specific panel.- Overrides:
helpTarget
in classAbstractLogixNGTableAction<NamedTable>
- Returns:
- a fixed default string "index" pointing to to highest level in JMRI Help
-
makeAddFrame
protected javax.swing.JPanel makeAddFrame(java.lang.String titleId, java.lang.String startMessageId)
Create or copy bean frame.- Specified by:
makeAddFrame
in classAbstractLogixNGTableAction<NamedTable>
- Parameters:
titleId
- property key to fetch as title of the frame (using Bundle)startMessageId
- part 1 of property key to fetch as user instruction on pane, either 1 or 2 is added to form the whole key- Returns:
- the button JPanel
-
getListenerRefsIncludingChildren
protected void getListenerRefsIncludingChildren(NamedTable table, java.util.List<java.lang.String> list)
- Specified by:
getListenerRefsIncludingChildren
in classAbstractLogixNGTableAction<NamedTable>
-
hasChildren
protected boolean hasChildren(NamedTable table)
- Specified by:
hasChildren
in classAbstractLogixNGTableAction<NamedTable>
-
-