1 package org.sirius.server.win32lib.controls.button; 2 3 public class IButtonContractProxy implements 4 org.sirius.server.win32lib.controls.button.IButtonContract { 5 private String _endpoint = null; 6 private org.sirius.server.win32lib.controls.button.IButtonContract iButtonContract = null; 7 8 public IButtonContractProxy() { 9 _initIButtonContractProxy(); 10 } 11 12 public IButtonContractProxy(final String endpoint) { 13 _endpoint = endpoint; 14 _initIButtonContractProxy(); 15 } 16 17 private void _initIButtonContractProxy() { 18 try { 19 iButtonContract = (new org.sirius.server.win32lib.controls.button.ButtonSvcLocator()) 20 .getButtonSvcPort(); 21 if (iButtonContract != null) { 22 if (_endpoint != null) { 23 ((javax.xml.rpc.Stub) iButtonContract) 24 ._setProperty( 25 "javax.xml.rpc.service.endpoint.address", 26 _endpoint); 27 } else { 28 _endpoint = (String) ((javax.xml.rpc.Stub) iButtonContract) 29 ._getProperty("javax.xml.rpc.service.endpoint.address"); 30 } 31 } 32 33 } catch (javax.xml.rpc.ServiceException serviceException) { 34 } 35 } 36 37 @Override 38 public void click(final java.lang.Integer hwnd) 39 throws java.rmi.RemoteException { 40 if (iButtonContract == null) { 41 _initIButtonContractProxy(); 42 } 43 iButtonContract.click(hwnd); 44 } 45 46 public String getEndpoint() { 47 return _endpoint; 48 } 49 50 public org.sirius.server.win32lib.controls.button.IButtonContract getIButtonContract() { 51 if (iButtonContract == null) { 52 _initIButtonContractProxy(); 53 } 54 return iButtonContract; 55 } 56 57 @Override 58 public java.lang.Boolean isChecked(final java.lang.Integer hwnd) 59 throws java.rmi.RemoteException { 60 if (iButtonContract == null) { 61 _initIButtonContractProxy(); 62 } 63 return iButtonContract.isChecked(hwnd); 64 } 65 66 @Override 67 public java.lang.Boolean isIntermediate(final java.lang.Integer hwnd) 68 throws java.rmi.RemoteException { 69 if (iButtonContract == null) { 70 _initIButtonContractProxy(); 71 } 72 return iButtonContract.isIntermediate(hwnd); 73 } 74 75 @Override 76 public java.lang.Boolean isPressed(final java.lang.Integer hwnd) 77 throws java.rmi.RemoteException { 78 if (iButtonContract == null) { 79 _initIButtonContractProxy(); 80 } 81 return iButtonContract.isPressed(hwnd); 82 } 83 84 @Override 85 public void setCheck(final java.lang.Integer hwnd, 86 final java.lang.Boolean check) throws java.rmi.RemoteException { 87 if (iButtonContract == null) { 88 _initIButtonContractProxy(); 89 } 90 iButtonContract.setCheck(hwnd, check); 91 } 92 93 public void setEndpoint(final String endpoint) { 94 _endpoint = endpoint; 95 if (iButtonContract != null) { 96 ((javax.xml.rpc.Stub) iButtonContract)._setProperty( 97 "javax.xml.rpc.service.endpoint.address", _endpoint); 98 } 99 100 } 101 102 }