Class PaneSet
- java.lang.Object
-
- jmri.jmrit.symbolicprog.tabbedframe.PaneSet
-
public class PaneSet extends java.lang.Object
Interface for the container of a set of PaneProgPanes. The panes use services provided here to work with buttons and the busy cursor.TODO: Several methods are copied from PaneProgFrame and should be refactored No programmer support yet No glass pane support Need better support for visible/non-visible panes Special panes (Roster entry, attributes, graphics) not included
- See Also:
DecoderPro3Window
-
-
Field Summary
Fields Modifier and Type Field Description (package private) PaneContainer
container
(package private) CvTableModel
cvModel
(package private) org.jdom2.Element
decoderRoot
(package private) org.jdom2.Element
modelElem
The 'model' element representing the decoder type(package private) Programmer
mProgrammer
(package private) java.util.List<PaneProgPane>
paneList
(package private) javax.swing.JLabel
progStatus
(package private) ResetTableModel
resetModel
(package private) VariableTableModel
variableModel
-
Constructor Summary
Constructors Constructor Description PaneSet(PaneContainer container, RosterEntry re, Programmer programmer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<PaneProgPane>
getList()
protected void
loadDecoderFile(DecoderFile df, RosterEntry re)
protected void
loadDecoderFromLoco(RosterEntry r)
void
makePanes(org.jdom2.Element root, RosterEntry r)
Create a set of panes from a programmer definition and roster entryvoid
newPane(java.lang.String name, org.jdom2.Element pane, org.jdom2.Element modelElem, RosterEntry r)
Create a single pane from a "pane" element in programmer or decoder definitionvoid
storeFile(RosterEntry re)
Store current content to file.
-
-
-
Field Detail
-
paneList
java.util.List<PaneProgPane> paneList
-
container
PaneContainer container
-
mProgrammer
Programmer mProgrammer
-
cvModel
CvTableModel cvModel
-
variableModel
VariableTableModel variableModel
-
resetModel
ResetTableModel resetModel
-
progStatus
javax.swing.JLabel progStatus
-
modelElem
org.jdom2.Element modelElem
The 'model' element representing the decoder type
-
decoderRoot
org.jdom2.Element decoderRoot
-
-
Constructor Detail
-
PaneSet
public PaneSet(PaneContainer container, RosterEntry re, Programmer programmer)
-
-
Method Detail
-
loadDecoderFromLoco
protected void loadDecoderFromLoco(RosterEntry r)
-
loadDecoderFile
protected void loadDecoderFile(DecoderFile df, RosterEntry re)
-
makePanes
public void makePanes(org.jdom2.Element root, RosterEntry r)
Create a set of panes from a programmer definition and roster entry- Parameters:
root
- Root element of programmer XML definitionr
- Locomotive to load from
-
newPane
public void newPane(java.lang.String name, org.jdom2.Element pane, org.jdom2.Element modelElem, RosterEntry r)
Create a single pane from a "pane" element in programmer or decoder definition- Parameters:
name
- pane name.pane
- pane element.modelElem
- model element.r
- roster entry.
-
getList
public java.util.List<PaneProgPane> getList()
-
storeFile
public void storeFile(RosterEntry re)
Store current content to file.- Parameters:
re
- roster entry to store.
-
-