Package apps.gui3.dp3
Class PaneProgDp3Action
java.lang.Object
javax.swing.AbstractAction
jmri.util.swing.JmriAbstractAction
apps.gui3.dp3.PaneProgDp3Action
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action,PaneContainer,ProgListener
Swing action to create and register a frame for selecting the information
needed to open a PaneProgFrame in service mode.
The class name is a historical accident, and probably should have included "ServiceMode" or something.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) EnumVariableValue(package private) String(package private) CombinedLocoSelTreePane(package private) int(package private) int(package private) int(package private) int(package private) int(package private) CvTableModel(package private) DccAddressPanel(package private) DecoderFile(package private) VariableValue(package private) JmriJFrame(package private) String(package private) int(package private) boolean(package private) org.jdom2.Element(package private) final ProgModeSelector(package private) Programmer(package private) String(package private) Object(package private) Object(package private) Object(package private) Object(package private) VariableValue(package private) PaneProgDp3Action.ThisProgPane(package private) RosterEntry(package private) JTextField(package private) JTextField(package private) JPanel(package private) JButton(package private) boolean(package private) JLabel(package private) int(package private) VariableTableModelFields inherited from class jmri.util.swing.JmriAbstractAction
context, hint, wiFields 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_ICONFields inherited from interface jmri.ProgListener
CommError, ConfirmFailed, FailedTimeout, NoAck, NoLocoDetected, NotImplemented, OK, ProgrammerBusy, ProgrammingShort, SequenceError, UnknownError, UserAborted -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid(package private) booleanvoidenableButtons(boolean enable) Enable the read/write buttons.(package private) void(package private) void(package private) voidinit()booleanisBusy()voidvoidprepGlassPane(AbstractButton activeButton) voidprogrammingOpReply(int value, int status) Receive a callback at the end of a programming operation.protected void(package private) void(package private) void(package private) voidMethods inherited from class jmri.util.swing.JmriAbstractAction
dispose, setContext, setHint, setName, setParameter, setParameter, setWindowInterface, toStringMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
o1
-
o2
-
o3
-
o4
-
statusLabel
-
modePane
-
f
-
combinedLocoSelTree
-
lastSelectedProgrammer
-
rosterIdField
-
rosterAddressField
-
re
-
teststatus
int teststatus -
decoderFile
-
shortAddr
boolean shortAddr -
cv29
int cv29 -
cv17
int cv17 -
cv18
int cv18 -
cv19
int cv19 -
cv1
int cv1 -
longAddress
int longAddress -
address
-
rosterPanel
-
mProgrammer
-
cvModel
-
variableModel
-
dccAddressPanel
-
modelElem
org.jdom2.Element modelElem -
progPane
-
longMode
boolean longMode -
newAddr
-
saveBasicRoster
-
-
extendAddr
-
addMode
-
-
Constructor Details
-
PaneProgDp3Action
-
PaneProgDp3Action
-
PaneProgDp3Action
public PaneProgDp3Action() -
PaneProgDp3Action
-
-
Method Details
-
init
void init() -
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener- Overrides:
actionPerformedin classJmriAbstractAction
-
makePanel
- Specified by:
makePanelin classJmriAbstractAction
-
findDecoderAddress
void findDecoderAddress() -
programmingOpReply
Description copied from interface:ProgListenerReceive a callback at the end of a programming operation.- Specified by:
programmingOpReplyin interfaceProgListener- Parameters:
value- Value from a read operation, or value written on a writestatus- Denotes the completion code. Note that this is a bitwise combination of the various status coded defined in this interface.
-
finishRead
void finishRead() -
readCV
-
setUpRosterPanel
void setUpRosterPanel() -
updateDccAddress
void updateDccAddress() -
checkDuplicate
boolean checkDuplicate()- Returns:
- true if the value in the id JTextField is a duplicate of some other RosterEntry in the roster
-
saveRosterEntry
- Throws:
JmriException
-
isBusy
- Specified by:
isBusyin interfacePaneContainer
-
paneFinished
- Specified by:
paneFinishedin interfacePaneContainer
-
enableButtons
Enable the read/write buttons.In addition, if a programming mode pane is present, its "set" button is enabled.
- Specified by:
enableButtonsin interfacePaneContainer- Parameters:
enable- Are reads possible? If false, so not enable the read buttons.
-
prepGlassPane
- Specified by:
prepGlassPanein interfacePaneContainer
-
getBusyGlassPane
- Specified by:
getBusyGlassPanein interfacePaneContainer
-