Package org.compiere.print.layout
Class HTMLElement
- java.lang.Object
-
- org.compiere.print.layout.PrintElement
-
- org.compiere.print.layout.HTMLElement
-
- All Implemented Interfaces:
ImageObserver
,Serializable
public class HTMLElement extends PrintElement
HTML Form Print ELement. Restrictions: - Label is not printed - Alighnment is ignored- Version:
- $Id: HTMLElement.java,v 1.2 2006/07/30 00:53:02 jjanke Exp $
- Author:
- Jorg Janke
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.compiere.print.layout.PrintElement
LINK_COLOR, log, p_FieldAlignmentType, p_height, p_maxHeight, p_maxWidth, p_pageLocation, p_sizeCalculated, p_width
-
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
-
Constructor Summary
Constructors Constructor Description HTMLElement(String html)
HTML String Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
calculateSize()
Layout and Calculate Size.static boolean
isHTML(Object content)
Is content HTMLvoid
paint(Graphics2D g2D, int pageNo, Point2D pageStart, Properties ctx, boolean isView)
/** Paint/Print.String
toString()
String Representation-
Methods inherited from class org.compiere.print.layout.PrintElement
getAbsoluteLocation, getBounds, getCurrentPage, getDetailInfo, getDrillAcross, getDrillDown, getHeight, getHeight, getLocation, getPageCount, getPageLogic, getPrintData, getRowIndex, getWidth, imageUpdate, isTranslated, layout, setCurrentPage, setLocation, setMaxHeight, setMaxWidth, setPageLogic, setPrintData, setRowIndex, translate, waitForLoad
-
-
-
-
Constructor Detail
-
HTMLElement
public HTMLElement(String html)
HTML String Constructor- Parameters:
html
- html code
-
-
Method Detail
-
calculateSize
protected boolean calculateSize()
Layout and Calculate Size. Set p_width and p_height- Specified by:
calculateSize
in classPrintElement
- Returns:
- Size
-
paint
public void paint(Graphics2D g2D, int pageNo, Point2D pageStart, Properties ctx, boolean isView)
/** Paint/Print. Calculate actual Size. The text is printed in the topmost left position - i.e. the leading is below the line- Specified by:
paint
in classPrintElement
- Parameters:
g2D
- GraphicspageStart
- top left Location of pagepageNo
- page number for multi page support (0 = header/footer) - ignoredctx
- print contextisView
- true if online view (IDs are links)
-
toString
public String toString()
String Representation- Overrides:
toString
in classPrintElement
- Returns:
- info
-
isHTML
public static boolean isHTML(Object content)
Is content HTML- Parameters:
content
- content- Returns:
- true if HTML
-
-