Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.schooltool.misc
Class PrintUtil  view PrintUtil download PrintUtil.java

java.lang.Object
  extended byorg.schooltool.misc.PrintUtil
All Implemented Interfaces:
java.awt.print.Printable

public class PrintUtil
extends java.lang.Object
implements java.awt.print.Printable

Version:

Field Summary
protected  org.schooltool.client.gui.widgets.TableViewModel m_data
           
protected  int m_maxNumPage
           
protected  javax.swing.JTable m_table
           
protected  javax.swing.JLabel m_title
           
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
PrintUtil()
          Creates new PrintUtil
PrintUtil(javax.swing.JTable table, java.lang.String title)
          Creates new PrintUtil
 
Method Summary
 int print(java.awt.Graphics pg, java.awt.print.PageFormat pageFormat, int pageIndex)
          This method prints the specified page to the specified graphics context in the specified format.
 void printData()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_table

protected javax.swing.JTable m_table

m_data

protected org.schooltool.client.gui.widgets.TableViewModel m_data

m_title

protected javax.swing.JLabel m_title

m_maxNumPage

protected int m_maxNumPage
Constructor Detail

PrintUtil

public PrintUtil()
Creates new PrintUtil


PrintUtil

public PrintUtil(javax.swing.JTable table,
                 java.lang.String title)
Creates new PrintUtil

Method Detail

printData

public void printData()

print

public int print(java.awt.Graphics pg,
                 java.awt.print.PageFormat pageFormat,
                 int pageIndex)
          throws java.awt.print.PrinterException
Description copied from interface: java.awt.print.Printable
This method prints the specified page to the specified graphics context in the specified format. The pages are numbered starting from zero.

Specified by:
print in interface java.awt.print.Printable