|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.PingOO.DLAI.lib.directorytree.DirectoryComponentPrintable
Driver for printing directory component.
Note: currently this class provides text printing services only, no images, icons or any other binary datas will not be printed.
Printable| Field Summary | |
protected java.util.Vector |
componentVector
The components to be printed. |
protected static java.lang.String |
EQUAL_TAG
|
protected boolean |
printAllFields
Print all the content of the component, even empty fields. |
protected static java.lang.String |
SEPARATOR_TAG
|
protected TextPrintable |
textPrintable
The Printable object to which delegate printing job. |
| Constructor Summary | |
DirectoryComponentPrintable(DirectoryComponent component)
Creates a new Printable object in order to print informations contained inside DirectoryComponent. |
|
DirectoryComponentPrintable(DirectoryComponent[] componentArray)
Creates a new Printable object in order to print informations contained inside DirectoryComponent. |
|
DirectoryComponentPrintable(DirectoryComponent[] componentArray,
boolean printAllFields)
Creates a new Printable object in order to print informations contained inside DirectoryComponent. |
|
DirectoryComponentPrintable(DirectoryComponent component,
boolean printAllFields)
Creates a new Printable object in order to print informations contained inside DirectoryComponent. |
|
| Method Summary | |
private java.lang.String |
prepareComponent(DirectoryComponent component)
Prepare a string description of the current directory component. |
private java.lang.String |
prepareComponents()
Prepare a string description for all directory components. |
protected java.lang.String |
prepareString(DirectoryComponent component,
java.lang.String key)
Creates a String description for a given key. |
int |
print(java.awt.Graphics graphics,
java.awt.print.PageFormat pageFormat,
int pageIndex)
Prints the page at the specified index into the specified Graphics context in the specified format. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected static final java.lang.String SEPARATOR_TAG
protected static final java.lang.String EQUAL_TAG
protected TextPrintable textPrintable
Printable object to which delegate printing job.protected java.util.Vector componentVector
protected boolean printAllFields
| Constructor Detail |
public DirectoryComponentPrintable(DirectoryComponent component)
Printable object in order to print informations contained inside DirectoryComponent.component - The component to be printed.
public DirectoryComponentPrintable(DirectoryComponent component,
boolean printAllFields)
Printable object in order to print informations contained inside DirectoryComponent.component - The component to be printed.printAllFields - If true print all the content of the component, even empty fields.public DirectoryComponentPrintable(DirectoryComponent[] componentArray)
Printable object in order to print informations contained inside DirectoryComponent.componentArray - An array of directory component to be printed.
public DirectoryComponentPrintable(DirectoryComponent[] componentArray,
boolean printAllFields)
Printable object in order to print informations contained inside DirectoryComponent.componentArray - An array of directory component to be printed.printAllFields - If true print all the content of the component, even empty fields.| Method Detail |
private java.lang.String prepareComponents()
private java.lang.String prepareComponent(DirectoryComponent component)
protected java.lang.String prepareString(DirectoryComponent component,
java.lang.String key)
key - The key used to make the string description.null if the value associated with the key is of binary type.
public int print(java.awt.Graphics graphics,
java.awt.print.PageFormat pageFormat,
int pageIndex)
throws java.awt.print.PrinterException
graphics - The context into which the page is drawn.pageFormat - The size and orientation of the page being drawn.pageIndex - The zero based index of the page to be drawnPrintable.PAGE_EXISTS if the page is rendered successfully or Printable.NO_SUCH_PAGE if pageIndex specifies a non-existent page.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||