Concept : Understanding Connections

Page Status: Beta

Back to Concepts and HOW TOs

Contents

[edit] Description

Connections are Model side implementations of the interfaces provided through connection adapters. Because connection adapters provide interfaces to objects representing the behavior of Bungee system controls, implementing those interfaces with connections aids runtime communication between View elements and portions of your Model.

At design time, you either bind a control or add a connection directly to a class. Either scenario makes the connection a member of a class. Since the class is contained in a project, the connection can access any connection adapter you add to the project. This means that at runtime, the object instance of the class to which you added the connection has the ability to respond to queries for a particular control behavior you identified by assigning an adapter to the control by setting a property on the control to point to the adapter.

[edit] Model and View Code

When you add a connection, you can either assign portions of your Model to the fields in the connection, or you can programmatically update the control using the connection's Model and View code. Every connection suppliess two intrinsic functions:

The Model code is used to handle changes in the Model and propogate those changes to the View. Likewise, user interaction with the View can be handled by View code and used to update the Model. A good example of Model code being used to trigger updates to the View can be seen in the DynamicForm control's Example 3.

[edit] See Also

ControlConnection
Adding a Connection
Understanding Adapters
Adding an Adapter

[edit] Tags

    Copyright © 2005 - 2007 Bungee Labs. All rights reserved.