Package jmri.jmrit.beantable
Class SectionTableAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
Swing action to create and register a SectionTable GUI.
This file is part of JMRI.
JMRI is open source software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassTable model for Blocks in Create/Edit Section windowclassTable model for Entry Points in Create/Edit Section window.Nested classes/interfaces inherited from class jmri.jmrit.beantable.AbstractTableAction
AbstractTableAction.TableItem<E extends NamedBean> -
Field Summary
FieldsModifier and TypeFieldDescription(package private) JCheckBox(package private) JButton(package private) boolean(package private) JmriJFrame(package private) JRadioButton(package private) Block(package private) NamedBeanComboBox<Block>(package private) BlockManager(package private) JButton(package private) LayoutEditor(package private) Section(package private) JButton(package private) boolean(package private) Block(package private) ArrayList<EntryPoint>(package private) ButtonGroup(package private) SectionTableAction.EntryPointTableModel(package private) NamedBeanComboBox<Sensor>(package private) NamedBeanComboBox<Sensor>(package private) JmriJFrame(package private) Sensor(package private) Sensor(package private) JLabel(package private) ArrayList<LayoutEditor>(package private) boolean(package private) JRadioButton(package private) UserPreferencesManager(package private) static final ResourceBundle(package private) NamedBeanComboBox<Sensor>(package private) NamedBeanComboBox<Sensor>(package private) Sensor(package private) Sensor(package private) SectionManager(package private) JTextField(package private) JLabel(package private) JLabel(package private) String(package private) JButton(package private) JTextField(package private) JLabelFields 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
ConstructorsConstructorDescriptionSectionTableAction(String actionName) Create an action with a specific title. -
Method Summary
Modifier and TypeMethodDescription(package private) void(package private) voidprotected voidResponds to the Add...button and the Edit buttons in the Section Table(package private) voidprotected voidCreate the JTable DataModel, along with the changes for the specific case of Section objects.(package private) void(package private) void(package private) voideditPressed(String sName) protected String(package private) voidhandleCreateException(String sysName, Exception ex) protected StringSpecify the JavaHelp target for this specific panel.voidInsert 2 table specific menus.protected voidsetTitle()Include the correct title.(package private) voidMethods inherited from class jmri.jmrit.beantable.AbstractTableAction
actionPerformed, addBottomButtons, addToFrame, addToFrame, addToPanel, columnsVisibleUpdated, configureManagerComboBox, configureTable, displayHwError, dispose, getDataModel, getFrame, getManager, 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
-
rbx
-
blockList
-
entryPointTableModel
-
sectionManager
-
blockManager
-
editMode
boolean editMode -
curSection
-
addCreateActive
boolean addCreateActive -
lePanelList
-
curLayoutEditor
-
beginBlock
-
endBlock
-
fSensor
-
rSensor
-
fStopSensor
-
rStopSensor
-
entryPointList
-
manualEntryPoints
boolean manualEntryPoints -
addFrame
-
sysName
-
sysNameFixed
-
userName
-
sysNameLabel
-
userNameLabel
-
_autoSystemName
-
pref
-
create
-
update
-
addBlock
-
deleteBlocks
-
layoutEditorBox
-
blockBox
-
forwardSensorBox
-
reverseSensorBox
-
forwardStopSensorBox
-
reverseStopSensorBox
-
manually
-
automatic
-
entryPointOptions
-
systemNameAuto
-
generationStateLabel
-
frame
-
-
Constructor Details
-
SectionTableAction
Create an action with a specific title.Note that the argument is the Action title, not the title of the resulting frame. Perhaps this should be changed?
- Parameters:
actionName- title of the action
-
SectionTableAction
public SectionTableAction()
-
-
Method Details
-
createModel
Create the JTable DataModel, along with the changes for the specific case of Section objects.- Specified by:
createModelin classAbstractTableAction<Section>
-
setTitle
Description copied from class:AbstractTableActionInclude the correct title.- Specified by:
setTitlein classAbstractTableAction<Section>
-
helpTarget
Description copied from class:AbstractTableActionSpecify the JavaHelp target for this specific panel.- Overrides:
helpTargetin classAbstractTableAction<Section>- Returns:
- a fixed default string "index" pointing to to highest level in JMRI Help
-
addPressed
Responds to the Add...button and the Edit buttons in the Section Table- Specified by:
addPressedin classAbstractTableAction<Section>- Parameters:
e- event which has triggered action
-
editPressed
-
addEditPressed
void addEditPressed() -
createPressed
-
handleCreateException
-
cancelPressed
-
updatePressed
-
deleteBlocksPressed
-
addBlockPressed
-
setMenuBar
Insert 2 table specific menus. Account for the Window and Help menus, which are already added to the menu bar as part of the creation of the JFrame, by adding the menus 2 places earlier unless the table is part of the ListedTableFrame, that adds the Help menu later on.- Overrides:
setMenuBarin classAbstractTableAction<Section>- Parameters:
f- the JFrame of this table
-
getClassName
- Specified by:
getClassNamein classAbstractTableAction<Section>
-
getClassDescription
- Overrides:
getClassDescriptionin classAbstractTableAction<Section>
-