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
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:
- 
Field SummaryFields inherited from class com.evolveum.midpoint.web.component.util.VisibleEnableBehaviourALWAYS_INVISIBLE, ALWAYS_VISIBLE_ENABLED
- 
Constructor SummaryConstructorsConstructorDescriptionPageVisibleDisabledBehaviour(org.apache.wicket.markup.html.WebPage page, Class<? extends org.apache.wicket.markup.html.WebPage> defaultPage) 
- 
Method SummaryMethods inherited from class com.evolveum.midpoint.web.component.util.VisibleEnableBehaviouronConfigureMethods inherited from class org.apache.wicket.behavior.BehaviorafterRender, beforeRender, bind, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onEvent, onException, onRemove, onTag, renderHead, unbind
- 
Constructor Details- 
PageVisibleDisabledBehaviourpublic PageVisibleDisabledBehaviour(org.apache.wicket.markup.html.WebPage page, Class<? extends org.apache.wicket.markup.html.WebPage> defaultPage) 
 
- 
- 
Method Details- 
isEnabledpublic boolean isEnabled()- Overrides:
- isEnabledin class- VisibleEnableBehaviour
- Returns:
- Default implementation returns true even if underlying supplier returns null (this is because of backward compatibility of this class)
 This method doesn't properly handle situations, when underlying supplier itself is null (when behaviour can't
 decide on whether component should be enabled or not). In such case, it returns true.
 
- 
isVisiblepublic boolean isVisible()- Overrides:
- isVisiblein class- VisibleEnableBehaviour
- Returns:
- Default implementation returns true even if underlying supplier returns null (this is because of backward compatibility of this class)
 This method doesn't properly handle situations, when underlying supplier itself is null (when behaviour can't
 decide on whether component should be visible or not). In such case, it returns true.
 
 
-