Seamless Composition and Reuse of Customizable User Interfaces with Spec - Inria - Institut national de recherche en sciences et technologies du numérique Accéder directement au contenu
Article Dans Une Revue Science of Computer Programming Année : 2014

Seamless Composition and Reuse of Customizable User Interfaces with Spec

Résumé

Implementing UIs is often a tedious task. To address this, UI Builders have been proposed to support the description of widgets, their location, and their logic. A missing aspect of UI Builders is however the ability to reuse and compose widget logic. In our experience, this leads to a significant amount of duplication in UI code. To address this issue, we built Spec: a UIBuilder for Pharo with a focus on reuse. With Spec, widget properties are defined declaratively and attached to specific classes known as composable classes. A composable class defines its own widget description as well as the model-widget bridge and widget interaction logic. This paper presents Spec, showing how it enables seamless reuse of widgets and how these can be customized. After presenting Spec and its implementation, we discuss how its use in Pharo 2.0 has cut in half the amount of lines of code of six of its tools, mostly through reuse. This shows that Spec meets its goals of allowing reuse and composition of widget logic.

Mots clés

Fichier principal
Vignette du fichier
Ryse13a-SCICO-Spec.pdf (843.11 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-00915350 , version 1 (07-12-2013)

Identifiants

Citer

Benjamin van Ryseghem, Stéphane Ducasse, Johan Fabry. Seamless Composition and Reuse of Customizable User Interfaces with Spec. Science of Computer Programming, 2014, ⟨10.1016/j.scico.2013.11.035⟩. ⟨hal-00915350⟩
271 Consultations
266 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More