public class CreateMenuBar
extends java.lang.Object
Klasse zum Anlegen der Menüleiste.
Modifier and Type | Class and Description |
---|---|
(package private) class |
CreateMenuBar.MyFileNameExtensionFilter
Eine eigene Klasse, die analog zu FileNameExtensionFilter funktioniert, welche aber erst ab Java 1.6 vorhanden ist.
|
private class |
CreateMenuBar.PageDescription |
Modifier and Type | Field and Description |
---|---|
private boolean |
_archive |
private Aspect |
_aspect |
private AttributeGroup |
_attributeGroup |
private ClientDavInterface |
_connection |
private DataDescription |
_dataDescription |
private DataViewModel |
_dataViewModel |
private DataViewPanel |
_dataViewPanel |
private javax.swing.JFrame |
_frame |
private javax.swing.JCheckBoxMenuItem |
_highlightSelectionButton |
private javax.swing.JRadioButtonMenuItem |
_isoEncoding |
private javax.swing.JRadioButtonMenuItem |
_macEncoding |
private PrintFrame |
_printFrame |
private javax.swing.JCheckBoxMenuItem |
_printPreviewInVisibleRegion |
private javax.swing.JCheckBoxMenuItem |
_rowHeaderButtonForClipboard |
private javax.swing.JCheckBoxMenuItem |
_rowHeaderButtonForCSVExport |
Constructor and Description |
---|
CreateMenuBar(javax.swing.JFrame frame,
DataViewModel dataViewModel,
AttributeGroup attributeGroup,
Aspect aspect,
DataViewPanel dataViewPanel,
ClientDavInterface connection,
DataDescription dataDescription,
boolean archive) |
Modifier and Type | Method and Description |
---|---|
private void |
copySelectionToClipboard(SelectionManager selectionManager) |
private void |
createDummyMenuBar() |
void |
createMenuBar(SelectionManager selectionManager) |
private java.io.File |
getCSVFileForExport() |
private void |
initPrintFrame(boolean selectedDataTableObjectsOnly)
Das hier ist keine Software, auf die man stolz sein kann; dies ist schlicht ein funktionaler Anbau, damit das Drucken klappt, wobei möglichst wenig der bestehenden Software geändert werden sollte.
|
private void |
print(java.awt.print.PrinterJob printerJob,
javax.print.attribute.PrintRequestAttributeSet printAttributes) |
void |
printEverything(boolean selectedDataTableObjectsOnly) |
private void |
saveAsCSV(java.io.File csvFile,
CSVManager csvManager) |
private void |
saveEverythingAsCSV() |
private void |
saveSelectionAsCSV(SelectionManager selectionManager) |
private PrintFrame _printFrame
private final javax.swing.JCheckBoxMenuItem _highlightSelectionButton
private final javax.swing.JCheckBoxMenuItem _printPreviewInVisibleRegion
private final javax.swing.JCheckBoxMenuItem _rowHeaderButtonForCSVExport
private final javax.swing.JCheckBoxMenuItem _rowHeaderButtonForClipboard
private final javax.swing.JRadioButtonMenuItem _isoEncoding
private final javax.swing.JRadioButtonMenuItem _macEncoding
private javax.swing.JFrame _frame
private DataViewModel _dataViewModel
private AttributeGroup _attributeGroup
private Aspect _aspect
private DataViewPanel _dataViewPanel
private ClientDavInterface _connection
private DataDescription _dataDescription
private boolean _archive
public CreateMenuBar(javax.swing.JFrame frame, DataViewModel dataViewModel, AttributeGroup attributeGroup, Aspect aspect, DataViewPanel dataViewPanel, ClientDavInterface connection, DataDescription dataDescription, boolean archive)
public void createMenuBar(SelectionManager selectionManager)
private void createDummyMenuBar()
private java.io.File getCSVFileForExport()
private void saveAsCSV(java.io.File csvFile, CSVManager csvManager)
private void saveEverythingAsCSV()
private void saveSelectionAsCSV(SelectionManager selectionManager)
private void copySelectionToClipboard(SelectionManager selectionManager)
public void printEverything(boolean selectedDataTableObjectsOnly)
private void print(java.awt.print.PrinterJob printerJob, javax.print.attribute.PrintRequestAttributeSet printAttributes)
private void initPrintFrame(boolean selectedDataTableObjectsOnly)
Das hier ist keine Software, auf die man stolz sein kann; dies ist schlicht ein funktionaler Anbau, damit das Drucken klappt, wobei möglichst wenig der bestehenden Software geändert werden sollte.