Computer ScienceTextbook

The Spec UI framework

Not rated yetRate this book

The Spec UI framework explains how to build reusable graphical interfaces in Pharo. Johan Fabry and Stéphane Ducasse introduce composition, presenters, layouts and widget interaction through examples and reference chapters. This edition focuses on Pharo 5 and 6.

FormatPDF
LanguageEnglish
SubjectComputer Science
LevelNot specified
No. of pages84
Published2017
Read free online →

The Spec UI framework source edition coverFree

About this book

This developer-oriented textbook treats a user interface as a composition of smaller interfaces. Buttons and labels are themselves reusable components, and larger combinations can become components for another application. The introduction connects this approach with the Model–View–Presenter pattern and distinguishes Spec from Morphic and the GT Tools. The book recommends reading its introductory examples before using the later chapters as a reference. Its version context matters: the authors explicitly focus on Pharo 5 and 6, so the examples should be read in that environment rather than assumed to describe every later release.

The attached edition contains 84 PDF pages, including front matter. Cover: source edition title page rendered from the PDF. The textbook and its original notices are retained; Academic Master’s study material is separate from the source text.

Book summary

Study overview of the reviewed opening

The introduction identifies reuse as the organising principle of Spec. A developer configures and combines existing interfaces instead of constructing each screen as an isolated object. This principle extends from a simple button to a larger group of interacting controls. The useful distinction is between the behaviour of an interface and the concrete widgets that eventually display it.

The authors explain that a ComposableModel carries interface logic and connects controls with domain objects. Opening the interface creates the appropriate widgets. This arrangement is influenced by Model–View–Presenter, although the programming experience can feel like direct widget manipulation. Spec is contrasted with Morphic, which supports a wider graphical world, and the GT Tools, which specialise in development environments.

The reading route is deliberately selective. Chapters 2 and 3 provide first contact and demonstrate composition; Chapter 4 offers the conceptual foundation. Layouts deserve attention even when later chapters are consulted on demand. The remaining contents cover windows, advanced controls, dynamically changing interfaces and practical integration tips. These are a map of the verified contents, rather than separate summaries of chapters not reviewed here.

Book contents

  1. Introduction
  2. First Contact With Examples
  3. Reusing and composing elements
  4. The fundamentals of Spec
  5. Layout Construction
  6. Managing windows
  7. Advanced Widgets
  8. Dynamic Spec
  9. Tips and Tricks

Questions for study

The following prompts are Academic Master’s editorial material.

  • How does reuse apply to both a button and a complete interface?
  • What responsibility belongs to the ComposableModel?
  • Why should the software version be recorded when testing an example?

Sources and coverage

Chapter 1, Introduction, read in full (PDF pages 7–8); title, copyright page and contents checked.

Source edition · Source licence

About access & copyright

Check this edition’s source and licence before reusing its files or content. A library listing does not grant additional rights.

Read our Library Access & Copyright policy

Composition

Understand the introduction’s account of interfaces built from reusable interfaces.

Presenters

Distinguish interface logic from concrete widget creation.

Framework choice

Compare the stated scope of Spec, Morphic and GT Tools.

Version context

Interpret examples within Pharo 5 and 6.

Reader ratings & reviews

Be the first to rate

No ratings yet

0%0%
0%0%
0%0%
0%0%
0%0%

Share your thoughts

Your review helps other students choose the right resources.

Rate this book

How helpful was this book?No sign-up needed. Your rating appears instantly.