Class BoolSwitchModel

All Implemented Interfaces:
IPVWidgetModel, IAdaptable, IPropertySource

public class BoolSwitchModel extends AbstractBoolControlModel
The widget model for Boolean Switch.
  • 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:
    • ID

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

    • BoolSwitchModel

      public BoolSwitchModel()
  • 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