1 /**
2 *
3 */
4 package org.sirius.server.win32.classes.controls;
5
6 import java.rmi.RemoteException;
7
8 import org.sirius.server.win32.classes.Common;
9 import org.sirius.server.win32lib.controls.Win32LibControlsClient;
10 import org.sirius.server.win32lib.controls.slider.ISliderContractProxy;
11
12 /**
13 * @author Myk Kolisnyk
14 *
15 */
16 public class Slider extends Common {
17
18 Win32LibControlsClient win32lib;
19
20 /**
21 *
22 */
23 public Slider() {
24 win32lib = new Win32LibControlsClient();
25 }
26
27 /**
28 * @param hwnd
29 * @return
30 * @throws RemoteException
31 * @see org.sirius.server.win32lib.controls.slider.ISliderContractProxy#getLowerBound(java.lang.Integer)
32 */
33 public Double getLowerBound(Integer hwnd) throws RemoteException {
34 return win32lib.slider().getLowerBound(hwnd);
35 }
36
37 /**
38 * @param hwnd
39 * @return
40 * @throws RemoteException
41 * @see org.sirius.server.win32lib.controls.slider.ISliderContractProxy#getPosition(java.lang.Integer)
42 */
43 public Double getPosition(Integer hwnd) throws RemoteException {
44 return win32lib.slider().getPosition(hwnd);
45 }
46
47 /**
48 * @param hwnd
49 * @return
50 * @throws RemoteException
51 * @see org.sirius.server.win32lib.controls.slider.ISliderContractProxy#getUpperBound(java.lang.Integer)
52 */
53 public Double getUpperBound(Integer hwnd) throws RemoteException {
54 return win32lib.slider().getUpperBound(hwnd);
55 }
56
57 /**
58 * @param hwnd
59 * @param pos
60 * @throws RemoteException
61 * @see org.sirius.server.win32lib.controls.slider.ISliderContractProxy#setPosition(java.lang.Integer, java.lang.Double)
62 */
63 public void setPosition(Integer hwnd, Double pos) throws RemoteException {
64 win32lib.slider().setPosition(hwnd, pos);
65 }
66
67 }