Class CheckBoxModel

All Implemented Interfaces:
IPVWidgetModel, ITextModel, IAdaptable, IPropertySource

public class CheckBoxModel extends AbstractPVWidgetModel implements ITextModel
The model for checkbox widget
  • Field Details

  • Constructor Details

    • CheckBoxModel

      public CheckBoxModel()
  • Method Details

    • configureProperties

      protected void configureProperties()
      Description copied from class: AbstractWidgetModel
      Configure the properties of the widget. Subclass should add new properties in this method.
      Specified by:
      configureProperties in class AbstractWidgetModel
    • getTypeID

      public String getTypeID()
      Specified by:
      getTypeID in class AbstractWidgetModel
      Returns:
      the unique typeID of the model.
    • getBit

      public Integer getBit()
      Returns:
      the bit. If bit is -1, the value channel must be enum, otherwise, it must be numeric value
    • getLabel

      public String getLabel()
      Returns:
      the on label
    • getText

      public String getText()
      Specified by:
      getText in interface ITextModel
    • setText

      public void setText(String text)
      Specified by:
      setText in interface ITextModel
    • isAutoSize

      public boolean isAutoSize()
    • getSelectedColor

      public OPIColor getSelectedColor()