View Javadoc

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