Class PageVisibleDisabledBehaviour
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour
-
- com.evolveum.midpoint.web.component.util.PageVisibleDisabledBehaviour
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.IComponentAwareEventSink
,org.apache.wicket.markup.html.IComponentAwareHeaderContributor
,org.apache.wicket.util.io.IClusterable
public class PageVisibleDisabledBehaviour extends VisibleEnableBehaviour
This is simple visible/enable behaviour for use in top menu. It always disable menu link and this menu link is visible only if page class equals defined class (in constructor).- 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 PageVisibleDisabledBehaviour(org.apache.wicket.markup.html.WebPage page, Class<? extends org.apache.wicket.markup.html.WebPage> defaultPage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled()
boolean
isVisible()
-
Methods inherited from class com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour
onConfigure
-
-
-
-
Constructor Detail
-
PageVisibleDisabledBehaviour
public PageVisibleDisabledBehaviour(org.apache.wicket.markup.html.WebPage page, Class<? extends org.apache.wicket.markup.html.WebPage> defaultPage)
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Overrides:
isEnabled
in classVisibleEnableBehaviour
-
isVisible
public boolean isVisible()
- Overrides:
isVisible
in classVisibleEnableBehaviour
-
-