Package jmri.jmrit.roster
Class PrintRosterEntry
- java.lang.Object
- 
- jmri.jmrit.roster.PrintRosterEntry
 
- 
- All Implemented Interfaces:
- PaneContainer
 
 public class PrintRosterEntry extends java.lang.Object implements PaneContainer 
- 
- 
Field SummaryFields Modifier and Type Field Description (package private) FunctionLabelPane_flPane(package private) java.util.List<javax.swing.JPanel>_paneListList ofPaneProgPaneJPanels.(package private) JmriJFrame_parent(package private) RosterMediaPane_rMPane(package private) RosterEntry_rosterEntry
 - 
Constructor SummaryConstructors Constructor Description PrintRosterEntry(RosterEntry rosterEntry, java.util.List<javax.swing.JPanel> paneList, FunctionLabelPane flPane, RosterMediaPane rMPane, JmriJFrame parent)Configure variable fields and create a PrintRosterEntry instance while doing so.PrintRosterEntry(RosterEntry rosterEntry, JmriJFrame parent, java.lang.String programmerFilename)Constructor for a Print roster item (programmer tabs) selection pane from an XML definition file.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoPrintPanes(boolean preview)Write a series of 'pages' to graphic output using HardcopyWriter.voidenableButtons(boolean enable)Enable the read/write buttons.BusyGlassPanegetBusyGlassPane()booleanisBusy()voidpaneFinished()voidprepGlassPane(javax.swing.AbstractButton activeButton)voidprintInfoSection(HardcopyWriter w)Write the page header to graphic output, using HardcopyWriter w.voidprintPanes(boolean preview)Create and display a pane to the user to select which Programmer tabs to include in printout.
 
- 
- 
- 
Field Detail- 
_rosterEntryRosterEntry _rosterEntry 
 - 
_paneListjava.util.List<javax.swing.JPanel> _paneList List ofPaneProgPaneJPanels. Built up at line 150 or passed as argument paneList in line 188 via {link #PrintRosterEntry(RosterEntry, List, FunctionLabelPane, RosterMediaPane, JmriJFrame)}
 - 
_flPaneFunctionLabelPane _flPane 
 - 
_rMPaneRosterMediaPane _rMPane 
 - 
_parentJmriJFrame _parent 
 
- 
 - 
Constructor Detail- 
PrintRosterEntrypublic PrintRosterEntry(RosterEntry rosterEntry, JmriJFrame parent, java.lang.String programmerFilename) Constructor for a Print roster item (programmer tabs) selection pane from an XML definition file. Includes <pane> elements (tabs) from Programmer (generic) as well as rosterEntry decoder.xml Called from RosterFrame > PreviewAll context menu.- Parameters:
- rosterEntry- Roster item, either as a selection or object
- parent- window over which this dialog will be centered
- programmerFilename- xml file name for programmer used in printing.
 
 - 
PrintRosterEntrypublic PrintRosterEntry(RosterEntry rosterEntry, java.util.List<javax.swing.JPanel> paneList, FunctionLabelPane flPane, RosterMediaPane rMPane, JmriJFrame parent) Configure variable fields and create a PrintRosterEntry instance while doing so. Includes all (visible) Roster Entry programmer <pane> elements (tabs).- Parameters:
- rosterEntry- an item in the Roster
- paneList- list of programmer tabs, including all properties
- flPane- extra pane w/checkbox to select printing of "Function List"
- rMPane- pane containing roster media (image)
- parent- window over which this dialog will be centered
 
 
- 
 - 
Method Detail- 
getBusyGlassPanepublic BusyGlassPane getBusyGlassPane() - Specified by:
- getBusyGlassPanein interface- PaneContainer
 
 - 
prepGlassPanepublic void prepGlassPane(javax.swing.AbstractButton activeButton) - Specified by:
- prepGlassPanein interface- PaneContainer
 
 - 
enableButtonspublic void enableButtons(boolean enable) Description copied from interface:PaneContainerEnable the read/write buttons.In addition, if a programming mode pane is present, it's "set" button is enabled. - Specified by:
- enableButtonsin interface- PaneContainer
- Parameters:
- enable- Are reads possible? If false, so not enable the read buttons.
 
 - 
paneFinishedpublic void paneFinished() - Specified by:
- paneFinishedin interface- PaneContainer
 
 - 
isBusypublic boolean isBusy() - Specified by:
- isBusyin interface- PaneContainer
 
 - 
doPrintPanespublic void doPrintPanes(boolean preview) Write a series of 'pages' to graphic output using HardcopyWriter.- Parameters:
- preview- true if output should go to the Preview panel, false to output to a printer
 
 - 
printPanespublic void printPanes(boolean preview) Create and display a pane to the user to select which Programmer tabs to include in printout.- Parameters:
- preview- true if output should go to a Preview pane on screen, false to output to a printer (dialog)
 
 - 
printInfoSectionpublic void printInfoSection(HardcopyWriter w) Write the page header to graphic output, using HardcopyWriter w.Includes the DecoderPro logo image at top right. - Parameters:
- w- the active HardcopyWriter instance to be used
 
 
- 
 
-