Class AbstractBoolControlFigure

java.lang.Object
org.eclipse.draw2d.Figure
org.csstudio.swt.widgets.figures.AbstractBoolFigure
org.csstudio.swt.widgets.figures.AbstractBoolControlFigure
All Implemented Interfaces:
Introspectable, org.eclipse.draw2d.IFigure
Direct Known Subclasses:
BoolButtonFigure, BoolSwitchFigure, ImageBoolButtonFigure

public class AbstractBoolControlFigure extends AbstractBoolFigure
Abstract boolean control figure for bool button, toggle switch...
  • Field Details

    • toggle

      protected boolean toggle
    • showConfirmDialog

      protected AbstractBoolControlFigure.ShowConfirmDialog showConfirmDialog
    • password

      protected String password
    • confirmTip

      protected String confirmTip
    • runMode

      protected boolean runMode
    • buttonPresser

      protected org.csstudio.swt.widgets.figures.AbstractBoolControlFigure.ButtonPresser buttonPresser
    • DISABLE_COLOR

      protected static final Color DISABLE_COLOR
    • DISABLED_ALPHA

      protected static final int DISABLED_ALPHA
      The alpha (0 is transparency and 255 is opaque) for disabled paint
      See Also:
  • Constructor Details

    • AbstractBoolControlFigure

      public AbstractBoolControlFigure()
  • Method Details

    • addManualValueChangeListener

      public void addManualValueChangeListener(IManualValueChangeListener listener)
      add a boolean control listener which will be executed when pressed or released
      Parameters:
      listener - the listener to add
    • removeManualValueChangeListener

      public void removeManualValueChangeListener(IManualValueChangeListener listener)
    • fireManualValueChange

      protected void fireManualValueChange(boolean newManualValue)
      Inform all boolean control listeners, that the manual value has changed.
      Parameters:
      newManualValue - the new manual value
    • getConfirmTip

      public String getConfirmTip()
    • getPassword

      public String getPassword()
    • isRunMode

      public boolean isRunMode()
    • isShowConfirmDialog

      @Deprecated public boolean isShowConfirmDialog()
      Deprecated.
      Returns:
      the showConfirmDialog
    • getShowConfirmDialog

      public AbstractBoolControlFigure.ShowConfirmDialog getShowConfirmDialog()
      Returns:
      the condition when confirm dialog should be shown.
    • isToggle

      public boolean isToggle()
      Returns:
      the toggle
    • setConfirmTip

      public void setConfirmTip(String confirmTip)
      Parameters:
      confirmTip - the confirmTip to set
    • setPassword

      public void setPassword(String password)
      Parameters:
      password - the password to set
    • setRunMode

      public void setRunMode(boolean runMode)
      Parameters:
      runMode - the runMode to set
    • setShowConfirmDialog

      @Deprecated public void setShowConfirmDialog(boolean showConfirmDialog)
      Deprecated.
      Parameters:
      showConfirmDialog - the showConfirmDialog to set
    • setShowConfirmDialog

      public void setShowConfirmDialog(AbstractBoolControlFigure.ShowConfirmDialog showConfirm)
    • setToggle

      public void setToggle(boolean toggle)
      Parameters:
      toggle - the toggle to set