Ultra Light Client Guide and Reference


List general advice

Code example

UlcList can display a single attribute from a collection of objects, using UlcTableModel to fetch the data:

|tableModel box|
 
(tableModel := UlcTableModel new) model: someAddress.
 
(box := UlcBox new)
 add: (UlcList new
               tableModel: formModel;
               attributeName: 'street';
               yourself).
 
UlcShell new add: box

In the Composition Editor, you can accomplish this by setting the attributeName property to street and making the following connections:

Using List without a table model

From the Composition Editor, you can preload String values into the list by editing the rows property. You can also assemble a collection of items in code and set the rows attribute by passing in the collection. However, for most data of any consequence, you are better off using a table model.


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