Package apps.gui3.dp3
Class PaneProgDp3Action
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.util.swing.JmriAbstractAction
-
- apps.gui3.dp3.PaneProgDp3Action
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
,PaneContainer
,ProgListener
public class PaneProgDp3Action extends JmriAbstractAction implements ProgListener, PaneContainer
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:
PaneOpsProgAction
, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
PaneProgDp3Action.ThisProgPane
-
Field Summary
Fields Modifier and Type Field Description (package private) EnumVariableValue
addMode
(package private) java.lang.String
address
(package private) CombinedLocoSelTreePane
combinedLocoSelTree
(package private) int
cv1
(package private) int
cv17
(package private) int
cv18
(package private) int
cv19
(package private) int
cv29
(package private) CvTableModel
cvModel
(package private) DccAddressPanel
dccAddressPanel
(package private) DecoderFile
decoderFile
(package private) VariableValue
extendAddr
(package private) JmriJFrame
f
(package private) java.lang.String
lastSelectedProgrammer
(package private) int
longAddress
(package private) boolean
longMode
(package private) org.jdom2.Element
modelElem
(package private) ProgModeSelector
modePane
(package private) Programmer
mProgrammer
(package private) java.lang.String
newAddr
(package private) java.lang.Object
o1
(package private) java.lang.Object
o2
(package private) java.lang.Object
o3
(package private) java.lang.Object
o4
(package private) VariableValue
primaryAddr
(package private) PaneProgDp3Action.ThisProgPane
progPane
(package private) RosterEntry
re
(package private) javax.swing.JTextField
rosterAddressField
(package private) javax.swing.JTextField
rosterIdField
(package private) javax.swing.JPanel
rosterPanel
(package private) javax.swing.JButton
saveBasicRoster
(package private) boolean
shortAddr
(package private) javax.swing.JLabel
statusLabel
(package private) int
teststatus
(package private) VariableTableModel
variableModel
-
Fields inherited from class jmri.util.swing.JmriAbstractAction
context, hint, wi
-
Fields 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
-
Fields inherited from interface jmri.ProgListener
CommError, ConfirmFailed, FailedTimeout, NoAck, NoLocoDetected, NotImplemented, OK, ProgrammerBusy, ProgrammingShort, SequenceError, UnknownError, UserAborted
-
-
Constructor Summary
Constructors Constructor Description PaneProgDp3Action()
PaneProgDp3Action(java.lang.String s)
PaneProgDp3Action(java.lang.String s, javax.swing.Icon i, WindowInterface wi)
PaneProgDp3Action(java.lang.String s, WindowInterface wi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
(package private) boolean
checkDuplicate()
void
enableButtons(boolean enable)
Enable the read/write buttons.(package private) void
findDecoderAddress()
(package private) void
finishRead()
BusyGlassPane
getBusyGlassPane()
(package private) void
init()
boolean
isBusy()
JmriPanel
makePanel()
void
paneFinished()
void
prepGlassPane(javax.swing.AbstractButton activeButton)
void
programmingOpReply(int value, int status)
Receive a callback at the end of a programming operation.protected void
readCV(java.lang.String cv)
(package private) void
saveRosterEntry()
(package private) void
setUpRosterPanel()
(package private) void
updateDccAddress()
-
Methods inherited from class jmri.util.swing.JmriAbstractAction
dispose, setContext, setHint, setName, setParameter, setParameter, setWindowInterface, toString
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
o1
java.lang.Object o1
-
o2
java.lang.Object o2
-
o3
java.lang.Object o3
-
o4
java.lang.Object o4
-
statusLabel
javax.swing.JLabel statusLabel
-
modePane
final ProgModeSelector modePane
-
f
JmriJFrame f
-
combinedLocoSelTree
CombinedLocoSelTreePane combinedLocoSelTree
-
lastSelectedProgrammer
java.lang.String lastSelectedProgrammer
-
rosterIdField
javax.swing.JTextField rosterIdField
-
rosterAddressField
javax.swing.JTextField rosterAddressField
-
re
RosterEntry re
-
teststatus
int teststatus
-
decoderFile
DecoderFile decoderFile
-
shortAddr
boolean shortAddr
-
cv29
int cv29
-
cv17
int cv17
-
cv18
int cv18
-
cv19
int cv19
-
cv1
int cv1
-
longAddress
int longAddress
-
address
java.lang.String address
-
rosterPanel
javax.swing.JPanel rosterPanel
-
mProgrammer
Programmer mProgrammer
-
cvModel
CvTableModel cvModel
-
variableModel
VariableTableModel variableModel
-
dccAddressPanel
DccAddressPanel dccAddressPanel
-
modelElem
org.jdom2.Element modelElem
-
progPane
PaneProgDp3Action.ThisProgPane progPane
-
longMode
boolean longMode
-
newAddr
java.lang.String newAddr
-
saveBasicRoster
javax.swing.JButton saveBasicRoster
-
primaryAddr
VariableValue primaryAddr
-
extendAddr
VariableValue extendAddr
-
addMode
EnumVariableValue addMode
-
-
Constructor Detail
-
PaneProgDp3Action
public PaneProgDp3Action(java.lang.String s, WindowInterface wi)
-
PaneProgDp3Action
public PaneProgDp3Action(java.lang.String s, javax.swing.Icon i, WindowInterface wi)
-
PaneProgDp3Action
public PaneProgDp3Action()
-
PaneProgDp3Action
public PaneProgDp3Action(java.lang.String s)
-
-
Method Detail
-
init
void init()
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
- Overrides:
actionPerformed
in classJmriAbstractAction
-
makePanel
public JmriPanel makePanel()
- Specified by:
makePanel
in classJmriAbstractAction
-
findDecoderAddress
void findDecoderAddress()
-
programmingOpReply
public void programmingOpReply(int value, int status)
Description copied from interface:ProgListener
Receive a callback at the end of a programming operation.- Specified by:
programmingOpReply
in 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
protected void readCV(java.lang.String cv)
-
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
void saveRosterEntry() throws JmriException
- Throws:
JmriException
-
isBusy
public boolean isBusy()
- Specified by:
isBusy
in interfacePaneContainer
-
paneFinished
public void paneFinished()
- Specified by:
paneFinished
in interfacePaneContainer
-
enableButtons
public void enableButtons(boolean enable)
Enable the read/write buttons.In addition, if a programming mode pane is present, its "set" button is enabled.
- Specified by:
enableButtons
in interfacePaneContainer
- Parameters:
enable
- Are reads possible? If false, so not enable the read buttons.
-
prepGlassPane
public void prepGlassPane(javax.swing.AbstractButton activeButton)
- Specified by:
prepGlassPane
in interfacePaneContainer
-
getBusyGlassPane
public BusyGlassPane getBusyGlassPane()
- Specified by:
getBusyGlassPane
in interfacePaneContainer
-
-