Class EnabledDependency

java.lang.Object
com.motivewave.platform.sdk.common.desc.InputDependency
com.motivewave.platform.sdk.common.desc.EnabledDependency

public class EnabledDependency extends InputDependency
  • Constructor Details

    • EnabledDependency

      public EnabledDependency(String src, String... dependentFields)
    • EnabledDependency

      public EnabledDependency(boolean srcTriggerValue, String src, String... dependentFields)
  • Method Details

    • setOrCompare

      public void setOrCompare(boolean b)
    • isOrCompare

      public boolean isOrCompare()
    • setSource2

      public void setSource2(String src, boolean triggerValue)
      Sets an option secondary source. If set the fields will be enabled if the source and source2 are enabled.
      Parameters:
      src - identifier of the secondary source
    • setSource3

      public void setSource3(String src, boolean triggerValue)
      Sets an option secondary source. If set the fields will be enabled if the source and source2 are enabled.
      Parameters:
      src - identifier of the secondary source
    • onSourceUpdated

      public void onSourceUpdated(Settings settings, Map<String,Object> fields)
      Description copied from class: InputDependency
      Override this method to implement a dependency between fields.
      Overrides:
      onSourceUpdated in class InputDependency
    • areConditionsMet

      public boolean areConditionsMet(Settings settings)
      Overrides:
      areConditionsMet in class InputDependency