Module wicket.bootstrap.core
Class RichPopoverBehavior
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
de.agilecoders.wicket.core.markup.html.bootstrap.components.RichPopoverBehavior
- All Implemented Interfaces:
Serializable,IComponentAwareEventSink,IComponentAwareHeaderContributor,IClusterable
A rich popover implementation that uses a component as body.
- Author:
- miha
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRichPopoverBehavior(IModel<String> label) Construct.RichPopoverBehavior(IModel<String> label, PopoverConfig config) Construct. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcleanContent(String content) cleans the final markupabstract ComponentnewBodyComponent(String markupId) creates a new popover body componentprotected final StringMethods inherited from class de.agilecoders.wicket.core.markup.html.bootstrap.components.PopoverBehavior
createInitializerScript, createRelAttribute, detach, onComponentTagMethods 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
-
RichPopoverBehavior
Construct.- Parameters:
label- popover title
-
RichPopoverBehavior
Construct.- Parameters:
label- popover titleconfig- popover configuration
-
-
Method Details
-
newContent
- Overrides:
newContentin classPopoverBehavior- Returns:
- the popover content
-
cleanContent
cleans the final markup- Parameters:
content- the markup to clean up- Returns:
- cleaned markup.
-
newBodyComponent
creates a new popover body component- Parameters:
markupId- the markup id that the body component must be use- Returns:
- new body component
-