Class BarcodeFormat

java.lang.Object
quadbase.reportdesigner.util.BarcodeFormat
All Implemented Interfaces:
IFormat

public class BarcodeFormat extends Object implements IFormat
StringFormat

Class to format String value

  • Field Details

  • Constructor Details

    • BarcodeFormat

      public BarcodeFormat(int format)
      Create a BarcodeFormat instance
      Parameters:
      format - one of the formats listed above (for example, BAR39, IPCA, CODABAR etc.)
  • Method Details

    • getFormatType

      public int getFormatType()
      Define quadbase.reportdesigner.util.IFormat

      Return the type of quadbase.reportdesigner.util.IFormat

      Specified by:
      getFormatType in interface IFormat
      Returns:
      IFormat.BARCODE
    • format

      public String format(Object obj)
      Define quadbase.reportdesigner.util.IFormat

      Format the object if it is an instance of Boolean, otherwise call the default toString() method

      Specified by:
      format in interface IFormat
      Parameters:
      obj - The target object
      Returns:
      Formatted string
    • getTextFormat

      public String getTextFormat()
      Internal use
      Specified by:
      getTextFormat in interface IFormat
    • getformat

      public int getformat()
      Get the current format
      Parameters:
      return - current format, the symbology used to generate the bar code
    • setformat

      public void setformat(int format)
      Set logical format
      Parameters:
      format - new format