1 | /** |
2 | * Copyright (C) 2006 Carrier Access, Corp. |
3 | */ |
4 | package biz.xsoftware.mock.client.example1; |
5 | |
6 | import biz.xsoftware.mock.client.JsMockSuperclass; |
7 | |
8 | import com.google.gwt.user.client.ui.ClickListener; |
9 | import com.google.gwt.user.client.ui.SourcesClickEvents; |
10 | |
11 | /** |
12 | */ |
13 | public class MockListenerManager extends JsMockSuperclass implements ListenerManager |
14 | { |
15 | |
16 | private static final String ADD_CLICKLISTENER = "addClickListener"; |
17 | private static final String REMOVE_CLICKLISTENER = "removeClickListener"; |
18 | |
19 | /** |
20 | * @see biz.xsoftware.mock.client.example1.ListenerManager |
21 | * #addClickListener(com.google.gwt.user.client.ui.SourcesClickEvents, com.google.gwt.user.client.ui.ClickListener) |
22 | */ |
23 | public void addClickListener(SourcesClickEvents src, ClickListener l) |
24 | { |
25 | methodCalled(ADD_CLICKLISTENER, new Object[] {src, l}); |
26 | } |
27 | |
28 | /** |
29 | * @see biz.xsoftware.mock.client.example1.ListenerManager |
30 | * \#removeClickListener(com.google.gwt.user.client.ui.SourcesClickEvents, com.google.gwt.user.client.ui.ClickListener) |
31 | */ |
32 | public void removeClickListener(SourcesClickEvents src, ClickListener l) |
33 | { |
34 | methodCalled(REMOVE_CLICKLISTENER, new Object[] {src, l}); |
35 | } |
36 | |
37 | } |