-
Notifications
You must be signed in to change notification settings - Fork 5
Presentation View Component
A presentation view component is a mediator between a concrete visual component and an applicable presentation model component. It attaches itself as a change listener to both and synchronizes their state.
Calling it a mediator doesn't necessarily mean that it has to be implemented as a separate class. Actually we have created many view components by subclassing original Swing components.
Beanfabrics comes with a palette of prefabricated view components for nearly all Swing classes and offers a simple way to create custom view components from scratch or by combining existing ones. Also an experimental library with a small set of view components for SWT controls is available. By implementing the View interface a view component follows the standard way to communicate it's appropriate model type and offers methods for setting and getting it's model.
Examples are BnTextField, BnTextArea, BnComboBox, BnButton, and BnTable.