<ICON> : Icon

Java class : leon.view.LyIcon

ROLE

An icon allows defining an image to which a text can be associated.

ATTRIBUTES

<!ATTLIST ICON
	  id NMTOKEN #IMPLIED
	  template NMTOKEN #IMPLIED
	  label CDATA #REQUIRED
	  image CDATA #REQUIRED
	  width NMTOKEN #IMPLIED
	  height NMTOKEN #IMPLIED
	  border ( NONE | SINGLE | DOUBLE | RAISED | LOWERED) "NONE"
	  bean CDATA #IMPLIED>
Attribute Mand. Description Default
id no ICON.id  
template no ICON.template  
label yes Text to display with the image  
image yes Image  
width no Width of the image -1
height no Height of the image -1
border no Allows defining whether a border will be displayed around the image or not:
NONE: No border (default value)
SINGLE: Simple border
DOUBLE: Double border
RAISED: Border simulating a raised 3D frame
LOWERED: Border simulating a lowered 3D frame
NONE
bean no Allows specifying the name of a Java class that replaces the default graphical component.  

ELEMENTS

<!ELEMENT ICON 
	  (CONSTRAINT?)>
Element Mand. Mult. Description
CONSTRAINT no no Positioning constraint of the icon.

SAMPLE

<ICON label="Text of the button" image="button.gif"/>