LabelImageElement

A HTML element with a label and an image.

Class Name

org.zkoss.zul.impl.LabelImageElement

Properties

Property

Description

Data Type

Default Value

image

Sets the label

String

null

imageContent

Sets the content directly

org.zkoss.image.Image

null

src

Sets the image URI

String

null

Methods

Name

Description

Return Data Type

isImageAssigned()

Returns whether the image is available.

It return true if setImage(java.lang.String) or setImageContent(org.zkoss.image.Image) is called with non-null.

boolean

getImgTag()

Returns the HTML IMG tag for the image part.

Used only for component template, not for application developers.

Note: the component template shall use this method to generate the HTML tag, instead of using getImage().

String

Inherited From