|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--com.jrefinery.report.preview.PreviewProxyBase
A preview proxy.
Nested Class Summary | |
protected class |
PreviewProxyBase.ZoomSetAction
A zoom set action. |
Field Summary | |
static java.lang.String |
BASE_RESOURCE_CLASS
The base class for localised resources. |
static int |
DEFAULT_REPORT_PANE_HEIGHT
The default height of the report pane. |
static int |
DEFAULT_REPORT_PANE_WIDTH
The default width of the report pane. |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
PreviewProxyBase(PreviewProxy proxy)
Creates a preview proxy. |
Method Summary | |
protected javax.swing.JButton |
createButton(javax.swing.Action action)
Creates a button using the given action properties for the button's initialisation. |
protected javax.swing.Action |
createDefaultAboutAction()
Creates the AboutAction used in this previewframe. |
protected javax.swing.Action |
createDefaultFirstPageAction()
Creates the FirstPageAction used in this previewframe. |
protected javax.swing.Action |
createDefaultGotoAction()
Creates the GotoPageAction used in this previewframe. |
protected javax.swing.Action |
createDefaultLastPageAction()
Creates the LastPageAction used in this previewframe. |
protected javax.swing.Action |
createDefaultNextPageAction()
Creates the NextPageAction used in this previewframe. |
protected javax.swing.Action |
createDefaultPreviousPageAction()
Creates the PreviousPageAction used in this previewframe. |
protected javax.swing.Action |
createDefaultZoomInAction()
Creates the ZoomInAction used in this previewframe. |
protected javax.swing.Action |
createDefaultZoomOutAction()
Creates the ZoomOutAction used in this previewframe. |
protected javax.swing.JMenuBar |
createMenuBar()
Creates and returns a menu-bar for the frame. |
protected javax.swing.JMenuItem |
createMenuItem(javax.swing.Action action)
Creates a menu item based on the supplied action. |
protected ReportPane |
createReportPane(JFreeReport report)
Creates the ReportPane for the report. |
protected com.jrefinery.report.preview.PreviewProxyBase.ReportPanePropertyChangeListener |
createReportPanePropertyChangeListener()
Creates a report pane listener. |
protected javax.swing.JPanel |
createStatusBar()
Creates the statusbar for this frame. |
protected javax.swing.JToolBar |
createToolBar()
Creates and returns a toolbar containing controls for print, page forward and backward, zoom in and out, and an about box. |
protected javax.swing.JComponent |
createZoomPane()
Creates a panel containing a combobox with available zoom-values. |
protected javax.swing.Action |
createZoomSelectAction()
Creates a zoom select action. |
protected void |
decreasePageNumber()
Decreases the page number. |
protected void |
decreaseZoom()
Decreases the zoom factor for the report pane (unless it is already at the minimum zoom). |
protected void |
disableButtons()
Disables the buttons. |
void |
dispose()
Disposes the preview frame. |
protected void |
firstPage()
Activates the display of the first page, if not already on the first page. |
javax.swing.Action |
getAboutAction()
Returns the 'About' action. |
javax.swing.Action |
getCloseAction()
Returns the 'Close' action. |
javax.swing.Action |
getFirstPageAction()
Returns the 'First Page' action. |
javax.swing.Action |
getGotoAction()
Returns the 'Goto' action. |
javax.swing.Action |
getLastPageAction()
Returns the 'Last Page' action. |
java.awt.Dimension |
getMaximumSize()
Returns the maximum size of this container. |
javax.swing.Action |
getNextPageAction()
Returns the 'Next Page' action. |
protected java.awt.print.Pageable |
getPageable()
Returns the report pane, which implements the Pageable interface. |
java.awt.Dimension |
getPreferredSize()
Returns the preferred size of this container. |
javax.swing.Action |
getPreviousPageAction()
Returns the 'Previous Page' action. |
protected java.awt.print.Printable |
getPrintable()
Returns the report pane, which implements the Printable interface. |
java.util.ResourceBundle |
getResources()
Retrieves the resources for this PreviewFrame. |
java.lang.String |
getStatusText()
Returns the status label used to display the text. |
protected Worker |
getWorker()
Returns the worker. |
float |
getZoomFactor()
Returns the current zoom factor. |
javax.swing.Action |
getZoomInAction()
Returns the 'Zoom In' action. |
javax.swing.Action |
getZoomOutAction()
Returns the 'Zoom Out' action. |
protected void |
increasePageNumber()
Increases the page number. |
protected void |
increaseZoom()
Increases the zoom factor for the report pane (unless it is already at maximum zoom). |
void |
init(JFreeReport report)
Initialises the preview dialog. |
boolean |
isLargeIconsEnabled()
Returns true if large icons are enabled for the toolbar. |
boolean |
isToolbarFloatable()
Returns true, if the toolbar is floatable, false otherwise. |
protected void |
lastPage()
Method lastPage moves to the last page. |
void |
performPagination()
Paginates the report. |
protected void |
registerAction(javax.swing.Action action)
Checks whether this action has a keystroke assigned. |
void |
setAboutAction(javax.swing.Action aboutAction)
Sets the 'About' action. |
void |
setCloseAction(javax.swing.Action closeAction)
Sets the 'Close' action. |
void |
setFirstPageAction(javax.swing.Action firstPageAction)
Sets the 'First Page' action. |
void |
setGotoAction(javax.swing.Action gotoAction)
Sets the 'Goto' action. |
void |
setLargeIconsEnabled(boolean b)
Sets a flag that controls whether or not large icons are used in the toolbar. |
void |
setLastPageAction(javax.swing.Action lastPageAction)
Sets the 'Last Page' action. |
void |
setMaximumSize(java.awt.Dimension maximumSize)
defines the maximum size of this container. |
void |
setNextPageAction(javax.swing.Action nextPageAction)
Sets the 'Next Page' action. |
void |
setPreferredSize(java.awt.Dimension preferredSize)
defines the preferred size of this container. |
void |
setPreviousPageAction(javax.swing.Action previousPageAction)
Sets the 'Previous Page' action. |
void |
setStatusText(java.lang.String text)
|
void |
setToolbarFloatable(boolean b)
Defines whether the toolbar is floatable. |
void |
setZoomFactor(int index)
Sets the zoomfactor of the report pane. |
void |
setZoomInAction(javax.swing.Action zoomInAction)
Sets the 'Zoom In' action. |
void |
setZoomOutAction(javax.swing.Action zoomOutAction)
Sets the 'Zoom Out' action. |
protected void |
showExceptionDialog(java.lang.String localisationBase,
java.lang.Exception e)
Shows the exception dialog by using localized messages. |
void |
updatePageFormat(java.awt.print.PageFormat pf)
Updates the pageformat of the ReportPane. |
protected void |
validateButtons()
Updates the states of all buttons to reflect the state of the assigned ReportPane. |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMinimumSize, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMinimumSize, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int DEFAULT_REPORT_PANE_WIDTH
public static final int DEFAULT_REPORT_PANE_HEIGHT
public static final java.lang.String BASE_RESOURCE_CLASS
Constructor Detail |
public PreviewProxyBase(PreviewProxy proxy)
proxy
- the proxy.Method Detail |
protected Worker getWorker()
public void init(JFreeReport report) throws ReportProcessingException
report
- the report.
ReportProcessingException
- if there is a problem processing the report.public java.awt.Dimension getMaximumSize()
getMaximumSize
in class javax.swing.JComponent
getPreferredSize()
public void setMaximumSize(java.awt.Dimension maximumSize)
setMaximumSize
in class javax.swing.JComponent
maximumSize
- the maximum size of the dialogsetPreferredSize(java.awt.Dimension)
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class javax.swing.JComponent
Dimension
that represents
the preferred size of this container.JComponent.getMinimumSize()
,
Container.getLayout()
,
LayoutManager.preferredLayoutSize(java.awt.Container)
,
Component.getPreferredSize()
public void setPreferredSize(java.awt.Dimension preferredSize)
setPreferredSize
in class javax.swing.JComponent
preferredSize
- defines the preferred size for the PreviewComponent.setPreferredSize(java.awt.Dimension)
protected com.jrefinery.report.preview.PreviewProxyBase.ReportPanePropertyChangeListener createReportPanePropertyChangeListener()
protected ReportPane createReportPane(JFreeReport report) throws ReportProcessingException
report
- the report for this pane.
ReportProcessingException
- if there is a problem processing the report.public java.util.ResourceBundle getResources()
public float getZoomFactor()
protected java.awt.print.Pageable getPageable()
protected java.awt.print.Printable getPrintable()
protected void showExceptionDialog(java.lang.String localisationBase, java.lang.Exception e)
localisationBase
- the resource key prefix.e
- the exception.protected void lastPage()
protected void increasePageNumber()
protected void firstPage()
protected void decreasePageNumber()
protected void increaseZoom()
protected void decreaseZoom()
public void setZoomFactor(int index)
index
- the index into the array of standard zoom factors.protected void registerAction(javax.swing.Action action)
action
- the action.protected javax.swing.Action createDefaultNextPageAction()
protected javax.swing.Action createDefaultPreviousPageAction()
protected javax.swing.Action createDefaultZoomInAction()
protected javax.swing.Action createDefaultZoomOutAction()
protected javax.swing.Action createDefaultAboutAction()
If you subclass PreviewFrame, and override this method, you can display your own 'about' dialog.
protected javax.swing.Action createZoomSelectAction()
protected javax.swing.Action createDefaultGotoAction()
protected javax.swing.Action createDefaultFirstPageAction()
protected javax.swing.Action createDefaultLastPageAction()
public java.lang.String getStatusText()
public void setStatusText(java.lang.String text)
protected javax.swing.JPanel createStatusBar()
protected javax.swing.JMenuBar createMenuBar()
protected javax.swing.JButton createButton(javax.swing.Action action)
action
- the action used to set up the button.
protected javax.swing.JMenuItem createMenuItem(javax.swing.Action action)
action
- the action.
protected javax.swing.JToolBar createToolBar()
public boolean isToolbarFloatable()
public void setToolbarFloatable(boolean b)
b
- a flag that indicates whether or not the toolbar is floatable.protected javax.swing.JComponent createZoomPane()
protected void validateButtons()
protected void disableButtons()
public boolean isLargeIconsEnabled()
public void setLargeIconsEnabled(boolean b)
b
- the new value of the flag.public void dispose()
public javax.swing.Action getAboutAction()
public void setAboutAction(javax.swing.Action aboutAction)
aboutAction
- the 'About' action.public javax.swing.Action getCloseAction()
public void setCloseAction(javax.swing.Action closeAction)
closeAction
- the 'Close' action.public javax.swing.Action getFirstPageAction()
public void setFirstPageAction(javax.swing.Action firstPageAction)
firstPageAction
- the 'First Page' action.public javax.swing.Action getLastPageAction()
public void setLastPageAction(javax.swing.Action lastPageAction)
lastPageAction
- the 'Last Page' action.public javax.swing.Action getNextPageAction()
public void setNextPageAction(javax.swing.Action nextPageAction)
nextPageAction
- the 'Next Page' action.public javax.swing.Action getPreviousPageAction()
public void setPreviousPageAction(javax.swing.Action previousPageAction)
previousPageAction
- the 'Previous Page' action.public javax.swing.Action getZoomInAction()
public void setZoomInAction(javax.swing.Action zoomInAction)
zoomInAction
- the 'Zoom In' action.public javax.swing.Action getZoomOutAction()
public void setZoomOutAction(javax.swing.Action zoomOutAction)
zoomOutAction
- the 'Zoom Out' action.public javax.swing.Action getGotoAction()
public void setGotoAction(javax.swing.Action gotoAction)
gotoAction
- the 'Goto' action.public void updatePageFormat(java.awt.print.PageFormat pf)
pf
- public void performPagination()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |