Package jmri.jmrit.beantable
Class OBlockTableAction
- All Implemented Interfaces:
ActionListener,PropertyChangeListener,Serializable,Cloneable,EventListener,Action
public class OBlockTableAction
extends AbstractTableAction<OBlock>
implements PropertyChangeListener
GUI to define OBlocks, OPaths and Portals. Overrides some of the AbstractTableAction methods as this is a hybrid pane.
Relies on
TableFrames.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.jmrit.beantable.AbstractTableAction
AbstractTableAction.TableItem<E extends NamedBean> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean(package private) JmriJFrame(package private) JCheckBox(package private) BlockPortalTableModelprotected JPanelprotected JTabbedPaneprotected boolean(package private) JSpinnerprotected OBlockManager(package private) OBlockTableModel(package private) OBlockTableFrame(package private) OBlockTablePanel(package private) PortalEditFrameprotected PortalManager(package private) UserPreferencesManager(package private) JCheckBox(package private) SpinnerNumberModel(package private) SignalEditFrame(package private) SignalTableModel(package private) JTextField(package private) JLabel(package private) String(package private) TableFrames(package private) JTextFieldFields 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
ConstructorsConstructorDescriptionDefault constructorOBlockTableAction(String actionName) Create an action with a specific title. -
Method Summary
Modifier and TypeMethodDescriptionvoidOpen OBlock tables action handler.protected void(package private) voidprotected void(package private) voidvoidAllow subclasses to add to the frame without having to actually subclass the BeanTableDataFrame.(package private) voidprotected voidCreate the JTable DataModel, along with the extra stuff for this specific NamedBean type.(package private) voidRespond to Create new OBlock button pressed on Add OBlock pane.protected StringCreate or update the blockPathTableModel.getPanel()(package private) voidhandleCreateException(String sysName) protected StringSpecify the JavaHelp target for this specific panel.voidvoidsetManager(Manager<OBlock> om) Configure managers for all tabs on OBlocks table pane.voidAllow subclasses to alter the frame's Menubar without having to actually subclass the BeanTableDataFrame.voidprotected voidsetTitle()Include the correct title.(package private) voidMethods inherited from class jmri.jmrit.beantable.AbstractTableAction
addBottomButtons, addToFrame, addToPanel, columnsVisibleUpdated, configureManagerComboBox, configureTable, displayHwError, dispose, getDataModel, getFrame, getManager, getTableDataModel, includeAddButton, nextName, print, removePrefixBoxListener, setFrameMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
_tabbed
-
dataPanel
-
dataTabs
-
init
-
oblocks
-
signals
-
blockportals
-
oblockManager
-
portalManager
-
tf
-
otf
-
otp
-
portalFrame
-
signalFrame
-
startAddress
-
userName
-
rangeSpinner
-
numberToAddSpinner
-
rangeBox
-
autoSystemNameBox
-
statusBar
-
pref
-
addOBlockFrame
-
systemNameAuto
-
-
Constructor Details
-
OBlockTableAction
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
-
OBlockTableAction
public OBlockTableAction()Default constructor
-
-
Method Details
-
setManager
Configure managers for all tabs on OBlocks table pane.- Overrides:
setManagerin classAbstractTableAction<OBlock>- Parameters:
om- the manager to assign
-
addToFrame
Description copied from class:AbstractTableActionAllow subclasses to add to the frame without having to actually subclass the BeanTableDataFrame.- Overrides:
addToFramein classAbstractTableAction<OBlock>- Parameters:
f- the Frame to add to
-
actionPerformed
Open OBlock tables action handler.- Specified by:
actionPerformedin interfaceActionListener- Overrides:
actionPerformedin classAbstractTableAction<OBlock>- Parameters:
e- menu action- See Also:
-
createModel
Create the JTable DataModel, along with the extra stuff for this specific NamedBean type. Is directly called to prepare the Tables > OBlock Table entry in the left sidebar list, bypassing actionPerformed(a)- Specified by:
createModelin classAbstractTableAction<OBlock>
-
getPanel
- Overrides:
getPanelin classAbstractTableAction<OBlock>
-
setTitle
Include the correct title.- Specified by:
setTitlein classAbstractTableAction<OBlock>
-
setMenuBar
Description copied from class:AbstractTableActionAllow subclasses to alter the frame's Menubar without having to actually subclass the BeanTableDataFrame.- Overrides:
setMenuBarin classAbstractTableAction<OBlock>- Parameters:
f- the Frame to attach the menubar to
-
addPressed
- Specified by:
addPressedin classAbstractTableAction<OBlock>
-
addOBlockPressed
-
cancelObPressed
-
createObPressed
Respond to Create new OBlock button pressed on Add OBlock pane. Adapted fromMemoryTableAction.addPressed(ActionEvent)- Parameters:
e- the click event
-
addPortalPressed
-
addSignalPressed
-
handleCreateException
-
getClassName
Create or update the blockPathTableModel. Used in EditBlockPath pane. // * @param block to build a table for- Specified by:
getClassNamein classAbstractTableAction<OBlock>
-
getClassDescription
- Overrides:
getClassDescriptionin classAbstractTableAction<OBlock>
-
setMessagePreferencesDetails
- Overrides:
setMessagePreferencesDetailsin classAbstractTableAction<OBlock>
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
status
-
helpTarget
Description copied from class:AbstractTableActionSpecify the JavaHelp target for this specific panel.- Overrides:
helpTargetin classAbstractTableAction<OBlock>- Returns:
- a fixed default string "index" pointing to to highest level in JMRI Help
-