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

      @Deprecated public boolean isVisible()
      Deprecated.
      use VisibleEnableBehaviour(SerializableSupplier) instead This method doesn't properly handle null values (when behaviour can't decide on whether component should be visible or not).
      Returns:
      Default implementation returns true even if underlying supplier returns null (this is because of backward compatibility of this class)
    • isEnabled

      @Deprecated public boolean isEnabled()
      Deprecated.
      use VisibleEnableBehaviour(SerializableSupplier, SerializableSupplier) instead. This method doesn't properly handle null values (when behaviour can't decide on whether component should be enabled or not).
      Returns:
      Default implementation returns true even if underlying supplier returns null (this is because of backward compatibility of this class)
    • onConfigure

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