1 package org.sirius.client.web.select; 2 3 public class WebSelectProxy implements org.sirius.client.web.select.WebSelect { 4 private String _endpoint = null; 5 private org.sirius.client.web.select.WebSelect webSelect = null; 6 7 public WebSelectProxy() { 8 _initWebSelectProxy(); 9 } 10 11 public WebSelectProxy(String endpoint) { 12 _endpoint = endpoint; 13 _initWebSelectProxy(); 14 } 15 16 private void _initWebSelectProxy() { 17 try { 18 webSelect = (new org.sirius.client.web.select.WebSelectServiceLocator()) 19 .getWebSelectPort(); 20 if (webSelect != null) { 21 if (_endpoint != null) 22 ((javax.xml.rpc.Stub) webSelect) 23 ._setProperty( 24 "javax.xml.rpc.service.endpoint.address", 25 _endpoint); 26 else 27 _endpoint = (String) ((javax.xml.rpc.Stub) webSelect) 28 ._getProperty("javax.xml.rpc.service.endpoint.address"); 29 } 30 31 } catch (javax.xml.rpc.ServiceException serviceException) { 32 } 33 } 34 35 public String getEndpoint() { 36 return _endpoint; 37 } 38 39 public void setEndpoint(String endpoint) { 40 _endpoint = endpoint; 41 if (webSelect != null) 42 ((javax.xml.rpc.Stub) webSelect)._setProperty( 43 "javax.xml.rpc.service.endpoint.address", _endpoint); 44 45 } 46 47 public org.sirius.client.web.select.WebSelect getWebSelect() { 48 if (webSelect == null) 49 _initWebSelectProxy(); 50 return webSelect; 51 } 52 53 public boolean isMultiple(java.lang.String arg0, java.lang.String arg1, 54 java.lang.String arg2) throws java.rmi.RemoteException { 55 if (webSelect == null) 56 _initWebSelectProxy(); 57 return webSelect.isMultiple(arg0, arg1, arg2); 58 } 59 60 public void deselectAll(java.lang.String arg0, java.lang.String arg1, 61 java.lang.String arg2) throws java.rmi.RemoteException { 62 if (webSelect == null) 63 _initWebSelectProxy(); 64 webSelect.deselectAll(arg0, arg1, arg2); 65 } 66 67 public void deselectByIndex(java.lang.String arg0, java.lang.String arg1, 68 java.lang.String arg2, int arg3) throws java.rmi.RemoteException { 69 if (webSelect == null) 70 _initWebSelectProxy(); 71 webSelect.deselectByIndex(arg0, arg1, arg2, arg3); 72 } 73 74 public void deselectByValue(java.lang.String arg0, java.lang.String arg1, 75 java.lang.String arg2, java.lang.String arg3) 76 throws java.rmi.RemoteException { 77 if (webSelect == null) 78 _initWebSelectProxy(); 79 webSelect.deselectByValue(arg0, arg1, arg2, arg3); 80 } 81 82 public java.lang.String[] getAllOptions(java.lang.String arg0, 83 java.lang.String arg1, java.lang.String arg2) 84 throws java.rmi.RemoteException { 85 if (webSelect == null) 86 _initWebSelectProxy(); 87 return webSelect.getAllOptions(arg0, arg1, arg2); 88 } 89 90 public void selectByIndex(java.lang.String arg0, java.lang.String arg1, 91 java.lang.String arg2, int arg3) throws java.rmi.RemoteException { 92 if (webSelect == null) 93 _initWebSelectProxy(); 94 webSelect.selectByIndex(arg0, arg1, arg2, arg3); 95 } 96 97 public void selectByValue(java.lang.String arg0, java.lang.String arg1, 98 java.lang.String arg2, java.lang.String arg3) 99 throws java.rmi.RemoteException { 100 if (webSelect == null) 101 _initWebSelectProxy(); 102 webSelect.selectByValue(arg0, arg1, arg2, arg3); 103 } 104 105 public void selectByVisibleText(java.lang.String arg0, 106 java.lang.String arg1, java.lang.String arg2, java.lang.String arg3) 107 throws java.rmi.RemoteException { 108 if (webSelect == null) 109 _initWebSelectProxy(); 110 webSelect.selectByVisibleText(arg0, arg1, arg2, arg3); 111 } 112 113 public void deselectByVisibleText(java.lang.String arg0, 114 java.lang.String arg1, java.lang.String arg2, java.lang.String arg3) 115 throws java.rmi.RemoteException { 116 if (webSelect == null) 117 _initWebSelectProxy(); 118 webSelect.deselectByVisibleText(arg0, arg1, arg2, arg3); 119 } 120 121 public java.lang.String[] getAllSelectedOptions(java.lang.String arg0, 122 java.lang.String arg1, java.lang.String arg2) 123 throws java.rmi.RemoteException { 124 if (webSelect == null) 125 _initWebSelectProxy(); 126 return webSelect.getAllSelectedOptions(arg0, arg1, arg2); 127 } 128 129 public java.lang.String getFirstSelectedOption(java.lang.String arg0, 130 java.lang.String arg1, java.lang.String arg2) 131 throws java.rmi.RemoteException { 132 if (webSelect == null) 133 _initWebSelectProxy(); 134 return webSelect.getFirstSelectedOption(arg0, arg1, arg2); 135 } 136 137 }