Style Intelligence v12.0

inetsoft.report
Class PagedPreviewPane

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by inetsoft.report.PreviewPane
              extended by inetsoft.report.j2d.JPreviewPane
                  extended by inetsoft.report.j2d.PreviewPane2D
                      extended by inetsoft.report.PagedPreviewPane
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable
Direct Known Subclasses:
ViewPreviewPane.ViewPane

public class PagedPreviewPane
extends inetsoft.report.j2d.PreviewPane2D

PreviewPane that has an interface to page through a report using navigation buttons.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class inetsoft.report.j2d.JPreviewPane
inetsoft.report.j2d.JPreviewPane.StatusScrollBar, inetsoft.report.j2d.JPreviewPane.StatusScrollPane
 
Nested classes/interfaces inherited from class inetsoft.report.PreviewPane
PreviewPane.Constraints
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class inetsoft.report.j2d.JPreviewPane
scroller
 
Fields inherited from class inetsoft.report.PreviewPane
catalog, PAGE_WIDTH, scrollpane, sheet, TWO_PAGES, WHOLE_PAGE
 
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
PagedPreviewPane()
          Create a previewer with specified title.
 
Method Summary
protected  PreviewPage addPage(StylePage stylepage, double w, double h)
          Add a page to the container.
protected  void addStylePage(StylePage stylepage)
          Add a page to the cache.
 PreviewPage getPage(int index)
          Get the page with the index number.
 int getPageCount()
          Get the number of pages in the preview pane.
 int getPageNumber()
          Get the current page number.
 StylePage getStylePage(int n)
          Get the specified page number.
 Enumeration getStylePages()
          Get the style pages in the preview frame.
 Component getToolbar()
          Get the toolbar for the pane.
 void gotoPage(int pn)
          Jump to the specified page.
 boolean isCompleted()
          Check if previewing has completed.
protected  void pagingAction(AdjustmentEvent e)
          Called when scrollbar used to page up and down.
 void paint(Graphics g)
           
 void print(ReportSheet sheet, boolean reset)
          Print a report to the preview pane.
 void removeAll()
          Clean up preview pane.
protected  void removeAllPages()
          There is always one page component to display all pages.
protected  void removeAllStylePages()
          Remove all stylepage objects from cache.
 void setCompleted(boolean complete)
          If printing is not done in the preview pane, the caller should call this after the report is fully processed.
protected  void setPageCount(int cnt)
          Add the number of blank pages to the preview pane.
 void setStylePage(int pn, StylePage page)
          Set the stylepage in the pane.
 void showPageNumber(int pn)
          Set the current page number shown on the status bar.
 void update(Graphics g)
           
protected  int validatePageNum(String txt)
          validates if the page number is a positive interger.
 
Methods inherited from class inetsoft.report.j2d.PreviewPane2D
createPage
 
Methods inherited from class inetsoft.report.j2d.JPreviewPane
addToScrollPane, createScrollPane, getBlockIncrement, getHAdjustable, getVAdjustable, getViewport, getViewportSize, gotoPage, showPageSize, showStatus, syncScrollPane
 
Methods inherited from class inetsoft.report.PreviewPane
addSelectionListener, cancel, fireSelectionChange, getOrientation, getPageHeight, getPageMarginHeight, getPageResolution, getPageWidth, getReport, getScrollListener, getScrollPane, getZoom, isCancelled, isShowRuler, print, printAction, removeSelectionListener, saveReport, setFocusPage, setHorizontalRulerLines, setOrientation, setPageHeight, setPageNumberDisplay, setPageResolution, setPages, setPageSize, setPageWidth, setShowRuler, setStylePages, setVerticalRulerLines, writeReport, zoom
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, 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, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PagedPreviewPane

public PagedPreviewPane()
Create a previewer with specified title.

Method Detail

getToolbar

public Component getToolbar()
Get the toolbar for the pane.


print

public void print(ReportSheet sheet,
                  boolean reset)
Print a report to the preview pane.

Overrides:
print in class PreviewPane
Parameters:
sheet - report.
reset - true to reset the report before printing.

removeAllStylePages

protected void removeAllStylePages()
Remove all stylepage objects from cache.


getPageCount

public int getPageCount()
Get the number of pages in the preview pane.

Overrides:
getPageCount in class PreviewPane
Returns:
number of pages.

setPageCount

protected void setPageCount(int cnt)
Add the number of blank pages to the preview pane. This is intended to be used by subclasses to populate the pages without calling print().

Overrides:
setPageCount in class PreviewPane
Parameters:
cnt - number of pages.

setStylePage

public void setStylePage(int pn,
                         StylePage page)
Set the stylepage in the pane. If the page is currently displaying, the view is refreshed.


validatePageNum

protected int validatePageNum(String txt)
validates if the page number is a positive interger.

Overrides:
validatePageNum in class inetsoft.report.j2d.JPreviewPane
Returns:
int the number, -1 if invalid.

gotoPage

public void gotoPage(int pn)
Jump to the specified page.

Overrides:
gotoPage in class PreviewPane

getStylePages

public Enumeration getStylePages()
Get the style pages in the preview frame.

Overrides:
getStylePages in class PreviewPane

getStylePage

public StylePage getStylePage(int n)
Get the specified page number.


getPageNumber

public int getPageNumber()
Get the current page number. Starting from 1.

Overrides:
getPageNumber in class PreviewPane
Returns:
current top page number.

showPageNumber

public void showPageNumber(int pn)
Set the current page number shown on the status bar.

Overrides:
showPageNumber in class inetsoft.report.j2d.JPreviewPane

pagingAction

protected void pagingAction(AdjustmentEvent e)
Called when scrollbar used to page up and down.

Overrides:
pagingAction in class PreviewPane

removeAll

public void removeAll()
Clean up preview pane.

Overrides:
removeAll in class PreviewPane

setCompleted

public void setCompleted(boolean complete)
If printing is not done in the preview pane, the caller should call this after the report is fully processed.


isCompleted

public boolean isCompleted()
Check if previewing has completed.


addStylePage

protected void addStylePage(StylePage stylepage)
Add a page to the cache.


addPage

protected PreviewPage addPage(StylePage stylepage,
                              double w,
                              double h)
Add a page to the container.

Overrides:
addPage in class PreviewPane

removeAllPages

protected void removeAllPages()
There is always one page component to display all pages. Don't remove the page.

Overrides:
removeAllPages in class PreviewPane

getPage

public PreviewPage getPage(int index)
Get the page with the index number.

Overrides:
getPage in class PreviewPane
Parameters:
index - the page number to return.
Returns:
PreviewPage that match the index number.

paint

public void paint(Graphics g)
Overrides:
paint in class Container

update

public void update(Graphics g)
Overrides:
update in class Container

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.