Class 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
    • Field Detail

      • prop

        protected java.lang.String prop
    • Constructor Detail

      • Enabler

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

      • 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