Class FeatureVisibleEnableBehaviour

java.lang.Object
org.apache.wicket.behavior.Behavior
com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour
com.evolveum.midpoint.gui.api.util.FeatureVisibleEnableBehaviour
All Implemented Interfaces:
Serializable, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.markup.html.IComponentAwareHeaderContributor, org.apache.wicket.util.io.IClusterable

public class FeatureVisibleEnableBehaviour extends VisibleEnableBehaviour
Behaviour class that determines visibility of (configurable) UI feature.
Author:
semancik
See Also:
  • Constructor Details

  • Method Details

    • isVisible

      public boolean isVisible()
      Overrides:
      isVisible in class VisibleEnableBehaviour
      Returns:
      Default implementation returns true even if underlying supplier returns null (this is because of backward compatibility of this class) This method doesn't properly handle situations, when underlying supplier itself is null (when behaviour can't decide on whether component should be visible or not). In such case, it returns true.
    • isVisibleAutomatic

      public boolean isVisibleAutomatic()
      Method to be overridden in subclasses, determines automatic visibility of the feature. It will be called only if needed.