Class Notes (859,693)
CA (520,849)
UW (18,875)
CS (817)
CS 349 (5)
Lecture

09.eventDispatchAndBinding.3up.pdf

12 Pages
136 Views

Department
Computer Science
Course Code
CS 349
Professor
Byron Weber Becker

This preview shows pages 1-2 and half of page 3. Sign up to view the full 12 pages of the document.
Description
Events Dispatch eventtocode binding Review Events Defined 1An observable occurrence phenomenon or an extraordinary occurrence 2A message to notify an application that something happened Examples Keyboard key press key release Pointer events button press button release motion Window crossing mouse enters leaves Input focus gained lost Window events exposure destroy minimize Timer events 2 CS349Event DispatchBinding ReviewLightweight vs Heavyweight Widgets Lightweight widgets BWSOS provides a toplevel window Widget toolkit draws its own widgets and is responsible for mapping events to their corresponding widgets ExamplesJava Swing JQuery UI Windows WPF WatGUI Heavyweight widgets Each widget is its own window where window is not just what we typically call a windowevery control is a window OS provides a hierarchical windowing system for all widgets Widget toolkit wraps OS widgets for programming language BWS can dispatch events to a specific widget Examplesnested X Windows Javas AWT OS X Cocoa standard HTML form widgets Windows MFC 3 CS349Event DispatchBinding Event Dispatch CS349Event DispatchBinding 4 Event Dispatch Which part of the interface should receive the event Which window Which widget Positional dispatch Bottomup dispatch Topdown dispatch Focus dispatch How do we get the correct code to execute in response to an event5 CS349Event DispatchBinding Window Dispatch with BWS CS349Event DispatchBinding 6
More Less
Unlock Document
Subscribers Only

Only pages 1-2 and half of page 3 are available for preview. Some parts have been intentionally blurred.

Unlock Document
Subscribers Only
You're Reading a Preview

Unlock to view full version

Unlock Document
Subscribers Only

Log In


OR

Don't have an account?

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit