Package jmri.jmrit.beantable
Class LogixNGModuleTableAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrit.beantable.AbstractTableAction<E>
-
- jmri.jmrit.beantable.AbstractLogixNGTableAction<Module>
-
- jmri.jmrit.beantable.LogixNGModuleTableAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class LogixNGModuleTableAction extends AbstractLogixNGTableAction<Module>
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.JComboBox<FemaleSocketManager.SocketType>
_femaleSocketType
-
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 LogixNGModuleTableAction()
Create a LogixNGTableAction instance with default title.LogixNGModuleTableAction(java.lang.String s)
Create a LogixNGTableAction instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Module
createBean(java.lang.String userName)
protected Module
createBean(java.lang.String systemName, java.lang.String userName)
protected void
deleteBean(Module bean)
protected void
enableAll(boolean enable)
protected java.lang.String
getAddTitleKey()
protected java.lang.String
getBeanText(Module bean, Base.PrintTreeSettings printTreeSettings)
protected java.lang.String
getBrowserTitle()
java.lang.String
getClassDescription()
protected java.lang.String
getCreateButtonHintKey()
protected AbstractLogixNGEditor<Module>
getEditor(BeanTableDataModel<Module> m, java.lang.String sName)
protected void
getListenerRefsIncludingChildren(Module module, java.util.List<java.lang.String> list)
protected Manager<Module>
getManager()
Get the Bean Manager in use by the TableAction.protected boolean
hasChildren(Module module)
protected java.lang.String
helpTarget()
Specify the JavaHelp target for this specific panel.protected boolean
isEnabled(Module bean)
protected javax.swing.JPanel
makeAddFrame(java.lang.String titleId, java.lang.String startMessageId)
Create or copy bean frame.protected void
setEnabled(Module bean, boolean enable)
protected void
setTitle()
Set title of NamedBean table.-
Methods inherited from class jmri.jmrit.beantable.AbstractLogixNGTableAction
addPressed, autoSystemName, browseMonoSpace, 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
-
_femaleSocketType
javax.swing.JComboBox<FemaleSocketManager.SocketType> _femaleSocketType
-
-
Constructor Detail
-
LogixNGModuleTableAction
public LogixNGModuleTableAction(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?
-
LogixNGModuleTableAction
public LogixNGModuleTableAction()
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<Module>
-
getClassDescription
public java.lang.String getClassDescription()
- Overrides:
getClassDescription
in classAbstractLogixNGTableAction<Module>
-
getEditor
protected AbstractLogixNGEditor<Module> getEditor(BeanTableDataModel<Module> m, java.lang.String sName)
- Specified by:
getEditor
in classAbstractLogixNGTableAction<Module>
-
getManager
protected Manager<Module> getManager()
Description copied from class:AbstractTableAction
Get the Bean Manager in use by the TableAction.- Specified by:
getManager
in classAbstractLogixNGTableAction<Module>
- Returns:
- Bean Manager, could be Proxy or normal Manager, may be null.
-
enableAll
protected void enableAll(boolean enable)
- Specified by:
enableAll
in classAbstractLogixNGTableAction<Module>
-
setEnabled
protected void setEnabled(Module bean, boolean enable)
- Specified by:
setEnabled
in classAbstractLogixNGTableAction<Module>
-
isEnabled
protected boolean isEnabled(Module bean)
- Specified by:
isEnabled
in classAbstractLogixNGTableAction<Module>
-
createBean
protected Module createBean(java.lang.String userName)
- Specified by:
createBean
in classAbstractLogixNGTableAction<Module>
-
createBean
protected Module createBean(java.lang.String systemName, java.lang.String userName)
- Specified by:
createBean
in classAbstractLogixNGTableAction<Module>
-
deleteBean
protected void deleteBean(Module bean)
- Specified by:
deleteBean
in classAbstractLogixNGTableAction<Module>
-
getBeanText
protected java.lang.String getBeanText(Module bean, Base.PrintTreeSettings printTreeSettings)
- Specified by:
getBeanText
in classAbstractLogixNGTableAction<Module>
-
getBrowserTitle
protected java.lang.String getBrowserTitle()
- Specified by:
getBrowserTitle
in classAbstractLogixNGTableAction<Module>
-
getAddTitleKey
protected java.lang.String getAddTitleKey()
- Specified by:
getAddTitleKey
in classAbstractLogixNGTableAction<Module>
-
getCreateButtonHintKey
protected java.lang.String getCreateButtonHintKey()
- Specified by:
getCreateButtonHintKey
in classAbstractLogixNGTableAction<Module>
-
helpTarget
protected java.lang.String helpTarget()
Description copied from class:AbstractTableAction
Specify the JavaHelp target for this specific panel.- Overrides:
helpTarget
in classAbstractLogixNGTableAction<Module>
- 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<Module>
- 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(Module module, java.util.List<java.lang.String> list)
- Specified by:
getListenerRefsIncludingChildren
in classAbstractLogixNGTableAction<Module>
-
hasChildren
protected boolean hasChildren(Module module)
- Specified by:
hasChildren
in classAbstractLogixNGTableAction<Module>
-
-