Class OutputBarcode

All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Arrangeable, Badgeable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable

@Component public class OutputBarcode extends Output
This class implements the graphic user interface element that allows the generation of two-dimensional barcodes
See Also:
GCApi:
component
  • Field Details

    • _gate

      protected ConcreteGate _gate
    • _type

      protected String _type
    • _width

      protected int _width
    • _height

      protected int _height
  • Constructor Details

    • OutputBarcode

      public OutputBarcode()
  • Method Details

    • setWIDTH

      public void setWIDTH(String w)
      Sets the component's width
      Parameters:
      w - The width expressed in pixel
    • setHEIGHT

      public void setHEIGHT(String h)
      Sets the component's height
      Parameters:
      h - The height expressed in pixel
    • setBORDER

      public void setBORDER(String b)
      Sets the width of the border that will be applied to the component
      Parameters:
      b - The width of the border, expressed in pixel. The default value is 10.
    • setTYPE

      public void setTYPE(String t)
      Sets the type of the barcode
      Parameters:
      t - Accepted values are: "QR_CODE" to generate a QR code
    • getQRMD5

      protected String getQRMD5(String value)
    • createQRCode

      protected void createQRCode(String content, String hash)
    • getContentHtml

      public org.apache.ecs.Element getContentHtml(Object generationhandle, EntitySet es)
      Description copied from interface: Arrangeable
      Returns the html code that represents the active part of the component, i.e. the field and the validation scripts
      Specified by:
      getContentHtml in interface Arrangeable
      Overrides:
      getContentHtml in class Output
      Parameters:
      generationhandle - the unique generatin handle
      es - the page entity set
      Returns:
      The html code of the component