Behavior
This chapter discusses how a user interface that is created with
uiml.net can be linked with application logic.
Connect the interface
Based on the libGlade autoconnect funtion,
the uiml.net library provides a Connect function that allows a developer to
connect a user interface with its program code. The programmer can register
objects for usage when a call is executed. For example, a call can be specified
as follows: ]]>. If this is executed,
will be mapped on a class; and Name on an attribute or operation
from this class; . The programmer can now register objects from the type
, and will be called on these object instances. If
no instance is registered, uiml.net will try to invoke a static on
the class, if this exists.
Consider the UIML document in example .
A simple UIML front-end user interface to illustrate Connect
]]>