Package jmri.jmrit.beantable
Class LogixNGTableAction
- 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 ClassesNested classes/interfaces inherited from class jmri.jmrit.beantable.AbstractTableAction
AbstractTableAction.TableItem<E extends NamedBean> -
Field Summary
Fields 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 voidprotected LogixNGcreateBean(String userName) protected LogixNGcreateBean(String systemName, String userName) protected voidCreate the JTable DataModel, along with the changes (overrides of BeanTableDataModel) for the specific case of a LogixNG table.voiddeleteBean(LogixNG logixNG) protected voidenableAll(boolean enable) protected voidprotected Stringprotected StringgetBeanText(LogixNG e, Base.PrintTreeSettings printTreeSettings) protected Stringprotected Stringprotected AbstractLogixNGEditor<LogixNG>getEditor(BeanTableDataModel<LogixNG> m, String sName) protected voidgetListenerRefsIncludingChildren(LogixNG logixNG, List<String> list) Get the Bean Manager in use by the TableAction.protected booleanhasChildren(LogixNG logixNG) protected booleanprotected booleanprotected booleanprotected JPanelmakeAddFrame(String titleId, String startMessageId) Create or copy bean frame.protected voidsetEnabled(LogixNG logixNG, boolean enable) Methods inherited from class jmri.jmrit.beantable.AbstractLogixNGTableAction
addPressed, autoSystemName, browseMonoSpace, browserPressed, cancelAddPressed, checkFlags, checkLogixNGSysName, checkLogixNGUserName, copyPressed, createPressed, deletePressed, editPressed, executePressed, getClassName, handleCreateException, helpTarget, isEditSupported, setMenuBar, setTitleMethods inherited from class jmri.jmrit.beantable.AbstractTableAction
actionPerformed, addBottomButtons, addToFrame, addToFrame, addToPanel, columnsVisibleUpdated, configureManagerComboBox, configureTable, displayHwError, dispose, getClassDescription, 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
-
Constructor Details
-
LogixNGTableAction
Create a LogixNGTableAction instance.- Parameters:
s- the Action title, not the title of the resulting frame. Perhaps this should be changed?
-
LogixNGTableAction
public LogixNGTableAction()Create a LogixNGTableAction instance with default title.
-
-
Method Details
-
createModel
Description copied from class:AbstractLogixNGTableActionCreate the JTable DataModel, along with the changes (overrides of BeanTableDataModel) for the specific case of a LogixNG table.- Overrides:
createModelin classAbstractLogixNGTableAction<LogixNG>
-
getEditor
- Specified by:
getEditorin classAbstractLogixNGTableAction<LogixNG>
-
getManager
Description copied from class:AbstractTableActionGet the Bean Manager in use by the TableAction.- Specified by:
getManagerin classAbstractLogixNGTableAction<LogixNG>- Returns:
- Bean Manager, could be Proxy or normal Manager, may be null.
-
setEnabled
- Specified by:
setEnabledin classAbstractLogixNGTableAction<LogixNG>
-
isEnabled
- Specified by:
isEnabledin classAbstractLogixNGTableAction<LogixNG>
-
enableAll
- Specified by:
enableAllin classAbstractLogixNGTableAction<LogixNG>
-
createBean
- Specified by:
createBeanin classAbstractLogixNGTableAction<LogixNG>
-
createBean
- Specified by:
createBeanin classAbstractLogixNGTableAction<LogixNG>
-
deleteBean
- Specified by:
deleteBeanin classAbstractLogixNGTableAction<LogixNG>
-
copyBean
- Overrides:
copyBeanin classAbstractLogixNGTableAction<LogixNG>
-
isCopyBeanSupported
- Overrides:
isCopyBeanSupportedin classAbstractLogixNGTableAction<LogixNG>
-
isExecuteSupported
- Overrides:
isExecuteSupportedin classAbstractLogixNGTableAction<LogixNG>
-
execute
- Overrides:
executein classAbstractLogixNGTableAction<LogixNG>
-
getBeanText
- Specified by:
getBeanTextin classAbstractLogixNGTableAction<LogixNG>
-
getBrowserTitle
- Specified by:
getBrowserTitlein classAbstractLogixNGTableAction<LogixNG>
-
getAddTitleKey
- Specified by:
getAddTitleKeyin classAbstractLogixNGTableAction<LogixNG>
-
getCreateButtonHintKey
- Specified by:
getCreateButtonHintKeyin classAbstractLogixNGTableAction<LogixNG>
-
makeAddFrame
Create or copy bean frame.- Specified by:
makeAddFramein classAbstractLogixNGTableAction<LogixNG>- 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<LogixNG>
-
hasChildren
- Specified by:
hasChildrenin classAbstractLogixNGTableAction<LogixNG>
-