Class LabelImageElement

All Implemented Interfaces:
Serializable, Cloneable, Component, Scope, ComponentCtrl
Direct Known Subclasses:
A, Avatar, Breadcrumbitem, Button, Caption, Carouselitem, Checkbox, Chip, Comboitem, Fisheye, FooterElement, HeaderElement, Listcell, Menu, Menuitem, Nav, Navitem, Orgnode, Tab, Treecell

public abstract class LabelImageElement extends LabelElement
A XUL element with a label (LabelElement.getLabel()) and an image (getImage()).

[Since 6.0.0]

To turn on the preload image function for this component, you have to specify the component's attribute map with key "org.zkoss.zul.image.preload" to true. That is, for example, if in a zul file, you shall specify <custom-attributes> of the component like this:

 <button ...>
     <custom-attributes org.zkoss.zul.image.preload="true"/>
 </button>
 
Or specify it onto the root component. For example,
 <window ...>
     <custom-attributes org.zkoss.zul.image.preload="true"/>
     <button .../>
 </window>
 
[Since 6.5.2]

Preload image function is also configurable from zk.xml by setting library properties. For example,

 <library-property/>
     <name>org.zkoss.zul.image.preload</name/>
     <value>true</value/>
 </library-property/>
 
Author:
tomyeh
See Also: