What type of GUI object is the root of a containment hierarchy?
Container
A GUI object can act as a listener to only one event source.
FALSE
Each GUI component instance can be contained only once in a containment hierarchy.
TRUE
All events in the event queue must be processed.
FALSE
GUI frameworks hide large chunks of the control flow of the program
TRUE
What is a graphical user interface?
A graphical user interface is a computer display format that allows the user to select commands, call up files, start programs, and do other routine tasks by using a mouse to point to pictorial symbols (icons) or lists of menu choices on the screen as opposed to having to type in text commands.
What is a semantic event?
everything other than low-level events. Examples of semantic events include action and item events.
A semantic event might be triggered by user input;
expresses what the user is doing, such as “clicking that button”
defined at a higher-level to encapsulate the semantics of a user interface component’s model
Provide a definition for GUI framework
framework: cohesive set of interfaces and classes that collaborate to provide services for the core,
unvarying part of a logical subsystem. contains concrete (and especially) abstract classes that define interfaces to conform to., object interactions to participate in, and other invariants.
GUI framework: uses computer graphics to display individual gui components and the overall GUI
What is MVC?
what does model do?
what does controller do?
what does view do?
HTML5 is…
a markup language for web pages
What does javascript do?
What is the DOM?
document object model
- represents the web page loaded into the browser using a series of objects
- main object is the document object, which contains child objects
- specifies document interface
What is React?
a declarative, efficient, and flexible JavaScript library for building user interfaces
What is D3?
a JavaScript library for manipulating documents based on data
GUI
“Graphical User Interface” is a computer display format that allows the user to select commands, call up files, start programs, and do other routine tasks by using a mouse to point to pictorial symbols (icons) or lists of menu choices on the screen as opposed to having to type in text commands
WIMP
“Windows, Icons, Menus and Pointing device”
style of user interaction with a graphical user interface that allows a user to interact with the computer through the means of a pointing device such as a mouse to select words from drop down menus or images such as icons on the display screen that represent commands for movement, activation or some other action
what is a gui component?
containment hierarchy
tree of components that has a top-level
container as its root
how do components of the MVC interact?
the view recognizes a gui action»_space; the view calls the appropriate method on the controller»_space; the controller accesses the model (possibly updating it)»_space; if the model is altered it notifies interested listeners of the change (view)
what is the model-view separation principle?
Model (domain) objects should not have direct knowledge of view (GUI) objects, at least as view objects
- allow separate development of the model and UI layers
what are the types of containers?