Class JDPPrintComponent

java.lang.Object
   |
   +----JDPPrintComponent

public class JDPPrintComponent
extends Object
Class JDPPrintComponent represents a class for printing components.


Constructor Index

 o JDPPrintComponent(JDPUser)
Creates a component printer.

Method Index

 o addPage(Component)
Add a component on it's own page
 o addPage(Component, boolean)
Add a component on it's own page
 o clearPages()
Clear the pages that are currently ready for printing.
 o getDrawHiddenComponents()
Get whether hidden components are displayed or not.
 o getGridHeadersVisible()
Get whether grid headers are displayed or not.
 o printPages()
Print the pages that have been added using the addPage method
 o setDrawHiddenComponents(boolean)
Choose whether hidden components are displayed or not.
 o setGridHeadersVisible(boolean)
Choose whether grid headers are displayed or not.

Constructors

 o JDPPrintComponent
 public JDPPrintComponent(JDPUser user)
Creates a component printer.

Parameters:
JDPUser - the global user parameter used to pass handles in JDP.

Methods

 o setGridHeadersVisible
 public void setGridHeadersVisible(boolean gridHeaders)
Choose whether grid headers are displayed or not.

Parameters:
gridHeaders - whether grid headers are displayed or not.
 o getGridHeadersVisible
 public boolean getGridHeadersVisible()
Get whether grid headers are displayed or not.

Returns:
whether grid headers are displayed or not.
 o setDrawHiddenComponents
 public void setDrawHiddenComponents(boolean hidden)
Choose whether hidden components are displayed or not.

Parameters:
hidden - whether hidden components are displayed or not.
 o getDrawHiddenComponents
 public boolean getDrawHiddenComponents()
Get whether hidden components are displayed or not.

Returns:
whether hidden components are displayed or not.
 o printPages
 public void printPages()
Print the pages that have been added using the addPage method

 o addPage
 public void addPage(Component comp)
Add a component on it's own page

Parameters:
component - the component to add to the page
 o addPage
 public void addPage(Component comp,
                     boolean underlines)
Add a component on it's own page

Parameters:
component - the component to add to the page
underlines - if this is a textfield whether an underline is drwan or not
 o clearPages
 public void clearPages()
Clear the pages that are currently ready for printing.