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 - Alignment is ignored
Version:
$Id: HTMLElement.java,v 1.2 2006/07/30 00:53:02 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • HTMLElement

      public HTMLElement(String html)
      HTML String Constructor
      Parameters:
      html - html code
  • Method Details

    • calculateSize

      protected boolean calculateSize()
      Layout and Calculate Size. Set p_width and p_height
      Specified by:
      calculateSize in class PrintElement
      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 class PrintElement
      Parameters:
      g2D - Graphics
      pageStart - top left Location of page
      pageNo - page number for multi page support (0 = header/footer) - ignored
      ctx - print context
      isView - true if online view (IDs are links)
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class PrintElement
      Returns:
      info
    • isHTML

      public static boolean isHTML(Object content)
      Is content HTML
      Parameters:
      content - content
      Returns:
      true if HTML