Class PageDisabledVisibleBehaviour

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

public class PageDisabledVisibleBehaviour extends VisibleEnableBehaviour
Behavior which disables component if actual page class equals to disabledPage defined by constructor parameter.
Author:
lazyman
See Also:
  • Constructor Details

    • PageDisabledVisibleBehaviour

      public PageDisabledVisibleBehaviour(org.apache.wicket.markup.html.WebPage page, Class<? extends org.apache.wicket.markup.html.WebPage> disabledPage)
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Overrides:
      isEnabled in class VisibleEnableBehaviour
      Returns:
      Default implementation returns true even if underlying supplier returns null (this is because of backward compatibility of this class)