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
Behavior which disables component if actual page class equals to disabledPage defined by constructor parameter.
- Author:
- lazyman
- See Also:
-
Field Summary
Fields inherited from class com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour
ALWAYS_INVISIBLE, ALWAYS_VISIBLE_ENABLED
-
Constructor Summary
ConstructorDescriptionPageDisabledVisibleBehaviour
(org.apache.wicket.markup.html.WebPage page, Class<? extends org.apache.wicket.markup.html.WebPage> disabledPage) -
Method Summary
Methods inherited from class com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour
isVisible, onConfigure
Methods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, bind, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onEvent, onException, onRemove, onTag, renderHead, unbind
-
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 classVisibleEnableBehaviour
- Returns:
- Default implementation returns true even if underlying supplier returns null (this is because of backward compatibility of this class)
-