Class Enabler

java.lang.Object
org.eclipse.nebula.widgets.opal.preferencewindow.enabler.Enabler
Direct Known Subclasses:
EnabledIfEquals, EnabledIfNotEquals, EnabledIfTrue

public abstract class Enabler
extends java.lang.Object
This is the abstract class of all Enablers. An enabler is an object used to enable or disable a widget depending on a value of a stored property.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.lang.String prop  
  • Constructor Summary

    Constructors 
    Constructor Description
    Enabler​(java.lang.String prop)
    Constructor
  • Method Summary

    Modifier and Type Method Description
    void injectRowGroup​(PWRowGroup rowGroup)
    Link a row or a group to the enabler
    void injectWidget​(PWWidget widget)
    Link a widget to the enabler
    abstract boolean isEnabled()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • prop

      protected java.lang.String prop
  • Constructor Details

    • Enabler

      public Enabler​(java.lang.String prop)
      Constructor
      Parameters:
      prop - property linked to the enabler.
  • Method Details

    • isEnabled

      public abstract boolean isEnabled()
      Returns:
      the evaluation condition
    • injectWidget

      public void injectWidget​(PWWidget widget)
      Link a widget to the enabler
      Parameters:
      widget - widget to link
    • injectRowGroup

      public void injectRowGroup​(PWRowGroup rowGroup)
      Link a row or a group to the enabler
      Parameters:
      rowGroup - RowGroup to link