|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object quick.dbtable.PrintProperties
PrintProperties class describes the various print properties which are used during printing quicktable.
Example class MyPrintProperties extends PrintProperties { public String getHeader() { return "Audit Summary report\nPage: %1%\n"Sub Page: %2%"; } public String getFooter() { return null; } }Example :
Field Summary | |
static int |
LANDSCAPE
|
static int |
PORTRAIT
|
Constructor Summary | |
PrintProperties()
creates default print properties for A4 size paper in PORTRAIT mode |
|
PrintProperties(int mode)
creates default print properties for A4 size paper in a given mode The mode just decides the width & height of the paper, other that it doesn't do any thing. |
|
PrintProperties(int width,
int hieght)
creates default print properties with a given hieght & width, in 1/72nds of an inch |
Method Summary | |
int |
getBorderHeight()
the border hieght on the top & bottom of the paper default border height is 72 ( in 1/72nds of an inch, so 1 inch=72) |
int |
getBorderHieght()
Deprecated. There is typo error in this method name getBorderHieght(), use the method getBorderHeight() instead the border hieght on the top & bottom of the paper default border height is 72 ( in 1/72nds of an inch, so 1 inch=72) |
int |
getBorderWidth()
the border width on the left side & right side of the paper default border width is 72 ( in 1/72nds of an inch, so 1 inch=72) |
java.lang.String |
getFooter()
the text that need to be printed on the bottom of the page. |
int |
getFooterAlign()
the alignment of footer use SwingUtilities.CENTER use SwingUtilities.RIGHT use SwingUtilities.LEFT |
java.awt.Color |
getFooterColor()
the color that should be used for footer |
java.awt.Font |
getFooterFont()
the font that should be used for footer |
java.lang.String |
getHeader()
the text that need to be printed on the top of the page. |
int |
getHeaderAlign()
the alignment of header use SwingUtilities.CENTER use SwingUtilities.RIGHT use SwingUtilities.LEFT |
java.awt.Color |
getHeaderColor()
the color that should be used for printing header |
java.awt.Font |
getHeaderFont()
the font that should be used for printing header |
int |
getPaperHeight()
paper hieght portrait hieght is 792 , for landscape set this to 612 |
int |
getPaperHieght()
Deprecated. There is typo error in this method name getPaperHieght(), use the method getPaperHeight() instead paper hieght portrait hieght is 792 , for landscape set this to 612 |
int |
getPaperWidth()
paper Width default portrait width is 612 , for landscape set this to 792 |
boolean |
printBorder()
By default a border is printed around the table If you do not need the border, return false |
boolean |
printTableHeader()
If you do not want to print the table header return false By default table header printing is enabled |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int LANDSCAPE
public static final int PORTRAIT
Constructor Detail |
public PrintProperties()
public PrintProperties(int mode)
public PrintProperties(int width, int hieght)
Method Detail |
public int getPaperHieght()
getPaperHeight()
public int getPaperHeight()
public int getPaperWidth()
public int getBorderWidth()
public int getBorderHieght()
getBorderHeight()
public int getBorderHeight()
public java.lang.String getHeader()
The newline charcter will split the text into multiple lines. If you want to dynamically assign the page number within the text use the following Main page number - %1% Sub page number - %2% If the table width doesn't fit into one page it will be split into multiple pages, sub page denotes that pages. Example "Audit Summary report\nPage: %1%\n"Sub Page: %2%" If you don't want to set a header return null
public java.lang.String getFooter()
The newline charcter will split the text into multiple lines. If you want to dynamically assign the page number within the text use the following Main page number - %1% Sub page number - %2% Example "Page: %1% - %2%" If you don't want to set a footer return null
public java.awt.Font getHeaderFont()
public java.awt.Font getFooterFont()
public int getHeaderAlign()
public int getFooterAlign()
public java.awt.Color getHeaderColor()
public java.awt.Color getFooterColor()
public boolean printTableHeader()
public boolean printBorder()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |