|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.wicket.behavior.AbstractBehavior
org.apache.wicket.behavior.AbstractHeaderContributor
org.wicketstuff.jwicket.tooltip.AbstractToolTip
org.wicketstuff.jwicket.tooltip.WalterZornTips
public class WalterZornTips
This class is a wrapper around Walter Zorn's ToolTip library. The implementation covers version 5.31 together with jQuery 1.3.2. For a detailed description of options, CSS styling and other thins have a look at the original documentation.
| Field Summary | |
|---|---|
static org.wicketstuff.jwicket.JQueryJavascriptResourceReference |
walterzorn
|
| Constructor Summary | |
|---|---|
WalterZornTips(java.lang.String tooltipText)
|
|
| Method Summary | |
|---|---|
void |
disable(org.apache.wicket.ajax.AjaxRequestTarget target)
|
void |
enable(org.apache.wicket.ajax.AjaxRequestTarget target)
|
void |
onComponentTag(org.apache.wicket.Component component,
org.apache.wicket.markup.ComponentTag tag)
|
WalterZornTips |
setAbove(boolean value)
Places the tooltip above the mouse symbol. |
WalterZornTips |
setBgColor(java.lang.String color)
Sets the background color of the tooltip box. |
WalterZornTips |
setBgImg(java.lang.String image)
Sets the background image of the tooltip box. |
WalterZornTips |
setBorderColor(java.lang.String color)
Sets the color of the tooltip box border. |
WalterZornTips |
setBorderStyle(java.lang.String style)
Sets the CSS style of the tooltip box border. |
WalterZornTips |
setBorderWidth(int width)
Sets the width of the tooltip box border in px. |
WalterZornTips |
setCentermouse(boolean value)
Center the tooltip horizontally relating to the mouse pointer |
WalterZornTips |
setClickclose(boolean value)
Should a mouseklick close the tooltip? |
WalterZornTips |
setClicksticky(boolean value)
Enables the user to fixate the tooltip, by just clicking onto the HTML element (e.g. |
WalterZornTips |
setCloseButton(boolean value)
Should a close button be displayed inside the tooltip box |
WalterZornTips |
setCloseButtonColors(java.lang.String background,
java.lang.String text,
java.lang.String highlighted,
java.lang.String highlightedText)
Set the colors used for the closebutton. |
WalterZornTips |
setCloseButtonText(java.lang.String text)
Sets the text displayed in a close button |
WalterZornTips |
setDelay(int ms)
Sets the delay in ms after the tolltip shows up |
WalterZornTips |
setDuration(int ms)
Sets the time in ms until the tolltip is hidden |
WalterZornTips |
setExclusive(boolean value)
The active tooltip stays open until it is closed activly. |
WalterZornTips |
setFadein(int ms)
The tooltip is not showed immediately. |
WalterZornTips |
setFadeout(int ms)
The tooltip is not hidden immediately. |
WalterZornTips |
setFix1(int x,
int y)
Displays the tooltip at fixed position x and y |
WalterZornTips |
setFix2(java.lang.String id,
int x,
int y)
Displays the tooltip at a position relative to another HTML element |
WalterZornTips |
setFollowmouse(boolean value)
The tooltip follows the movement of the mouse. |
WalterZornTips |
setFontcolor(java.lang.String fontcolor)
Sets the font color of the tooltip's content |
WalterZornTips |
setFontface(java.lang.String fontface)
Sets the font face of the tooltip's content |
WalterZornTips |
setFontsize(int px)
Sets the font size of the tooltip's content |
WalterZornTips |
setFontweight(java.lang.String fontweight)
Sets the font weight of the tooltip's content |
WalterZornTips |
setHeight(int px)
Sets the height of the tooltip in px |
WalterZornTips |
setJumphorz(boolean value)
See the original documentation |
WalterZornTips |
setJumpvert(boolean value)
See the original documentation |
WalterZornTips |
setLeft(boolean value)
Positions the tooltip to the left ot the mouse pointer |
WalterZornTips |
setOffsetX(int px)
Sets the x-offset from the mouse pointer |
WalterZornTips |
setOffsetY(int px)
Sets the y-offset from the mouse pointer |
WalterZornTips |
setOpacity(int value)
Sets the opacity of the tooltip content |
WalterZornTips |
setPadding(int px)
Sets the padding between the tooltip border and the contents. |
WalterZornTips |
setRawOptions(java.lang.String options)
You can use this method to set special options not covered by other methods. |
WalterZornTips |
setShadow(boolean value)
Should the tooltip box drop a shadow |
WalterZornTips |
setShadowColor(java.lang.String color)
Sets the color of the tooltip's shadow |
WalterZornTips |
setShadowWidth(int px)
Sets the width of the tooltip shadow in px |
WalterZornTips |
setSticky(boolean value)
Should the tooltip stay fixed at it's initial position |
WalterZornTips |
setTextalign(java.lang.String align)
Sets the alignment of the tooltip's text |
WalterZornTips |
setTitle(java.lang.String title)
Sets the title of te tooltip |
WalterZornTips |
setTitleAlign(java.lang.String align)
Sets the alignment of the title |
WalterZornTips |
setTitleBgColor(java.lang.String color)
Sets the background color of the title |
WalterZornTips |
setTitleFontColor(java.lang.String color)
Sets the text color of the title |
WalterZornTips |
setTitleFontFace(java.lang.String fontface)
Sets the fontface color of the title |
WalterZornTips |
setTitleFontSize(int px)
Sets the fontsize of the title |
WalterZornTips |
setTitlePadding(int px)
Sets the padding around the title |
WalterZornTips |
setTooltipText(java.lang.String htmlCode)
Set the content of the ToolTip. |
WalterZornTips |
setTooltipTextWithCorrections(java.lang.String htmlCode)
Set the content of the ToolTip. |
WalterZornTips |
setWidth(int px)
Sets the width of the tooltip's box |
| Methods inherited from class org.wicketstuff.jwicket.tooltip.AbstractToolTip |
|---|
bind, getHeaderContributors, update |
| Methods inherited from class org.apache.wicket.behavior.AbstractHeaderContributor |
|---|
renderHead |
| Methods inherited from class org.apache.wicket.behavior.AbstractBehavior |
|---|
afterRender, beforeRender, cleanup, detach, detachModel, exception, getStatelessHint, isEnabled, isTemporary, onException, onRendered, rendered |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.wicketstuff.jwicket.JQueryJavascriptResourceReference walterzorn
| Constructor Detail |
|---|
public WalterZornTips(java.lang.String tooltipText)
| Method Detail |
|---|
public void enable(org.apache.wicket.ajax.AjaxRequestTarget target)
public void disable(org.apache.wicket.ajax.AjaxRequestTarget target)
public void onComponentTag(org.apache.wicket.Component component,
org.apache.wicket.markup.ComponentTag tag)
onComponentTag in interface org.apache.wicket.behavior.IBehavioronComponentTag in class org.apache.wicket.behavior.AbstractBehaviorpublic WalterZornTips setTooltipText(java.lang.String htmlCode)
setTooltipText in class org.wicketstuff.jwicket.tooltip.AbstractToolTiphtmlCode - the contentpublic WalterZornTips setTooltipTextWithCorrections(java.lang.String htmlCode)
htmlCode gets modified:
| original | replaced by | ||||||||
|---|---|---|---|---|---|---|---|---|---|
" | " | ||||||||
' | \' | ||||||||
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||