Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
XML UI Spec Builder
Last updated at 2:03 pm UTC on 16 January 2006
XML UI Spec Builder lets you generate UI's based on an XML spec, for both Morphic and MVC! This was part of the Squeak World Tour work done on the Stable Squeak 2.8 platform. For more details, see http://groups.yahoo.com/group/squeak/message/24995. (Note: this message doesn't exist. Can anyone provide a new pointer or more info?)

Here are the files. (The ReadMeXML.text file contains the installation instructions.)

ReadMeXML.text
XML.cs
Kernel-SessionManagement.st
Kernel-UIConstruction.st
Kernel-UI-Morphic.st
Kernel-UI-MVC.st
ModelXMLViewSupport.st
ReThinkSampleApplication.st


For reference, here are the contents of the ReadMeXML file:

OVERVIEW

This release builds on the XML Parser contributed by Exobox.
(Look in the Squeak list for a contribution from Duane Maxwell)
It defines an XML syntax for describing vanilla applications and
supplies an XMLReader that will produce a structured tree of view
specifications.

It introduces a SessionManager that knows the available UIBuilders.
When given a UISpec and a model object, a UIBuilder is responsible
for constructing the corresponding view upon the supplied model
object. Two base UIBuilders are supplied, one for MVC and one for
Morphic.

To create an application, create a subclass of model. Add a class
side method with the XML string that specifies its view and you
are ready to roll with either MVC or Morphic.

CAVEATS

This code was developed as part of the Squeak World Tour. As
such, it has only been tested on a Squeak 2.8 base. It should
file into a 3.0 image and is expected to work.

INSTALLATION

FileIn in order ...

XML.2.cs
Kernel-SessionManagement.st
Kernel-UIConstruction.st
Kernel-UI-Morphic.st
Kernel-UI-MVC.st
ModelXMLViewSupport.st
ReThinkSampleApplication.st

Go to preferences and allow MVC projects.

Then execute:
MyApp open
in both a Morphic world and an MVC world.