ConstraintJS
Authors:
Open Access
- 7 October 2012
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 229-238
Abstract
Interactive behaviors in GUIs are often described in terms of states, transitions, and constraints, where the constraints only hold in certain states. These constraints maintain relationships among objects, control the graphical layout, and link the user interface to an underlying data model. However, no existing Web implementation technology provides direct support for all of these, so the code for maintaining constraints and tracking state may end up spread across multiple languages and libraries. In this paper we describe ConstraintJS, a system that integrates constraints and finite-state machines (FSMs) with Web languages. A key role for the FSMs is to enable and disable constraints based on the interface's current mode, making it possible to write constraints that sometimes hold. We illustrate that constraints combined with FSMs can be a clearer way of defining many interactive behaviors with a series of examples.Keywords
This publication has 15 references indexed in Scilit:
- Proton2012
- A natural, tiered and executable UIDL for 3D user interfaces based on Concept-Oriented DesignACM Transactions on Computer-Human Interaction, 2009
- Flapjax2009
- Programming rich interactions using the hierarchical state machine toolkit2006
- The bubble cursor2005
- Lessons learned about one-way, dataflow constraints in the Garnet and Amulet graphical toolkitsACM Transactions on Programming Languages and Systems, 2001
- Past, present, and future of user interface software toolsACM Transactions on Computer-Human Interaction, 2000
- Constraint cascading style sheets for the Web1999
- Integrating pointer variables into one-way constraint modelsACM Transactions on Computer-Human Interaction, 1994
- Skyblue1994