Tooltips, Context Menus and Popups"
From Documentation
m |
m |
||
Line 2: | Line 2: | ||
__TOC__ | __TOC__ | ||
+ | |||
+ | The support of tooltips, context menus and popups are generic. Any component inherited from <javadoc>org.zkoss.zul.impl.XulElement</javadoc> can handle them in the same way. | ||
+ | |||
=Tooltips= | =Tooltips= | ||
+ | |||
+ | To provide a custom tooltip, you could specify the ID of the custom tooltip in the target component's <tt>tooltip</tt> (<javadoc method="setTooltip(java.lang.String)">org.zkoss.zul.impl.XulElement</javadoc> or <javadoc method="setTooltip(org.zkoss.zul.Popup)">org.zkoss.zul.impl.XulElement</javadoc>). | ||
+ | |||
+ | Notice that if you'd like to have different text for the tooltip (rather than a fully customized look), you shall use <javadoc method="setTooltiptext(java.lang.String)">org.zkoss.zk.ui.HtmlBasedComponent</javadoc> instead (which is easier to use). | ||
+ | |||
=Context Menus= | =Context Menus= | ||
=Popups= | =Popups= |
Revision as of 09:19, 21 December 2010
The support of tooltips, context menus and popups are generic. Any component inherited from XulElement can handle them in the same way.
Tooltips
To provide a custom tooltip, you could specify the ID of the custom tooltip in the target component's tooltip (XulElement.setTooltip(String) or XulElement.setTooltip(Popup)).
Notice that if you'd like to have different text for the tooltip (rather than a fully customized look), you shall use HtmlBasedComponent.setTooltiptext(String) instead (which is easier to use).
Context Menus
Popups
Version History
Version | Date | Content |
---|---|---|