Package jmri.jmrit.beantable
Class LogixNGGlobalVariableTableAction
java.lang.Object
javax.swing.AbstractAction
jmri.jmrit.beantable.AbstractTableAction<E>
jmri.jmrit.beantable.AbstractLogixNGTableAction<GlobalVariable>
jmri.jmrit.beantable.LogixNGGlobalVariableTableAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
Swing action to create and register a LogixNG Global Variables Table.
Also contains the panes to create, edit, and delete a LogixNG Global Variable.
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 LogixNGGlobalVariablesTableAction instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidAllow subclasses to add to the frame without having to actually subclass the BeanTableDataFrame.voidAllow subclasses to add to the frame without having to actually subclass the BeanTableDataFrame.protected GlobalVariablecreateBean(String userName) protected GlobalVariablecreateBean(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(GlobalVariable globalVariable) voidenableAll(boolean enable) protected Stringprotected StringgetBeanText(GlobalVariable e, Base.PrintTreeSettings printTreeSettings) protected Stringprotected Stringprotected AbstractLogixNGEditor<GlobalVariable>getEditor(BeanTableDataModel<GlobalVariable> m, String sName) protected voidgetListenerRefsIncludingChildren(GlobalVariable globalVariable, List<String> list) protected Manager<GlobalVariable>Get the Bean Manager in use by the TableAction.protected booleanhasChildren(GlobalVariable globalVariable) protected StringSpecify the JavaHelp target for this specific panel.protected booleanprotected booleanprotected booleanisEnabled(GlobalVariable globalVariable) protected JPanelmakeAddFrame(String titleId, String startMessageId) Create or copy bean frame.voidsetEnabled(GlobalVariable globalVariable, boolean enable) protected voidsetTitle()Set title of NamedBean table.Methods inherited from class jmri.jmrit.beantable.AbstractLogixNGTableAction
addPressed, autoSystemName, browseMonoSpace, browserPressed, cancelAddPressed, checkFlags, checkLogixNGSysName, checkLogixNGUserName, copyBean, copyPressed, createPressed, deletePressed, editPressed, execute, executePressed, getClassName, handleCreateException, isExecuteSupported, setMenuBarMethods inherited from class jmri.jmrit.beantable.AbstractTableAction
actionPerformed, addBottomButtons, 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
-
Constructor Details
-
LogixNGGlobalVariableTableAction
Create a LogixNGGlobalVariablesTableAction instance.- Parameters:
s- the Action title, not the title of the resulting frame. Perhaps this should be changed?
-
LogixNGGlobalVariableTableAction
public LogixNGGlobalVariableTableAction()Create a LogixNGTableAction instance with default title.
-
-
Method Details
-
setTitle
Description copied from class:AbstractLogixNGTableActionSet title of NamedBean table.- Overrides:
setTitlein classAbstractLogixNGTableAction<GlobalVariable>
-
getClassDescription
- Overrides:
getClassDescriptionin classAbstractTableAction<GlobalVariable>
-
getEditor
protected AbstractLogixNGEditor<GlobalVariable> getEditor(BeanTableDataModel<GlobalVariable> m, String sName) - Specified by:
getEditorin classAbstractLogixNGTableAction<GlobalVariable>
-
isEditSupported
- Overrides:
isEditSupportedin classAbstractLogixNGTableAction<GlobalVariable>
-
getManager
Description copied from class:AbstractTableActionGet the Bean Manager in use by the TableAction.- Specified by:
getManagerin classAbstractLogixNGTableAction<GlobalVariable>- Returns:
- Bean Manager, could be Proxy or normal Manager, may be null.
-
setEnabled
- Specified by:
setEnabledin classAbstractLogixNGTableAction<GlobalVariable>
-
isEnabled
- Specified by:
isEnabledin classAbstractLogixNGTableAction<GlobalVariable>
-
enableAll
- Specified by:
enableAllin classAbstractLogixNGTableAction<GlobalVariable>
-
createBean
- Specified by:
createBeanin classAbstractLogixNGTableAction<GlobalVariable>
-
createBean
- Specified by:
createBeanin classAbstractLogixNGTableAction<GlobalVariable>
-
deleteBean
- Specified by:
deleteBeanin classAbstractLogixNGTableAction<GlobalVariable>
-
isCopyBeanSupported
- Overrides:
isCopyBeanSupportedin classAbstractLogixNGTableAction<GlobalVariable>
-
getBeanText
- Specified by:
getBeanTextin classAbstractLogixNGTableAction<GlobalVariable>
-
getBrowserTitle
- Specified by:
getBrowserTitlein classAbstractLogixNGTableAction<GlobalVariable>
-
getAddTitleKey
- Specified by:
getAddTitleKeyin classAbstractLogixNGTableAction<GlobalVariable>
-
getCreateButtonHintKey
- Specified by:
getCreateButtonHintKeyin classAbstractLogixNGTableAction<GlobalVariable>
-
helpTarget
Description copied from class:AbstractTableActionSpecify the JavaHelp target for this specific panel.- Overrides:
helpTargetin classAbstractLogixNGTableAction<GlobalVariable>- Returns:
- a fixed default string "index" pointing to to highest level in JMRI Help
-
makeAddFrame
Create or copy bean frame.- Specified by:
makeAddFramein classAbstractLogixNGTableAction<GlobalVariable>- 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<GlobalVariable>
-
hasChildren
- Specified by:
hasChildrenin classAbstractLogixNGTableAction<GlobalVariable>
-
createModel
Create the JTable DataModel, along with the changes (overrides of BeanTableDataModel) for the specific case of a LogixNG table.- Overrides:
createModelin classAbstractLogixNGTableAction<GlobalVariable>
-
addToFrame
Description copied from class:AbstractTableActionAllow subclasses to add to the frame without having to actually subclass the BeanTableDataFrame.- Overrides:
addToFramein classAbstractTableAction<GlobalVariable>- Parameters:
f- the Frame to add to
-
addToFrame
Description copied from class:AbstractTableActionAllow subclasses to add to the frame without having to actually subclass the BeanTableDataFrame.- Overrides:
addToFramein classAbstractTableAction<GlobalVariable>- Parameters:
tti- the TabbedTableItem to add to
-