Class HTMLExtension

java.lang.Object
org.adempiere.webui.report.HTMLExtension
All Implemented Interfaces:
IHTMLExtension

public class HTMLExtension extends Object implements IHTMLExtension
Default implementation for HTML report extension
Author:
hengsin
  • Constructor Details

    • HTMLExtension

      public HTMLExtension(String contextPath, String classPrefix, String componentId)
      Parameters:
      contextPath -
      classPrefix -
      componentId -
    • HTMLExtension

      public HTMLExtension(String contextPath, String classPrefix, String componentId, String processID)
      Parameters:
      contextPath -
      classPrefix -
      componentId -
      processID -
  • Method Details

    • getWebFontLinks

      public String getWebFontLinks()
      Description copied from interface: IHTMLExtension
      Get one or more links (<link ... >) to web font
      Specified by:
      getWebFontLinks in interface IHTMLExtension
      Returns:
      one or more links for web font
    • extendIDColumn

      public void extendIDColumn(int row, org.apache.ecs.ConcreteElement columnElement, org.apache.ecs.xhtml.a href, PrintDataElement dataElement)
      Description copied from interface: IHTMLExtension
      Apply customization to ID element
      Specified by:
      extendIDColumn in interface IHTMLExtension
      href - link for ID column
    • extendRowElement

      public void extendRowElement(org.apache.ecs.ConcreteElement row, PrintData printData)
      Description copied from interface: IHTMLExtension
      Apply customization to row
      Specified by:
      extendRowElement in interface IHTMLExtension
    • getClassPrefix

      public String getClassPrefix()
      Description copied from interface: IHTMLExtension
      Get CSS class prefix for HTML report element
      Specified by:
      getClassPrefix in interface IHTMLExtension
      Returns:
      CSS class prefix for HTML report element
    • getScriptURL

      public String getScriptURL()
      Description copied from interface: IHTMLExtension
      Get URL to report javascript
      Specified by:
      getScriptURL in interface IHTMLExtension
      Returns:
      URL to report javascript
    • getStyleURL

      public String getStyleURL()
      Description copied from interface: IHTMLExtension
      Get URL to report CSS
      Specified by:
      getStyleURL in interface IHTMLExtension
      Returns:
      URL to report CSS
    • setWebAttribute

      public void setWebAttribute(org.apache.ecs.xhtml.body reportBody)
      Description copied from interface: IHTMLExtension
      Add attributes to reportBody
      Specified by:
      setWebAttribute in interface IHTMLExtension
    • getFullPathStyle

      public String getFullPathStyle()
      Description copied from interface: IHTMLExtension
      Get absolute local file path to CSS file (typically for embedding the file content to HTML report)
      Specified by:
      getFullPathStyle in interface IHTMLExtension
      Returns:
      absolute local file path to CSS file