ConstraintJS
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.
- Venue
- UIST 2012
- Volume
- Proceedings of the 25th annual ACM symposium on User interface software and technology
- DOI
- 10.1145/2380116.2380146
- https://dl.acm.org/doi/pdf/10.1145/2380116.2380146
- Anthology ID
2012.uist.25
Cite
@inproceedings{oney-etal-2012-constraintjs,
title = {{ConstraintJS}},
author = {Stephen Oney and Brad Myers and Joel Brandt},
booktitle = {Proceedings of the 25th annual ACM symposium on User interface software and technology},
isbn = {9781450315807},
year = {2012},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
doi = {10.1145/2380116.2380146},
url = {https://doi.org/10.1145/2380116.2380146},
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.}
}