Skip to Main content Skip to Navigation
Conference papers

Spec: A Framework for the Specification and Reuse of UIs and their Models

Abstract : 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 : lse-pub
Document type :
Conference papers
Complete list of metadata

Cited literature [9 references]  Display  Hide  Download
Contributor : Benjamin van Ryseghem Connect in order to contact the contributor
Submitted on : Thursday, November 29, 2012 - 5:33:30 PM
Last modification on : Tuesday, August 24, 2021 - 4:52:03 PM
Long-term archiving on: : Saturday, December 17, 2016 - 5:27:05 PM


Files produced by the author(s)


  • HAL Id : hal-00759030, version 1


Benjamin van Ryseghem, Stéphane Ducasse, Johan Fabry. Spec: A Framework for the Specification and Reuse of UIs and their Models. Proceedings of ESUG International Workshop on Smalltalk Technologies (IWST 2012), Aug 2012, Gent, Belgium. ⟨hal-00759030⟩



Les métriques sont temporairement indisponibles