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:
ActionListener,Serializable,Cloneable,EventListener,Action
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.jmrit.beantable.AbstractLogixNGTableAction
AbstractLogixNGTableAction.TableModelNested classes/interfaces inherited from class jmri.jmrit.beantable.AbstractTableAction
AbstractTableAction.TableItem<E extends NamedBean> -
Field Summary
FieldsModifier and TypeFieldDescription(package private) ButtonGroup(package private) JRadioButton(package private) JTextField(package private) ButtonGroup(package private) JLabel(package private) JRadioButton(package private) JRadioButton(package private) JRadioButton(package private) JRadioButtonFields inherited from class jmri.jmrit.beantable.AbstractLogixNGTableAction
_addUserName, _autoSystemName, _curNamedBean, _editor, _logixNGSysName, _pickTables, _showReminder, _sysNameLabel, _systemName, _userNameLabel, addLogixNGFrame, conditionalRowNumber, create, deleteBean, systemNameAutoFields 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
ConstructorsConstructorDescriptionCreate a LogixNGTableAction instance with default title.Create a LogixNGTableAction instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected NamedTablecreateBean(String userName) protected NamedTablecreateBean(String systemName, String userName) protected voiddeleteBean(NamedTable bean) protected voidenableAll(boolean enable) protected Stringprotected StringgetBeanText(NamedTable bean, Base.PrintTreeSettings printTreeSettings) protected Stringprotected Stringprotected AbstractLogixNGEditor<NamedTable>getEditor(BeanTableDataModel<NamedTable> m, String sName) protected voidgetListenerRefsIncludingChildren(NamedTable table, List<String> list) protected Manager<NamedTable>Get the Bean Manager in use by the TableAction.protected booleanhasChildren(NamedTable table) protected StringSpecify the JavaHelp target for this specific panel.protected booleanisEnabled(NamedTable bean) protected JPanelmakeAddFrame(String titleId, String startMessageId) Create or copy bean frame.protected voidsetEnabled(NamedTable bean, boolean enable) protected voidsetTitle()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, setMenuBarMethods inherited from class jmri.jmrit.beantable.AbstractTableAction
actionPerformed, addBottomButtons, addToFrame, addToFrame, addToPanel, columnsVisibleUpdated, configureManagerComboBox, configureTable, displayHwError, dispose, getDataModel, getFrame, getPanel, getTableDataModel, includeAddButton, nextName, print, removePrefixBoxListener, setFrame, setManager, setMessagePreferencesDetailsMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
_typeExternalTable
-
_typeInternalTable
-
_buttonGroup
-
_csvFileName
-
_csvGroup
-
_csvTabbed
-
_csvComma
-
_csvSemicolon
-
_csvLabel
-
-
Constructor Details
-
LogixNGTableTableAction
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 Details
-
setTitle
Description copied from class:AbstractLogixNGTableActionSet title of NamedBean table.- Overrides:
setTitlein classAbstractLogixNGTableAction<NamedTable>
-
getClassDescription
- Overrides:
getClassDescriptionin classAbstractTableAction<NamedTable>
-
getEditor
protected AbstractLogixNGEditor<NamedTable> getEditor(BeanTableDataModel<NamedTable> m, String sName) - Specified by:
getEditorin classAbstractLogixNGTableAction<NamedTable>
-
getManager
Description copied from class:AbstractTableActionGet the Bean Manager in use by the TableAction.- Specified by:
getManagerin classAbstractLogixNGTableAction<NamedTable>- Returns:
- Bean Manager, could be Proxy or normal Manager, may be null.
-
enableAll
- Specified by:
enableAllin classAbstractLogixNGTableAction<NamedTable>
-
setEnabled
- Specified by:
setEnabledin classAbstractLogixNGTableAction<NamedTable>
-
isEnabled
- Specified by:
isEnabledin classAbstractLogixNGTableAction<NamedTable>
-
createBean
- Specified by:
createBeanin classAbstractLogixNGTableAction<NamedTable>
-
createBean
- Specified by:
createBeanin classAbstractLogixNGTableAction<NamedTable>
-
deleteBean
- Specified by:
deleteBeanin classAbstractLogixNGTableAction<NamedTable>
-
browseMonoSpace
- Overrides:
browseMonoSpacein classAbstractLogixNGTableAction<NamedTable>
-
getBeanText
- Specified by:
getBeanTextin classAbstractLogixNGTableAction<NamedTable>
-
getBrowserTitle
- Specified by:
getBrowserTitlein classAbstractLogixNGTableAction<NamedTable>
-
getAddTitleKey
- Specified by:
getAddTitleKeyin classAbstractLogixNGTableAction<NamedTable>
-
getCreateButtonHintKey
- Specified by:
getCreateButtonHintKeyin classAbstractLogixNGTableAction<NamedTable>
-
helpTarget
Description copied from class:AbstractTableActionSpecify the JavaHelp target for this specific panel.- Overrides:
helpTargetin classAbstractLogixNGTableAction<NamedTable>- Returns:
- a fixed default string "index" pointing to to highest level in JMRI Help
-
makeAddFrame
Create or copy bean frame.- Specified by:
makeAddFramein 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
- Specified by:
getListenerRefsIncludingChildrenin classAbstractLogixNGTableAction<NamedTable>
-
hasChildren
- Specified by:
hasChildrenin classAbstractLogixNGTableAction<NamedTable>
-