About this task
Create the Desktop tag as follows:
- Set the Desktop attribute initializerClass to an initializer class
you have created, and the static initializerMethod to the class that should
run to initialize the Desktop. Set the width attribute to 977 and
the height to 630.
- Add a new ScenarioArea.
- Add a CustomizableArea, and set its name to "CA1" and its width
to 297.
- Add a CustomizableArea, and set its name to "CA2" and its width
to 80.
- Add a CustomizableArea, and set its name to "CA3", its width to
247, and its height to 457.
- Add a WorkingArea, and set its defaultIcon to "images/Logo.gif"
and its iconName to "images/background.gif".
- Add a CustomizableArea, and set its name to "CA4", its width to
489, and its height to 30.
- Add a TaskArea, and set its maxNumberOfTasks to 6.
- Add a TaskInfo, and set its taskName to "TX01", its longDescription
to "Withdrawal Operation," its shortDescription to "Withdrawal", and its code
to "WITH".
Results
The following shows the XML file so far:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE Desktop SYSTEM "desktop.dtd">
<Desktop width="977" height="630" initializerClass="labs.CBTFInitializer"
initializerMethod="initEnv" title="Sample Desktop">
<ScenarioArea>
</ScenarioArea>
<CustomizableArea name="CA1" width="297" >
</CustomizableArea>
<CustomizableArea name="CA2" width="80" >
</CustomizableArea>
<CustomizableArea name="CA3" width="247" height="457" >
</CustomizableArea>
<WorkingArea iconName="/images/background.gif" defaultIcon="/images/logo.gif" />
<CustomizableArea name="CA4" width="489" height="30" >
</CustomizableArea>
<TaskArea maxNumberOfTasks="6" />
<TaskInfo taskName="TX01" shortDescription="Withdrawal"
longDescription="Withdrawal Operation" code="WITH" />
</Desktop>