1 package org.sirius.server.win32lib.controls.spin; 2 3 public class ISpinContractProxy implements org.sirius.server.win32lib.controls.spin.ISpinContract { 4 private String _endpoint = null; 5 private org.sirius.server.win32lib.controls.spin.ISpinContract iSpinContract = null; 6 7 public ISpinContractProxy() { 8 _initISpinContractProxy(); 9 } 10 11 public ISpinContractProxy(String endpoint) { 12 _endpoint = endpoint; 13 _initISpinContractProxy(); 14 } 15 16 private void _initISpinContractProxy() { 17 try { 18 iSpinContract = (new org.sirius.server.win32lib.controls.spin.SpinSvcLocator()).getSpinSvcPort(); 19 if (iSpinContract != null) { 20 if (_endpoint != null) 21 ((javax.xml.rpc.Stub)iSpinContract)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint); 22 else 23 _endpoint = (String)((javax.xml.rpc.Stub)iSpinContract)._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 (iSpinContract != null) 37 ((javax.xml.rpc.Stub)iSpinContract)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint); 38 39 } 40 41 public org.sirius.server.win32lib.controls.spin.ISpinContract getISpinContract() { 42 if (iSpinContract == null) 43 _initISpinContractProxy(); 44 return iSpinContract; 45 } 46 47 public java.lang.Double getLowerBound(java.lang.Integer hwnd) throws java.rmi.RemoteException{ 48 if (iSpinContract == null) 49 _initISpinContractProxy(); 50 return iSpinContract.getLowerBound(hwnd); 51 } 52 53 public java.lang.Double getPosition(java.lang.Integer hwnd) throws java.rmi.RemoteException{ 54 if (iSpinContract == null) 55 _initISpinContractProxy(); 56 return iSpinContract.getPosition(hwnd); 57 } 58 59 public java.lang.Double getValue(java.lang.Integer hwnd) throws java.rmi.RemoteException{ 60 if (iSpinContract == null) 61 _initISpinContractProxy(); 62 return iSpinContract.getValue(hwnd); 63 } 64 65 public java.lang.Double getUpperBound(java.lang.Integer hwnd) throws java.rmi.RemoteException{ 66 if (iSpinContract == null) 67 _initISpinContractProxy(); 68 return iSpinContract.getUpperBound(hwnd); 69 } 70 71 public void setPosition(java.lang.Integer hwnd, java.lang.Double pos) throws java.rmi.RemoteException{ 72 if (iSpinContract == null) 73 _initISpinContractProxy(); 74 iSpinContract.setPosition(hwnd, pos); 75 } 76 77 public void setValue(java.lang.Integer hwnd, java.lang.Double pos) throws java.rmi.RemoteException{ 78 if (iSpinContract == null) 79 _initISpinContractProxy(); 80 iSpinContract.setValue(hwnd, pos); 81 } 82 83 public java.lang.Double getSmallStep(java.lang.Integer hwnd) throws java.rmi.RemoteException{ 84 if (iSpinContract == null) 85 _initISpinContractProxy(); 86 return iSpinContract.getSmallStep(hwnd); 87 } 88 89 public java.lang.Double getLargeStep(java.lang.Integer hwnd) throws java.rmi.RemoteException{ 90 if (iSpinContract == null) 91 _initISpinContractProxy(); 92 return iSpinContract.getLargeStep(hwnd); 93 } 94 95 96 }