| 
 | JClass DesktopViews 6.3.0 API Documentation | |||||||||
| 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
              |
              +--java.awt.Window
                    |
                    +--java.awt.Dialog
                          |
                          +--javax.swing.JDialog
                                |
                                +--com.klg.jclass.higrid.PrintPreview
The PrintPreview is a frame to display print pages. It allows users to flip through the pages and send selected pages or all the pages to the printer.
| Nested Class Summary | 
| Nested classes inherited from class javax.swing.JDialog | 
| JDialog.AccessibleJDialog | 
| Nested classes inherited from class java.awt.Dialog | 
| Dialog.AccessibleAWTDialog | 
| Nested classes inherited from class java.awt.Window | 
| Window.AccessibleAWTWindow | 
| Nested classes inherited from class java.awt.Container | 
| Container.AccessibleAWTContainer | 
| Nested classes inherited from class java.awt.Component | 
| Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy | 
| Field Summary | |
| protected  JButton | closeButton | 
| protected  int | currentPage | 
| protected  JButton | firstButton | 
| protected  com.klg.jclass.higrid.HiGrid | grid | 
| protected  PrinterJob | job | 
| protected  JButton | lastButton | 
| protected  JButton | nextButton | 
| protected  PageFormat | pageFormat | 
| protected  JButton | pageFormatButton | 
| protected  JScrollPane | pane | 
| protected  JButton | prevButton | 
| protected  JButton | printAllButton | 
| protected  JButton | printButton | 
| protected  com.klg.jclass.higrid.PrintGrid12 | printGrid | 
| protected  com.klg.jclass.higrid.PrintPage | printPage | 
| protected  JLabel | status | 
| 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 | |
| PrintPreview(Frame owner,
             String title,
             com.klg.jclass.higrid.HiGrid grid)Creates a new PrintPreview frame. | |
| Method Summary | |
|  void | actionPerformed(ActionEvent e)ActionListener method. | 
|  void | close()Cleanup before closing PrintPreview window. | 
|  void | createPage()Creates an image of the page to preview. | 
|  int | getNumPages()Gets the number of pages in this job. | 
|  int | getPageHeight()Gets the height of a page. | 
|  int | getPageWidth()Gets the width of a page. | 
|  void | setVisible(boolean show)Shows the first page of the set. | 
|  void | showPage(int page)Generates a new HiGrid page image and posts it to the PrintPage panel for display. | 
|  void | windowActivated(WindowEvent e) | 
|  void | windowClosed(WindowEvent e) | 
|  void | windowClosing(WindowEvent e)WindowListener methods. | 
|  void | windowDeactivated(WindowEvent e) | 
|  void | windowDeiconified(WindowEvent e) | 
|  void | windowIconified(WindowEvent e) | 
|  void | windowOpened(WindowEvent e) | 
| Methods inherited from class java.awt.Dialog | 
| addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show | 
| Methods inherited from class java.lang.Object | 
| clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
protected transient JButton firstButton
protected transient JButton prevButton
protected transient JButton nextButton
protected transient JButton lastButton
protected transient JButton printButton
protected transient JButton printAllButton
protected transient JButton pageFormatButton
protected transient JButton closeButton
protected transient JLabel status
protected transient JScrollPane pane
protected transient PrinterJob job
protected transient PageFormat pageFormat
protected transient com.klg.jclass.higrid.PrintGrid12 printGrid
protected transient com.klg.jclass.higrid.HiGrid grid
protected transient com.klg.jclass.higrid.PrintPage printPage
protected transient int currentPage
| Constructor Detail | 
public PrintPreview(Frame owner,
                    String title,
                    com.klg.jclass.higrid.HiGrid grid)
owner - the frame that will own this dialog.title - the title of this dialog.grid - the HiGrid parent instance.| Method Detail | 
public int getNumPages()
public int getPageWidth()
public int getPageHeight()
public void createPage()
public void setVisible(boolean show)
setVisible in class Componentpublic void showPage(int page)
public void close()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void windowClosing(WindowEvent e)
windowClosing in interface WindowListenerpublic void windowActivated(WindowEvent e)
windowActivated in interface WindowListenerpublic void windowClosed(WindowEvent e)
windowClosed in interface WindowListenerpublic void windowDeactivated(WindowEvent e)
windowDeactivated in interface WindowListenerpublic void windowDeiconified(WindowEvent e)
windowDeiconified in interface WindowListenerpublic void windowIconified(WindowEvent e)
windowIconified in interface WindowListenerpublic void windowOpened(WindowEvent e)
windowOpened in interface WindowListener| 
 | Copyright ©  2004 Quest Software Inc.. All rights reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||