Event Driven Paradigm
This KLA is transcribed from the SIGCSE 2004 Special Session on KLAs.
Overview To KLA
Author: Grissom, Child, Manaris, and Hunt
Summary: Learn distinctions between GUI components, event handlers, and events.
Learning Goals: to be added
Course And Level: The KLA is appropriate for course level 2.
Class Size: The class must have at leadt 15 students.
Preparation Time: No preparation time is needed.
Execution Time: The exercise will take about 10 minutes
Planning For KLA
Materials: You will need paper, labels, candy, and instructions for each performer.
Preparation: The instructor must have the instructions ready for each participant.
Execution Of KLA
Description: There is a user, buttons (3 people), listeners (2 people), and methods (3+ people).
The user touches the shoulder of "button" 1 or 2 times. The "button" claps 1 or 2 times, respectively. The "listener" hears and invokes the appropriate method. The method stands or speaks and gives candy to the user.
Variants And Extra Topics: below
Constraints On KLA
Would your KLA work if your students had the following constraints:
|•||Limited Vision: (including color-blindness) Few|
|•||Limited Hearing: Few and many|
|•||Limited Mobility: Few and many|
|•||Trouble Speaking: Few and many|
|•||Touch Aversion: (including cultural) Few and many|
Pitfalls Of KLA
Feedback And Use Notes
Feedback: add your feedback here!
From the SIGCSE 2004 KLA Special Session
|•||"Be more explicit about the role of each participant. What causes each component to act? What process does each component go through? What is the visible result?"|
|•||"Need to say labels marked to listener knows appropriate method to call."|
|•||"Info passed from button to listener should be modeled. In Java, this is the Action Event object."|
Use Notes: add your use notes here!