|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
com.jrefinery.report.preview.PlainTextExportDialog
A dialog that is used to export reports to plain text.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JDialog |
javax.swing.JDialog.AccessibleJDialog |
| Nested classes inherited from class java.awt.Dialog |
java.awt.Dialog.AccessibleAWTDialog |
| Nested classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
static java.lang.String |
BASE_RESOURCE_CLASS
The base resource class. |
static java.lang.Integer |
CPI_10
10 characters per inch. |
static java.lang.Integer |
CPI_12
12 characters per inch. |
static java.lang.Integer |
CPI_15
15 characters per inch. |
static java.lang.Integer |
CPI_17
17 characters per inch. |
static java.lang.Integer |
CPI_20
20 characters per inch. |
static java.lang.Integer |
LPI_10
10 lines per inch. |
static java.lang.Integer |
LPI_6
6 lines per inch. |
static int |
TYPE_EPSON_OUTPUT
Epson printer output. |
static int |
TYPE_IBM_OUTPUT
IBM printer output. |
static int |
TYPE_PLAIN_OUTPUT
Plain text output. |
| Fields inherited from class javax.swing.JDialog |
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
PlainTextExportDialog()
Creates a non-modal dialog without a title and without a specified Frame owner. |
|
PlainTextExportDialog(java.awt.Dialog owner)
Creates a non-modal dialog without a title with the specifed Dialog as its owner. |
|
PlainTextExportDialog(java.awt.Frame owner)
Creates a non-modal dialog without a title with the specifed Frame as its owner. |
|
| Method Summary | |
void |
clear()
clears all selections, input fields and set the selected encryption level to none. |
javax.swing.KeyStroke |
getAcceleratorKey()
Returns the accelerator key. |
int |
getCharsPerInch()
Returns the characters-per-inch setting. |
java.lang.String |
getDisplayName()
Returns the display name for the action. |
java.lang.String |
getEncoding()
Returns the encoding. |
java.lang.String |
getFilename()
Returns the filename. |
javax.swing.Icon |
getLargeIcon()
Returns the large icon for an action. |
int |
getLinesPerInch()
Returns the lines-per-inch setting. |
java.lang.Integer |
getMnemonicKey()
Returns the mnemonic key. |
int |
getSelectedPrinter()
Returns the selected printer. |
java.lang.String |
getShortDescription()
Returns the short description for the action. |
javax.swing.Icon |
getSmallIcon()
Returns the small icon for the action. |
void |
initFromConfiguration(ReportConfiguration config)
Initialises the CSV export dialog from the settings in the report configuration. |
boolean |
isAddToToolbar()
Returns false. |
boolean |
isConfirmed()
Gets the confirmation state of the dialog. |
boolean |
isSeparated()
Returns false. |
static void |
main(java.lang.String[] args)
For debugging. |
boolean |
performExport(JFreeReport report)
Exports a report to a text file. |
protected void |
performSelectFile()
Selects a file to use as target for the report processing. |
boolean |
performValidate()
Validates the contents of the dialog's input fields. |
void |
setCharsPerInch(int i)
Sets the characters per inch. |
protected void |
setConfirmed(boolean confirmed)
Defines whether this dialog has been finished using the 'OK' or the 'Cancel' option. |
void |
setEncoding(java.lang.String encoding)
Sets the encoding. |
void |
setFilename(java.lang.String filename)
Defines the filename of the file. |
void |
setLinesPerInch(int i)
Sets the lines per inch. |
void |
setSelectedPrinter(int type)
Sets the selected printer. |
boolean |
writeReport(JFreeReport report)
Writes a report. |
| Methods inherited from class javax.swing.JDialog |
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
| Methods inherited from class java.awt.Dialog |
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
| Methods inherited from class java.awt.Window |
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int TYPE_PLAIN_OUTPUT
public static final int TYPE_EPSON_OUTPUT
public static final int TYPE_IBM_OUTPUT
public static final java.lang.Integer LPI_6
public static final java.lang.Integer LPI_10
public static final java.lang.Integer CPI_10
public static final java.lang.Integer CPI_12
public static final java.lang.Integer CPI_15
public static final java.lang.Integer CPI_17
public static final java.lang.Integer CPI_20
public static final java.lang.String BASE_RESOURCE_CLASS
| Constructor Detail |
public PlainTextExportDialog()
public PlainTextExportDialog(java.awt.Frame owner)
owner - the Frame from which the dialog is displayedpublic PlainTextExportDialog(java.awt.Dialog owner)
owner - the Dialog from which the dialog is displayed| Method Detail |
public void setSelectedPrinter(int type)
type - the type.public int getSelectedPrinter()
public java.lang.String getFilename()
public void setFilename(java.lang.String filename)
filename - the filename of the filepublic boolean isConfirmed()
protected void setConfirmed(boolean confirmed)
confirmed - set to true, if OK was pressed, false otherwisepublic void clear()
public int getLinesPerInch()
public void setLinesPerInch(int i)
i - the lines per inch.public int getCharsPerInch()
public void setCharsPerInch(int i)
i - the characters per inch.public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
encoding - the encoding.public void initFromConfiguration(ReportConfiguration config)
config - the report configuration.public boolean performExport(JFreeReport report)
report - the report.
public boolean writeReport(JFreeReport report)
report - the report.
public java.lang.String getDisplayName()
public java.lang.String getShortDescription()
public javax.swing.Icon getSmallIcon()
public javax.swing.Icon getLargeIcon()
public javax.swing.KeyStroke getAcceleratorKey()
public java.lang.Integer getMnemonicKey()
public boolean isSeparated()
false.
public boolean isAddToToolbar()
false.
protected void performSelectFile()
public boolean performValidate()
public static void main(java.lang.String[] args)
args - ignored.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||