Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[riena-dev] default Binding-Manager

Hallo,

Riena provides for binding (currently) to different binding managers
(IBindingManager):

1. DefaultBindingManager
The (new) default binding manager (only) adds during injection the
Ridgets to a collection of IRidgetConainter (e.g. SubModuleController).
To access a ridget in the controller you must use the method
getRidget(id).
 Example: IToggleButtonRidget checkMandatory = (IToggleButtonRidget)
getRidget("checkMandatory");
Disadvantage: cast is necessary.

2. InjectBindingManager
This (old default) binding manager injects the Ridgets with the help of
setter methods. For every ridget the controller must have a according
setter. 
Advantage: type safe
Disadvantage: you must have setter methods in the controller

TODO: Both binding managers have very similar methods. Maybe the
InjectBindingManager can extends the DefaultBindingManager.

Regards

Thorsten
 


Back to the top