Presentation is loading. Please wait.

Presentation is loading. Please wait.

Java Beans Beispiel einer Küchenuhr Christoph Held.

Similar presentations


Presentation on theme: "Java Beans Beispiel einer Küchenuhr Christoph Held."— Presentation transcript:

1 Java Beans Beispiel einer Küchenuhr Christoph Held

2 Übersicht ÑAufgabenstellung ÑBeans ÑEvents ÑUML ÑBDK ÑZusammenfassung

3 Aufgabenstellung ! Clock Monitor Alarm ticks Alarm event

4 Screenshot

5 Clock Bean ÑPanel ÑThread Ñincrement Methode Ñstart und stop Methode

6 Monitor Bean ÑPanel Ñincrement Methode Ñcount Prop Ñreset Methode

7 Alarm Bean ÑPanel ÑalarmTrigger Methode Ñreset Methode

8 Ñ!BeanInfo! Objekte ÑProperty Editor f Mon Zusätzliche Klassen

9 Events (Wiederholung)

10

11

12

13 Bean1 -list:Vector +addActionEventListener:void +removeActionEventListener:void +creatEvent:void Bean2 Events (Wiederholung)

14 Bean1 -list:Vector +addActionEventListener:void +removeActionEventListener:void +creatEvent:void Bean2 ActionEventListener Events (Wiederholung)

15 Bean1 -list:Vector +addActionEventListener:void +removeActionEventListener:void +creatEvent:void ActionEventListener +actionPerformed:void interface Bean2 +actionPerformed:void ActionEventListener Bean2 Events (Wiederholung)

16 Bean1 -list:Vector +addActionEventListener:void +removeActionEventListener:void +creatEvent:void Bean2 ActionEventListener Bean2 methodXYZ:void Events (Wiederholung)

17 Bean1 -list:Vector +addAction... +removeAction... +creatEvent:void Bean2 ActionEventListener Hookup methodXYZ:void ActionEventListener +ActionPerformed:void interface Hookup public ActionPerformed(){ Bean2.methodXYZ(); } Events (Wiederholung)

18 Vor- u. Nachteile von Hookups Ñ+ Sehr flexibel Ñ+ Übersichtliche sourcen Ñ- Events information gehen verloren Ñ- viele kl Klassen

19 ! Button Alarm event Press Vor- u. Nachteile von Hookups

20 ! Button Monitor Alarm event Press Vor- u. Nachteile von Hookups

21 ! Clock Monitor Alarm ticks Alarm event Vor- u. Nachteile von Hookups

22 UMLKlassd Clock -field:TextField -list:Vector +addTickEventListener:void +removeTickEventListener:void +start:void +increment:void TickEventListener +tickPerformed:void interface Hookup +tickPerformed:void

23 UML Clock -field:TextField -list:Vector +addTickEventListener:void +removeTickEventListener:void +start:void +increment:void TickEventListener +tickPerformed:void interface Hookup +tickPerformed:void Monitor -count:long +increment:void

24 UML Clock -field:TextField -list:Vector +addTickEventListener:void +removeTickEventListener:void +start:void +increment:void TickEventListener +tickPerformed:void interface Hookup +tickPerformed:void Monitor -count:long +increment:void

25 UML Clock -field:TextField -list:Vector +addTickEventListener:void +removeTickEventListener:void +start:void +increment:void TickEventListener +tickPerformed:void interface Hookup +tickPerformed:void Monitor -count:long +increment:void

26 UML Monitor -count:long +increment:void TickEventListener +tickPerformed:void interface Hookup +tickPerformed:void MonitorTriggerEventListener +monitorTriggerEventHandler:void interface Alarm +monitorTriggerEventHandler:void +triggerAlarm:void +reset:void

27 UML Monitor -count:long +increment:void TickEventListener +tickPerformed:void interface Hookup +tickPerformed:void MonitorTriggerEventListener +monitorTriggerEventHandler:void interface Alarm +monitorTriggerEventHandler:void +triggerAlarm:void +reset:void

28 UML Monitor -count:long +increment:void TickEventListener +tickPerformed:void interface Hookup +tickPerformed:void MonitorTriggerEventListener +monitorTriggerEventHandler:void interface Alarm +monitorTriggerEventHandler:void +triggerAlarm:void +reset:void

29 UML Monitor -count:long +increment:void TickEventListener +tickPerformed:void interface Hookup +tickPerformed:void MonitorTriggerEventListener +monitorTriggerEventHandler:void interface Alarm +monitorTriggerEventHandler:void +triggerAlarm:void +reset:void

30 UML MonitorTriggerEventListener +monitorTriggerEventHandler:void interface Alarm +monitorTriggerEventHandler:void +triggerAlarm:void +reset:void TickEventListener +tickPerformed:void interface Hookup +tickPerformed:void Monitor -count:long +increment:void

31 UML MonitorTriggerEventListener +monitorTriggerEventHandler:void interface Alarm +monitorTriggerEventHandler:void +triggerAlarm:void +reset:void Monitor -count:long +increment:void

32 BDK ÑGraphische Umgebung ÑBeans testen ÑKeine Editierung von source code

33 Zusammenfassung ÑViele Beans im Internet


Download ppt "Java Beans Beispiel einer Küchenuhr Christoph Held."

Similar presentations


Ads by Google