Module wicket.bootstrap.core
Class TooltipBehavior
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
- All Implemented Interfaces:
Serializable,IComponentAwareEventSink,IComponentAwareHeaderContributor,IClusterable
- Direct Known Subclasses:
PopoverBehavior
Tooltips are an updated version of Jquery.tipsy, which don't rely on images,
use CSS3 for animations, and data-attributes for local title storage.
- Author:
- miha
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTooltipBehavior(IModel<String> label) Construct.TooltipBehavior(IModel<String> label, TooltipConfig config) Construct. -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected CharSequencecreateInitializerScript(Component component, de.agilecoders.wicket.jquery.Config config) creates an initializer scriptprotected StringvoidvoidonComponentTag(Component component, ComponentTag tag) voidrenderHead(Component component, IHeaderResponse headerResponse) Methods 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
-
TooltipBehavior
Construct.- Parameters:
label- The tooltip text
-
TooltipBehavior
Construct.- Parameters:
label- The tooltip textconfig- configuration of tooltip
-
-
Method Details
-
detach
-
onComponentTag
- Overrides:
onComponentTagin classBehavior
-
bind
-
createRelAttribute
- Returns:
- the value of the "rel" attribute
-
renderHead
- Specified by:
renderHeadin interfaceIComponentAwareHeaderContributor- Overrides:
renderHeadin classBootstrapBaseBehavior
-
createInitializerScript
protected CharSequence createInitializerScript(Component component, de.agilecoders.wicket.jquery.Config config) creates an initializer script- Parameters:
component- The component where this behavior is assigned to.config- The current configuration- Returns:
- new initializer script
-