Class VisibleEnableBehaviour
java.lang.Object
org.apache.wicket.behavior.Behavior
com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour
- All Implemented Interfaces:
Serializable
,org.apache.wicket.IComponentAwareEventSink
,org.apache.wicket.markup.html.IComponentAwareHeaderContributor
,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
EnableBehaviour
,FeatureVisibleEnableBehaviour
,PageDisabledVisibleBehaviour
,PageVisibleDisabledBehaviour
,VisibleBehaviour
public class VisibleEnableBehaviour
extends org.apache.wicket.behavior.Behavior
TODO: move to com.evolveum.midpoint.gui.api.util
- Author:
- lazyman
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final VisibleEnableBehaviour
static final VisibleEnableBehaviour
-
Constructor Summary
ConstructorDescriptionVisibleEnableBehaviour
(@NotNull SerializableSupplier<Boolean> visible) VisibleEnableBehaviour
(@NotNull SerializableSupplier<Boolean> visible, @NotNull SerializableSupplier<Boolean> enabled) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
onConfigure
(org.apache.wicket.Component component) 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
-
Field Details
-
ALWAYS_VISIBLE_ENABLED
-
ALWAYS_INVISIBLE
-
-
Constructor Details
-
VisibleEnableBehaviour
public VisibleEnableBehaviour() -
VisibleEnableBehaviour
-
VisibleEnableBehaviour
public VisibleEnableBehaviour(@NotNull @NotNull SerializableSupplier<Boolean> visible, @NotNull @NotNull SerializableSupplier<Boolean> enabled)
-
-
Method Details
-
isVisible
public boolean isVisible() -
isEnabled
public boolean isEnabled() -
onConfigure
public void onConfigure(org.apache.wicket.Component component) - Overrides:
onConfigure
in classorg.apache.wicket.behavior.Behavior
-