Class VisibleEnableBehaviour

java.lang.Object
org.apache.wicket.behavior.Behavior
com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour
All Implemented Interfaces:
Serializable, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.markup.html.IComponentAwareHeaderContributor, org.apache.wicket.util.io.IClusterable
Direct Known Subclasses:
EnableBehaviour, FeatureVisibleEnableBehaviour, PageDisabledVisibleBehaviour, PageVisibleDisabledBehaviour, VisibleBehaviour

public class VisibleEnableBehaviour extends org.apache.wicket.behavior.Behavior
TODO: move to com.evolveum.midpoint.gui.api.util Suppliers take precedence when evaluating visibility and enabled state before isVisible() and isEnabled() methods.
Author:
lazyman
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • isVisible

      public boolean isVisible()
      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.
    • isEnabled

      public boolean isEnabled()
      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 enabled or not). In such case, it returns true.
    • onConfigure

      public void onConfigure(org.apache.wicket.Component component)
      Overrides:
      onConfigure in class org.apache.wicket.behavior.Behavior