ExitButton DTD and XML definitions

The ExitButton has many of the attributes of the IconButton, plus additional attributes dealing with the confirmation window and its message. There must be one and only one ExitButton in the Desktop. The ExitButton has the following entry in the DTD file:
Table 1. ExitButton definition
Line entry in the DTD file Description
<!ELEMENT ExitButton EMPTY> An ExitButton does not contain any sub-elements
<!ATTLIST ExitButton
    name CDATA #FIXED "ExitButton"
    iconName CDATA #REQUIRED
    toolTipText CDATA #REQUIRED
    width CDATA "32"
    height CDATA "22"
    x CDATA #REQUIRED
    y CDATA #REQUIRED
    confirmationWindowTitle CDATA "Confirmation"
    confirmationWindowMessage CDATA "confirmationWindowMessage"
    confirmationWindowYesTitle CDATA "confirmationWindowYesTitle"
    confirmationWindowNoTitle CDATA "confirmationWindowNoTitle"
    onInitialize CDATA #IMPLIED>
Attribute list
Table 2. ExitButton attributes
Attribute Description
name Name of the component used by the Desktop for its unique identification. This attribute is fixed, and its value is "ExitButton". A new class can be implemented to substitute or extend the one provided, but the name must not be changed, to allow the Desktop to identify the component as the exit button.
iconName Name of the file containing an icon to be set into the button (mandatory)
toolTipText Text that is shown when the mouse cursor is moved over the button (mandatory)
width Width of the button
height Height of the button
x Horizontal coordinate for the location of the button (mandatory)
y Vertical coordinate for the location of the button (mandatory)
confirmation WindowTitle Text of the confirmation prompter view title
confirmation WindowMessage Text of the confirmation prompter view message
confirmation WindowYesTitle Text of the confirmation prompter view "YES" button
confirmation WindowNoTitle Text of the confirmation prompter view "NO" button
onInitialize Java code to be executed when the component is initialized
The following is an example of an XML definition for an ExitButton:
<ExitButton width="32" x="349" y="5" 
  iconName="/exit.gif" toolTipText="Exit" 
  confirmationWindowTitle="Confirmation Required" 
  confirmationWindowMessage="You are about to quit the 
    Desktop. Are you sure?"/>