|
|
Bungee Logic : Intrinsic : ViewFrom $1Table of contents
DescriptionEach Control Adapter contains two intrinsic functions associated with the adapter: Model and View. Use View code to add code to an adapter so that you can cause programmatic updates to your application's Model elements (your application objects). This may sound contradictory, but the updates to the Model are based on user interactions with View elements (controls) and the events these generate, hence this is View code. Adding View Code
VariablesView functions contain two intrinsic variables:
ExampleThere is an example of View code in Example 5 of the List control documentation. The code (shown below) updates the Model (a field called selectedElement inherited from Example 4) based on user selection of an element displayed in the List control. The updated field is then used to compute a new string for a second field (selectedPersonComputedText) of class EX5_PersonCollectionWithView. The computed string is then displayed on the same form in a Label control.
PropertiesGeneral Tab
Tags:
|