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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour
ALWAYS_INVISIBLE, ALWAYS_VISIBLE_ENABLED
-
-
Constructor Summary
Constructors Constructor Description PageDisabledVisibleBehaviour(org.apache.wicket.markup.html.WebPage page, Class<? extends org.apache.wicket.markup.html.WebPage> disabledPage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled()
-
Methods inherited from class com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour
isVisible, onConfigure
-
-
-
-
Constructor Detail
-
PageDisabledVisibleBehaviour
public PageDisabledVisibleBehaviour(org.apache.wicket.markup.html.WebPage page, Class<? extends org.apache.wicket.markup.html.WebPage> disabledPage)
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Overrides:
isEnabled
in classVisibleEnableBehaviour
-
-