Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Mit RapidClipse entwickelte (Vaadin) Oberflächen basieren auf dem MVC-Konzept interfaces developed with RapidClipse are based on the MVC concept (Model-View-Control), bei dem die grafische Oberfläche aus 3 voneinander getrennten Schichten besteht:

  • Model - Daten-Container, der die Daten für die Datenausgabe aufnimmt und im Hauptspeicher zwischenspeichert, z.B. das Abfrageergebnis einer Datenbankabfrage oder Rückgabedaten die ein Webservice-Call liefert. In RapidClipse kann das Model mit beliebigen Daten-Objekten (Beans) befüllt werden, i.d.R. mit Entities (mit JPA Annotation markierte Beans).
  • View - UI-Komponente, welche die Daten aus dem Daten-Container (Model) auf der Oberfläche anzeigt.  
  • Contoller - Registriert Ereignisse auf der UI-Komponente und reagiert darauf (Events). 

Um Daten auf der Oberfläche anzeigen zu können, muss der UI-Komponente (View) immer explizit ein Daten-Container (Model) zugewiesen werden. Diese Verknüpfung von UI-Komponente und Daten-Container wird allgemein als Databinding bezeichnet. In RapidClipse kann die Verknüpfung wahlweise programmatisch oder auf einfache Weise im GUI-Builder mit Drag-and-Drop erfolgenin which the graphical user interface consists of three separate layers:

  • Model: Data container that holds the data for the data output and caches it in the main memory; e.g., the results of a database query or the return data provided by a web service call. In RapidClipse, the model can be populated with arbitrary data objects (beans), usually with entities (beans annotated with JPA).
  • View: UI component that displays the data from the data container (Model) on the interface.
  • Controller: Registers events on the UI component and responds to them (Events). 

To display the data on the interface, a data container (model) has to be explicitly assigned to the UI component (View). This combination of the UI component and the data container is generally referred to as data binding. In RapidClipse, this connection can be achieved either programmatically or by simply using the drag and drop functionality in the GUI Builder