org.wicketstuff.minis.mootipbehavior
Class MootipBehaviour

java.lang.Object
  extended by org.apache.wicket.behavior.AbstractBehavior
      extended by org.wicketstuff.minis.mootipbehavior.MootipBehaviour
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.behavior.IBehavior, org.apache.wicket.IClusterable, org.apache.wicket.markup.html.IHeaderContributor

public class MootipBehaviour
extends org.apache.wicket.behavior.AbstractBehavior

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
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.
MootipBehaviour(java.lang.String title, java.lang.String content)
          simple tooltip, using title as tool tip it uses this syntax for splitting title='this will be title:this will be content'
MootipBehaviour(java.lang.String title, java.lang.String content, boolean contribute)
          simple tooltip, using title as tool tip it uses this syntax for splitting title='this will be title:this will be content'
 
Method Summary
 void bind(org.apache.wicket.Component component)
           
protected  java.lang.String getEscapedComponentMarkupId()
          Gets the escaped DOM id that the input will get attached to.
 boolean isAjax()
           
 void renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
          Add the required css and js files to the page Also add the javascript to create the tooltip
 void setMootipSettings(MootipSettings mootipSettings)
           
 
Methods inherited from class org.apache.wicket.behavior.AbstractBehavior
afterRender, beforeRender, cleanup, detach, detachModel, exception, getStatelessHint, isEnabled, isTemporary, onComponentTag, onException, onRendered, rendered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MootipBehaviour

public MootipBehaviour(java.lang.String title,
                       java.lang.String content)
simple tooltip, using title as tool tip it uses this syntax for splitting title='this will be title:this will be content'

Parameters:
title -
content -

MootipBehaviour

public MootipBehaviour(java.lang.String title,
                       java.lang.String content,
                       boolean contribute)
simple tooltip, using title as tool tip it uses this syntax for splitting title='this will be title:this will be content'

Parameters:
title -
content -

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 -
Method Detail

isAjax

public boolean isAjax()

setMootipSettings

public void setMootipSettings(MootipSettings mootipSettings)

bind

public void bind(org.apache.wicket.Component component)
Specified by:
bind in interface org.apache.wicket.behavior.IBehavior
Overrides:
bind in class org.apache.wicket.behavior.AbstractBehavior

getEscapedComponentMarkupId

protected final java.lang.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}

renderHead

public void renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
Add the required css and js files to the page Also add the javascript to create the tooltip

Specified by:
renderHead in interface org.apache.wicket.markup.html.IHeaderContributor
Overrides:
renderHead in class org.apache.wicket.behavior.AbstractBehavior
See Also:
IHeaderContributor.renderHead(org.apache.wicket.markup.html.IHeaderResponse)


Copyright © 2010. All Rights Reserved.