public class BeautyTips extends AbstractToolTip
setRawOptions(String)
.
For a detailed description of options, CSS styling and other thins have a look at the original documentation.Constructor and Description |
---|
BeautyTips(String tooltipText) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.wicket.markup.html.IComponentAwareHeaderContributor |
getHeaderContributor() |
String |
getJavaScript() |
void |
renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response) |
BeautyTips |
setActiveClass(String activeClassName)
Sets the CSS class for the Component that triggers the ToolTip.
|
BeautyTips |
setCornerRadius(int radius)
Sets the radius of the ToolTip box.
|
BeautyTips |
setCssClass(String cssClassName)
Sets the CSS class for the ToolTip content.
|
BeautyTips |
setCssStyles(String cssStyles)
Sets some CSS styles for the ToolTip content, e.g.
|
BeautyTips |
setPadding(int paddingInPx)
Sets the padding of the ToolTip's content in px.
|
BeautyTips |
setRawOptions(String options)
You can use this method to set special options not covered by
other methods.
|
BeautyTips |
setSpikeGirth(int width)
Sets the width of the spike.
|
BeautyTips |
setSpikeLength(int length)
Sets the length of the spike.
|
BeautyTips |
setSpikeOverlap(int overlap)
Sets the overlap of the spike onto target.
|
BeautyTips |
setTooltipText(String htmlCode)
Set the content of the ToolTip.
|
BeautyTips |
setWidth(int widthInPx)
Sets the width of the ToolTip in px.
|
bind, getTooltipText, update
public BeautyTips(String tooltipText)
public void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
renderHead
in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributor
renderHead
in class AbstractToolTip
protected org.apache.wicket.markup.html.IComponentAwareHeaderContributor getHeaderContributor()
getHeaderContributor
in class AbstractToolTip
public BeautyTips setTooltipText(String htmlCode)
setTooltipText
in class AbstractToolTip
htmlCode
- the contentpublic String getJavaScript()
getJavaScript
in class AbstractToolTip
public BeautyTips setRawOptions(String options)
options
- the special options, e.g. "width:15px,trigger:['focus mouseover', 'blur mouseout']"
public BeautyTips setWidth(int widthInPx)
widthInPx
- The width of the ToolTip in pxpublic BeautyTips setPadding(int paddingInPx)
paddingInPx
- The padding of the ToolTip's content of the ToolTip in pxpublic BeautyTips setSpikeGirth(int width)
width
- The width of the spikepublic BeautyTips setSpikeLength(int length)
length
- The length of the spikepublic BeautyTips setSpikeOverlap(int overlap)
overlap
- The overlap of the spike onto targetpublic BeautyTips setCornerRadius(int radius)
radius
- The radius of the ToolTip box.public BeautyTips setCssClass(String cssClassName)
cssClassName
- the name of a CSS classpublic BeautyTips setCssStyles(String cssStyles)
"color: red, background-color: black"
cssStyles
- the CSS stylespublic BeautyTips setActiveClass(String activeClassName)
activeClassName
- the name of a CSS classCopyright © 2015. All rights reserved.