1 package org.sirius.server.win32lib.controls.tab; 2 3 public class ITabContractProxy implements 4 org.sirius.server.win32lib.controls.tab.ITabContract { 5 private String _endpoint = null; 6 private org.sirius.server.win32lib.controls.tab.ITabContract iTabContract = null; 7 8 public ITabContractProxy() { 9 _initITabContractProxy(); 10 } 11 12 public ITabContractProxy(final String endpoint) { 13 _endpoint = endpoint; 14 _initITabContractProxy(); 15 } 16 17 private void _initITabContractProxy() { 18 try { 19 iTabContract = (new org.sirius.server.win32lib.controls.tab.TabSvcLocator()) 20 .getTabSvcPort(); 21 if (iTabContract != null) { 22 if (_endpoint != null) { 23 ((javax.xml.rpc.Stub) iTabContract) 24 ._setProperty( 25 "javax.xml.rpc.service.endpoint.address", 26 _endpoint); 27 } else { 28 _endpoint = (String) ((javax.xml.rpc.Stub) iTabContract) 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.tab.ITabContract getITabContract() { 42 if (iTabContract == null) { 43 _initITabContractProxy(); 44 } 45 return iTabContract; 46 } 47 48 @Override 49 public java.lang.String[] getItemNames(final java.lang.Integer hwnd) 50 throws java.rmi.RemoteException { 51 if (iTabContract == null) { 52 _initITabContractProxy(); 53 } 54 return iTabContract.getItemNames(hwnd); 55 } 56 57 @Override 58 public java.lang.Integer getItemsCount(final java.lang.Integer hwnd) 59 throws java.rmi.RemoteException { 60 if (iTabContract == null) { 61 _initITabContractProxy(); 62 } 63 return iTabContract.getItemsCount(hwnd); 64 } 65 66 @Override 67 public java.lang.Integer getSelectedIndex(final java.lang.Integer hwnd) 68 throws java.rmi.RemoteException { 69 if (iTabContract == null) { 70 _initITabContractProxy(); 71 } 72 return iTabContract.getSelectedIndex(hwnd); 73 } 74 75 @Override 76 public java.lang.String getSelectedItem(final java.lang.Integer hwnd) 77 throws java.rmi.RemoteException { 78 if (iTabContract == null) { 79 _initITabContractProxy(); 80 } 81 return iTabContract.getSelectedItem(hwnd); 82 } 83 84 @Override 85 public void selectByIndex(final java.lang.Integer hwnd, 86 final java.lang.Integer index) throws java.rmi.RemoteException { 87 if (iTabContract == null) { 88 _initITabContractProxy(); 89 } 90 iTabContract.selectByIndex(hwnd, index); 91 } 92 93 @Override 94 public void selectByName(final java.lang.Integer hwnd, 95 final java.lang.String item) throws java.rmi.RemoteException { 96 if (iTabContract == null) { 97 _initITabContractProxy(); 98 } 99 iTabContract.selectByName(hwnd, item); 100 } 101 102 public void setEndpoint(final String endpoint) { 103 _endpoint = endpoint; 104 if (iTabContract != null) { 105 ((javax.xml.rpc.Stub) iTabContract)._setProperty( 106 "javax.xml.rpc.service.endpoint.address", _endpoint); 107 } 108 109 } 110 111 }