Page 319 | Table of Contents | Index | Page 321 |
Chapters | |||
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30 A, B, C, D, E |
(defmethod activate-callback ((button push-button) (client button-test) gadget-id) (with-slots (output-pane) client (format output-pane "The button ~S was pressed, client ~S, id ~S." button client gadget-id)))One problem with this example is that it differentiates on the class of the gadget, not on the
(defmethod activate-callback ((button push-button) (client button-test) (gadget-id (eql 'start))) (start-test client)) (defmethod activate-callback ((button push-button) (client button-test) (gadget-id (eql 'stop))) (stop-test client))
Page 319 | Table of Contents | Index | Page 321 |
Chapters | |||
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30 A, B, C, D, E |