All Implemented Interfaces:
DynamicPropertyProvider, LocaleListener, MutableDynamicPropertyProvider, StyleProvider, ComponentLifecycle, DesignerInitializable, EnabledEx, QualityMonitor, VisionComponent, ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants

public class PMIMomentaryButton2 extends AbstractVisionButton implements LocaleListener, DesignerInitializable
See Also:
  • Constructor Details

    • PMIMomentaryButton2

      public PMIMomentaryButton2()
  • Method Details

    • initialize

      public void initialize()
      Specified by:
      initialize in interface DesignerInitializable
    • doClick

      public void doClick(int pressTime)
      This override and the Emulation runnable are here so that users can emulate physical press & hold via scripting, and allow the proper setting of control values. We attempt the doPress() and then stage an invokeLater to run the release() functionality.
      Overrides:
      doClick in class AbstractButton
      Parameters:
      pressTime - the duration that a button press should be simulated
    • toString

      public String toString()
      Overrides:
      toString in class Component
    • getOnTime

      public int getOnTime()
    • setOnTime

      public void setOnTime(int onTime)
    • getMaxOnTime

      public int getMaxOnTime()
    • setMaxOnTime

      public void setMaxOnTime(int maxOnTime)
    • getOnValue

      public int getOnValue()
    • setOnValue

      public void setOnValue(int onValue)
    • getOffValue

      public int getOffValue()
    • setOffValue

      public void setOffValue(int offValue)
    • getControlValue

      public int getControlValue()
    • setControlValue

      public void setControlValue(int value)
    • getIndicatorValue

      public int getIndicatorValue()
    • setIndicatorValue

      public void setIndicatorValue(int indicatorValue)
    • isActive

      public boolean isActive()
    • setActive

      public void setActive(boolean active)
    • getIndicatorWidth

      public int getIndicatorWidth()
    • setIndicatorWidth

      public void setIndicatorWidth(int padding)
    • localeChanged

      public void localeChanged(Locale newLocale)
      Specified by:
      localeChanged in interface LocaleListener
      Overrides:
      localeChanged in class AbstractVisionButton
    • getInnerBorder

      public Border getInnerBorder()
    • setInnerBorder

      public void setInnerBorder(Border innerBorder)
    • getOnColor

      public Color getOnColor()
    • setOnColor

      public void setOnColor(Color onColor)
    • getOffColor

      public Color getOffColor()
    • setOffColor

      public void setOffColor(Color offColor)