Module wicket.bootstrap.core
Class PopoverBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapBaseBehavior
de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapJavascriptBehavior
de.agilecoders.wicket.core.markup.html.bootstrap.components.TooltipBehavior
de.agilecoders.wicket.core.markup.html.bootstrap.components.PopoverBehavior
- All Implemented Interfaces:
Serializable,IComponentAwareEventSink,IComponentAwareHeaderContributor,IClusterable
- Direct Known Subclasses:
RichPopoverBehavior
Add small overlays of content, like those on the iPad, to any element for housing secondary information.
Hover over the button to trigger the popover.
- Author:
- miha
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPopoverBehavior(IModel<String> label, IModel<String> body) Construct.PopoverBehavior(IModel<String> label, IModel<String> body, PopoverConfig config) Construct. -
Method Summary
Modifier and TypeMethodDescriptionprotected CharSequencecreateInitializerScript(Component component, de.agilecoders.wicket.jquery.Config config) creates an initializer scriptprotected Stringvoidprotected StringvoidonComponentTag(Component component, ComponentTag tag) Methods inherited from class de.agilecoders.wicket.core.markup.html.bootstrap.components.TooltipBehavior
bind, renderHeadMethods inherited from class de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapJavascriptBehavior
renderHeadMethods inherited from class de.agilecoders.wicket.core.markup.html.bootstrap.behavior.BootstrapBaseBehavior
addTo, getBootstrapSettings, instance, removeFromMethods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, canCallListener, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag, unbind
-
Constructor Details
-
PopoverBehavior
Construct.- Parameters:
label- Title of the popoverbody- Body of the popover
-
PopoverBehavior
Construct.- Parameters:
label- Title of the popoverbody- Body of the popoverconfig- The popover configuration
-
-
Method Details
-
onComponentTag
- Overrides:
onComponentTagin classTooltipBehavior
-
detach
- Overrides:
detachin classTooltipBehavior
-
createRelAttribute
- Overrides:
createRelAttributein classTooltipBehavior- Returns:
- the value of the "rel" attribute
-
newContent
- Returns:
- the popover content
-
createInitializerScript
protected CharSequence createInitializerScript(Component component, de.agilecoders.wicket.jquery.Config config) Description copied from class:TooltipBehaviorcreates an initializer script- Overrides:
createInitializerScriptin classTooltipBehavior- Parameters:
component- The component where this behavior is assigned to.config- The current configuration- Returns:
- new initializer script
-