Class Rule

All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Badgeable, Hideable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable
Direct Known Subclasses:
SelectRule

public abstract class Rule extends Container implements Hideable
This abstract class is the base of UI change rules based on form values or UI setting during init phase on ValuesContainer
. During init phase, after setValues method rules are refreshed. UI components that supports autoevents can invoke rules with attributes autoevent="Rule" and autoeventparam="RuleName".
Only Input derived components that implements autoevent attribute can invoke Rule.
An example is the class SelectRule
The class implements the SingleUseComponent interface.
See Also:
  • Constructor Details

    • Rule

      public Rule()
  • Method Details

    • getHtml

      public org.apache.ecs.Element getHtml(EntitySet es)
      Returns the html code of the rule (usually nothing, rule is always not visible)
      Overrides:
      getHtml in class Container
      Parameters:
      es - the page entity set
      Returns:
      ELEMENT_NULL
    • apply

      public abstract void apply()
      Invoked if autoeventparam="RuleName" on event="Rule"
    • newValues

      public abstract void newValues()
      Invoked in the init phase of ValuesContainer (in the onOpen method)
    • setVISIBLE

      public void setVISIBLE(String s)
      Description copied from interface: Hideable
      Sets the visibility of the component
      Specified by:
      setVISIBLE in interface Hideable
      Parameters:
      s - String used to defines the visibility of the component
      See Also:
    • isVisible

      public boolean isVisible()
      Description copied from interface: Hideable
      Checks the visibility of the component
      Specified by:
      isVisible in interface Hideable
      Returns:
      true if the component is visible, false otherwise
      See Also: