cs349 - s10 - Lecture 9

CS349 - Implementing User Interfaces - Spring 2010

Public Service Annoucements

  1. Assignment 1
  2. Class `almost cancelled' next Wednesday

Lecture 9 - Interactive Components

Implementation Architecture: Model-view-controller

So well known (over-exposed) that it is a design pattern.

Spreadsheet

Model

View

Controller

In practice

View & controller are never independent. Why?

Designing Interactive Components

What we try to achieve

All of the following are problematic

How we try to achieve it: UI toolkit

A collection of components that are assembled into an interface.

Apple, for example, controlled the look-and-feel of third party applications by providing a UI toolkit.


UI toolkits

Important properties of a UI toolkit

Completeness

Types of components

  1. Containers
  2. Canvases
  3. Selectors
  4. Changers
  5. Text editors

Anatomy of a file chooser

Anatomy of a button

Macintosh Seven

Macintosh item Type Subsidiary types
Button Container selector, canvas
Slider Changer
Pulldown menu Selector
Check box Changer
Radio buttons Selector
Text entry Editor
File Open/Save/Close Container editor, selector, button

Return to: