Ultra Light Client Guide and Reference

Working with Variable parts

In ULC, Variable parts have work to do that standard VisualAge Variable parts do not. ULC Variable parts must be able to communicate with both ULC and standard Smalltalk classes, for example, pre-existing business domain objects. This task is complicated by the need for compile-time resolution of run-time UI/application connections under ULC. The UlcVariable class (which appears on the palette as the Variable part) does this largely without your having to be concerned with what is happening.

  1. To use a Variable part in ULC, drop it on the free-form surface the way you would a standard VisualAge Variable part.
  2. Set the type of the Variable from the part's pop-up menu. From that point on, the Variable part will accept as valid values only those objects that inherit from the specified type.

The type of a ULC variable cannot be changed at run time. However, the contents can be changed at any time as long as the new value is of the correct type. nil is also a valid object for variables of any type.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]