1 package org.sirius.server.win32lib.controls.listview; 2 3 public class IListViewContractProxy implements 4 org.sirius.server.win32lib.controls.listview.IListViewContract { 5 private String _endpoint = null; 6 private org.sirius.server.win32lib.controls.listview.IListViewContract iListViewContract = null; 7 8 public IListViewContractProxy() { 9 _initIListViewContractProxy(); 10 } 11 12 public IListViewContractProxy(final String endpoint) { 13 _endpoint = endpoint; 14 _initIListViewContractProxy(); 15 } 16 17 private void _initIListViewContractProxy() { 18 try { 19 iListViewContract = (new org.sirius.server.win32lib.controls.listview.ListViewSvcLocator()) 20 .getListViewSvcPort(); 21 if (iListViewContract != null) { 22 if (_endpoint != null) { 23 ((javax.xml.rpc.Stub) iListViewContract) 24 ._setProperty( 25 "javax.xml.rpc.service.endpoint.address", 26 _endpoint); 27 } else { 28 _endpoint = (String) ((javax.xml.rpc.Stub) iListViewContract) 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 addSelectionByIndex(final java.lang.Integer hwnd, 39 final java.lang.Integer index) throws java.rmi.RemoteException { 40 if (iListViewContract == null) { 41 _initIListViewContractProxy(); 42 } 43 iListViewContract.addSelectionByIndex(hwnd, index); 44 } 45 46 @Override 47 public void addSelectionByName(final java.lang.Integer hwnd, 48 final java.lang.String item) throws java.rmi.RemoteException { 49 if (iListViewContract == null) { 50 _initIListViewContractProxy(); 51 } 52 iListViewContract.addSelectionByName(hwnd, item); 53 } 54 55 @Override 56 public void deselectAll(final java.lang.Integer hwnd) 57 throws java.rmi.RemoteException { 58 if (iListViewContract == null) { 59 _initIListViewContractProxy(); 60 } 61 iListViewContract.deselectAll(hwnd); 62 } 63 64 public String getEndpoint() { 65 return _endpoint; 66 } 67 68 public org.sirius.server.win32lib.controls.listview.IListViewContract getIListViewContract() { 69 if (iListViewContract == null) { 70 _initIListViewContractProxy(); 71 } 72 return iListViewContract; 73 } 74 75 @Override 76 public java.lang.String[] getItemNames(final java.lang.Integer hwnd) 77 throws java.rmi.RemoteException { 78 if (iListViewContract == null) { 79 _initIListViewContractProxy(); 80 } 81 return iListViewContract.getItemNames(hwnd); 82 } 83 84 @Override 85 public java.lang.Integer getItemsCount(final java.lang.Integer hwnd) 86 throws java.rmi.RemoteException { 87 if (iListViewContract == null) { 88 _initIListViewContractProxy(); 89 } 90 return iListViewContract.getItemsCount(hwnd); 91 } 92 93 @Override 94 public java.lang.Integer getSelectedIndex(final java.lang.Integer hwnd) 95 throws java.rmi.RemoteException { 96 if (iListViewContract == null) { 97 _initIListViewContractProxy(); 98 } 99 return iListViewContract.getSelectedIndex(hwnd); 100 } 101 102 @Override 103 public java.lang.String getSelectedItem(final java.lang.Integer hwnd) 104 throws java.rmi.RemoteException { 105 if (iListViewContract == null) { 106 _initIListViewContractProxy(); 107 } 108 return iListViewContract.getSelectedItem(hwnd); 109 } 110 111 @Override 112 public java.lang.String[] getSelectedItems(final java.lang.Integer hwnd) 113 throws java.rmi.RemoteException { 114 if (iListViewContract == null) { 115 _initIListViewContractProxy(); 116 } 117 return iListViewContract.getSelectedItems(hwnd); 118 } 119 120 @Override 121 public void removeSelectionByIndex(final java.lang.Integer hwnd, 122 final java.lang.Integer index) throws java.rmi.RemoteException { 123 if (iListViewContract == null) { 124 _initIListViewContractProxy(); 125 } 126 iListViewContract.removeSelectionByIndex(hwnd, index); 127 } 128 129 @Override 130 public void removeSelectionByName(final java.lang.Integer hwnd, 131 final java.lang.String item) throws java.rmi.RemoteException { 132 if (iListViewContract == null) { 133 _initIListViewContractProxy(); 134 } 135 iListViewContract.removeSelectionByName(hwnd, item); 136 } 137 138 @Override 139 public void selectAll(final java.lang.Integer hwnd) 140 throws java.rmi.RemoteException { 141 if (iListViewContract == null) { 142 _initIListViewContractProxy(); 143 } 144 iListViewContract.selectAll(hwnd); 145 } 146 147 @Override 148 public void selectByIndex(final java.lang.Integer hwnd, 149 final java.lang.Integer index) throws java.rmi.RemoteException { 150 if (iListViewContract == null) { 151 _initIListViewContractProxy(); 152 } 153 iListViewContract.selectByIndex(hwnd, index); 154 } 155 156 @Override 157 public void selectByName(final java.lang.Integer hwnd, 158 final java.lang.String item) throws java.rmi.RemoteException { 159 if (iListViewContract == null) { 160 _initIListViewContractProxy(); 161 } 162 iListViewContract.selectByName(hwnd, item); 163 } 164 165 public void setEndpoint(final String endpoint) { 166 _endpoint = endpoint; 167 if (iListViewContract != null) { 168 ((javax.xml.rpc.Stub) iListViewContract)._setProperty( 169 "javax.xml.rpc.service.endpoint.address", _endpoint); 170 } 171 172 } 173 174 }