1
2
3
4 package org.sirius.server.win32.classes.controls;
5
6 import java.rmi.RemoteException;
7
8 import javax.jws.WebService;
9
10 import org.sirius.server.win32.classes.Common;
11 import org.sirius.server.win32.constants.IListBoxConsts;
12 import org.sirius.server.win32lib.controls.Win32LibControlsClient;
13 import org.sirius.server.win32lib.controls.listbox.IListBoxContract;
14 import org.sirius.server.win32lib.controls.listbox.IListBoxContractProxy;
15
16 import com.sun.jna.Pointer;
17 import com.sun.jna.platform.win32.WinDef.HWND;
18 import com.sun.jna.platform.win32.WinDef.LPARAM;
19 import com.sun.jna.platform.win32.WinDef.WPARAM;
20
21
22
23
24
25 @WebService
26 public class ListBox extends Common implements IListBoxConsts {
27
28
29 Win32LibControlsClient win32lib;
30
31
32
33
34 public ListBox() {
35
36 win32lib = new Win32LibControlsClient();
37 }
38
39
40
41
42
43
44
45 public void addSelectionByIndex(Integer hwnd, Integer index)
46 throws RemoteException {
47 win32lib.listBox().addSelectionByIndex(hwnd, index);
48 }
49
50
51
52
53
54
55
56 public void addSelectionByName(Integer hwnd, String item)
57 throws RemoteException {
58 win32lib.listBox().addSelectionByName(hwnd, item);
59 }
60
61
62
63
64
65
66 public void deselectAll(Integer hwnd) throws RemoteException {
67 win32lib.listBox().deselectAll(hwnd);
68 }
69
70
71
72
73
74 public String getEndpoint() {
75 return win32lib.listBox().getEndpoint();
76 }
77
78
79
80
81
82 public IListBoxContract getIListBoxContract() {
83 return win32lib.listBox().getIListBoxContract();
84 }
85
86
87
88
89
90
91
92 public String[] getItemNames(Integer hwnd) throws RemoteException {
93 return win32lib.listBox().getItemNames(hwnd);
94 }
95
96
97
98
99
100
101
102 public Integer getItemsCount(Integer hwnd) throws RemoteException {
103 return win32lib.listBox().getItemsCount(hwnd);
104 }
105
106
107
108
109
110
111
112 public Integer getSelectedIndex(Integer hwnd) throws RemoteException {
113 return win32lib.listBox().getSelectedIndex(hwnd);
114 }
115
116
117
118
119
120
121 public boolean equals(Object obj) {
122 return win32lib.listBox().equals(obj);
123 }
124
125
126
127
128
129
130
131 public String getSelectedItem(Integer hwnd) throws RemoteException {
132 return win32lib.listBox().getSelectedItem(hwnd);
133 }
134
135
136
137
138
139
140
141 public String[] getSelectedItems(Integer hwnd) throws RemoteException {
142 return win32lib.listBox().getSelectedItems(hwnd);
143 }
144
145
146
147
148
149
150
151 public void removeSelectionByIndex(Integer hwnd, Integer index)
152 throws RemoteException {
153 win32lib.listBox().removeSelectionByIndex(hwnd, index);
154 }
155
156
157
158
159
160
161
162 public void removeSelectionByName(Integer hwnd, String item)
163 throws RemoteException {
164 win32lib.listBox().removeSelectionByName(hwnd, item);
165 }
166
167
168
169
170
171
172 public void selectAll(Integer hwnd) throws RemoteException {
173 win32lib.listBox().selectAll(hwnd);
174 }
175
176
177
178
179
180
181
182 public void selectByIndex(Integer hwnd, Integer index)
183 throws RemoteException {
184 win32lib.listBox().selectByIndex(hwnd, index);
185 }
186
187
188
189
190
191
192
193 public void selectByName(Integer hwnd, String item) throws RemoteException {
194 win32lib.listBox().selectByName(hwnd, item);
195 }
196 }