Class MootipBehaviour
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- org.wicketstuff.minis.behavior.mootip.MootipBehaviour
-
- All Implemented Interfaces:
Serializable,IComponentAwareEventSink,IComponentAwareHeaderContributor,IClusterable
public class MootipBehaviour extends Behavior
Mootip behavior, implements integration with this http://www.uhleeka.com/dev/mootips/ The component you add this behavior to will be the component which the tooltip appears for- Author:
- nino.martinez @ jayway.dk
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MootipBehaviour(String title, String content)simple tooltip, using title as tool tip it uses this syntax for splittingtitle='this will be title:this will be content'MootipBehaviour(String title, String content, boolean contribute)simple tooltip, using title as tool tip it uses this syntax for splittingtitle='this will be title:this will be content'MootipBehaviour(MootipPanel panel)Ajax ToolTip, retrieves the panel with an ajax call.MootipBehaviour(MootipPanel panel, boolean contribute)Ajax ToolTip, retrieves the panel with an ajax call.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(Component component)protected StringgetEscapedComponentMarkupId()Gets the escaped DOM id that the input will get attached to.booleanisAjax()voidrenderHead(Component c, IHeaderResponse response)Add the required css and js files to the page Also add the javascript to create the tooltipvoidsetMootipSettings(MootipSettings mootipSettings)-
Methods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onConfigure, onEvent, onException, onRemove, onTag, unbind
-
-
-
-
Constructor Detail
-
MootipBehaviour
public MootipBehaviour(MootipPanel panel)
Ajax ToolTip, retrieves the panel with an ajax call. Requests the panel on each tooltip display- Parameters:
panel-
-
MootipBehaviour
public MootipBehaviour(MootipPanel panel, boolean contribute)
Ajax ToolTip, retrieves the panel with an ajax call. Requests the panel on each tooltip display- Parameters:
panel-
-
MootipBehaviour
public MootipBehaviour(String title, String content)
simple tooltip, using title as tool tip it uses this syntax for splittingtitle='this will be title:this will be content'- Parameters:
title-content-
-
-
Method Detail
-
getEscapedComponentMarkupId
protected final String getEscapedComponentMarkupId()
Gets the escaped DOM id that the input will get attached to. All non word characters (\W) will be removed from the string.- Returns:
- The DOM id of the input - same as the component's markup id}
-
isAjax
public boolean isAjax()
-
renderHead
public void renderHead(Component c, IHeaderResponse response)
Add the required css and js files to the page Also add the javascript to create the tooltip- Specified by:
renderHeadin interfaceIComponentAwareHeaderContributor- Overrides:
renderHeadin classBehavior
-
setMootipSettings
public void setMootipSettings(MootipSettings mootipSettings)
-
-