Class BoolButtonModel

All Implemented Interfaces:
IPVWidgetModel, IAdaptable, IPropertySource

public class BoolButtonModel extends AbstractBoolControlModel
The widget model for Boolean Button.
  • Field Details

    • PROP_EFFECT3D

      public static final String PROP_EFFECT3D
      True if the widget is drawn with advanced graphics. In some platforms, advance graphics may not be available, in which case the widget will not be drawn with advanced graphics even this is set to true.
      See Also:
    • PROP_SQUARE_BUTTON

      public static final String PROP_SQUARE_BUTTON
      True if the widget is square button.
      See Also:
    • PROP_SHOW_LED

      public static final String PROP_SHOW_LED
      True if the LED indicator is visible.
      See Also:
    • PROP_LABELS_FROM_PV

      public static final String PROP_LABELS_FROM_PV
      True if PV ONAM, ZNAM used instead of OnLabel and OffLabel
      See Also:
    • ID

      public static final String ID
      The ID of this widget model.
      See Also:
  • Constructor Details

    • BoolButtonModel

      public BoolButtonModel()
  • 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.
      Overrides:
      configureProperties in class AbstractBoolControlModel
    • getTypeID

      public String getTypeID()
      Overrides:
      getTypeID in class AbstractBoolControlModel
      Returns:
      the unique typeID of the model.
    • isEffect3D

      public boolean isEffect3D()
      Returns:
      true if the widget would be painted with 3D effect, false otherwise
    • isSquareButton

      public boolean isSquareButton()
      Returns:
      true if the button is square, false otherwise
    • isShowLED

      public boolean isShowLED()
      Returns:
      true if the LED should be shown, false otherwise
    • isLabelsFromPV

      public boolean isLabelsFromPV()
      Returns:
      true if on/off labels will be load from DB, false otherwise