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