Label DTD and XML definitions

The Label extends SpLabel. It has the following entry in the DTD file:
Table 1. Label definition
Line entry in the DTD file Description
<!ELEMENT Label EMPTY> A Label does not contain any sub-elements
<!ATTLIST Label
    label CDATA #REQUIRED
    width CDATA "32"
    height CDATA "22"
    name CDATA #IMPLIED
    x CDATA #REQUIRED
    y CDATA #REQUIRED
    onClick CDATA #IMPLIED
    onMouseEntered CDATA #IMPLIED
    onMouseExited CDATA #IMPLIED
    onInitialize CDATA #IMPLIED>
Attribute list
Table 2. Label attributes
Attribute Description
label Text value for the label (mandatory)
width Width of the label
height Height of the label
name Name used by the Desktop to identify this component. Applications can have access to this object at runtime by requesting it by name from the Desktop.
x Horizontal coordinate for the location of the label within its parent container (mandatory)
y Vertical coordinate for the location of the label within its parent container (mandatory)
onClick Java™ code to be executed when the label is clicked
onMouseEntered Java code to be executed when the mouse cursor is placed over the label
onMouseExited Java code to be executed when the mouse cursor is moved away from the label
onInitialize Java code to be executed when the component is initialized
The following is an example of an XML definition for a Label:
<Label label="Customer name" width="45" 
  height="15" x="31" y="10" />