View Javadoc

1   package org.sirius.server.win32lib.controls.slider;
2   
3   public class ISliderContractProxy implements org.sirius.server.win32lib.controls.slider.ISliderContract {
4     private String _endpoint = null;
5     private org.sirius.server.win32lib.controls.slider.ISliderContract iSliderContract = null;
6     
7     public ISliderContractProxy() {
8       _initISliderContractProxy();
9     }
10    
11    public ISliderContractProxy(String endpoint) {
12      _endpoint = endpoint;
13      _initISliderContractProxy();
14    }
15    
16    private void _initISliderContractProxy() {
17      try {
18        iSliderContract = (new org.sirius.server.win32lib.controls.slider.SliderSvcLocator()).getSliderSvcPort();
19        if (iSliderContract != null) {
20          if (_endpoint != null)
21            ((javax.xml.rpc.Stub)iSliderContract)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
22          else
23            _endpoint = (String)((javax.xml.rpc.Stub)iSliderContract)._getProperty("javax.xml.rpc.service.endpoint.address");
24        }
25        
26      }
27      catch (javax.xml.rpc.ServiceException serviceException) {}
28    }
29    
30    public String getEndpoint() {
31      return _endpoint;
32    }
33    
34    public void setEndpoint(String endpoint) {
35      _endpoint = endpoint;
36      if (iSliderContract != null)
37        ((javax.xml.rpc.Stub)iSliderContract)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
38      
39    }
40    
41    public org.sirius.server.win32lib.controls.slider.ISliderContract getISliderContract() {
42      if (iSliderContract == null)
43        _initISliderContractProxy();
44      return iSliderContract;
45    }
46    
47    public java.lang.Double getLowerBound(java.lang.Integer hwnd) throws java.rmi.RemoteException{
48      if (iSliderContract == null)
49        _initISliderContractProxy();
50      return iSliderContract.getLowerBound(hwnd);
51    }
52    
53    public java.lang.Double getPosition(java.lang.Integer hwnd) throws java.rmi.RemoteException{
54      if (iSliderContract == null)
55        _initISliderContractProxy();
56      return iSliderContract.getPosition(hwnd);
57    }
58    
59    public java.lang.Double getUpperBound(java.lang.Integer hwnd) throws java.rmi.RemoteException{
60      if (iSliderContract == null)
61        _initISliderContractProxy();
62      return iSliderContract.getUpperBound(hwnd);
63    }
64    
65    public void setPosition(java.lang.Integer hwnd, java.lang.Double pos) throws java.rmi.RemoteException{
66      if (iSliderContract == null)
67        _initISliderContractProxy();
68      iSliderContract.setPosition(hwnd, pos);
69    }
70    
71    public java.lang.Double getSmallStep(java.lang.Integer hwnd) throws java.rmi.RemoteException{
72      if (iSliderContract == null)
73        _initISliderContractProxy();
74      return iSliderContract.getSmallStep(hwnd);
75    }
76    
77    public java.lang.Double getLargeStep(java.lang.Integer hwnd) throws java.rmi.RemoteException{
78      if (iSliderContract == null)
79        _initISliderContractProxy();
80      return iSliderContract.getLargeStep(hwnd);
81    }
82    
83    
84  }