MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / showExtended

Method showExtended

src/main/java/Account/AccountForm.java:159–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157 }
158
159 public void showExtended() {
160 showExtended = true;
161 itemsList.removeElement(linkShowExtended);
162 itemsList.removeElement(linkSave);
163
164 if (!newaccount) {
165 itemsList.addElement(linkRegister);
166 }
167
168 ipbox = new TextInput(SR.MS_HOST_IP, item.account.hostAddr, null);
169 portbox = new NumberInput(SR.MS_PORT, Integer.toString(item.account.port), 0, 65535);
170
171
172 plainPwdbox = new CheckBox(SR.MS_PLAIN_PWD, item.account.plainAuth);
173 compressionBox = new CheckBox(SR.MS_COMPRESSION, item.account.useCompression());
174//#ifndef WMUC
175 confOnlybox = new CheckBox(SR.MS_CONFERENCES_ONLY, item.account.mucOnly);
176//#endif
177 proxybox = new CheckBox(/*
178 * SR.MS_PROXY_ENABLE
179 */"Proxy connect", item.account.isEnableProxy());
180//#elif HTTPPOLL
181//# proxybox = new CheckBox("HTTP Polling", item.account.isEnableProxy());
182//#elif HTTPBIND
183//# proxybox = new CheckBox("XMPP BOSH", item.account.isEnableProxy());
184//#endif
185
186 itemsList.addElement(plainPwdbox);
187 itemsList.addElement(compressionBox);
188//#ifndef WMUC
189 itemsList.addElement(confOnlybox);
190//#endif
191 itemsList.addElement(proxybox);
192
193//#ifndef HTTPBIND
194 keepAlive = new NumberInput(SR.MS_KEEPALIVE_PERIOD, Integer.toString(item.account.keepAlivePeriod), 10, 2048);//10, 2096
195//#endif
196 resourcebox = new TextInput(SR.MS_RESOURCE, newaccount ? StaticData.getInstance().getVersionInfo().getName() :
197 item.account.JID.resource, null);
198
199 proxyHost = new TextInput(/*
200 * SR.MS_PROXY_HOST
201 */"Proxy name/IP", item.account.proxyHostAddr, null, TextField.URL);
202 proxyPort = new NumberInput(/*
203 * SR.MS_PROXY_PORT
204 */"Proxy port", Integer.toString(item.account.getProxyPort()), 0, 65535);
205 proxyUser = new TextInput(/*
206 * SR.MS_PROXY_HOST
207 */"Proxy user", item.account.getProxyUser(), null, TextField.URL);
208 proxyPass = new TextInput(/*
209 * SR.MS_PROXY_HOST
210 */"Proxy pass", item.account.getProxyPass(), null, TextField.URL);
211//#elif HTTPPOLL
212//# proxyHost = new TextInput("HTTP Polling URL (http://server.tld:port)", item.account.proxyHostAddr, null, TextField.URL);
213//#elif HTTPBIND
214//# proxyHost = new TextInput("BOSH CM (http://server.tld:port)", item.account.proxyHostAddr, null, TextField.URL);
215//#endif
216

Callers 1

doActionMethod · 0.95

Calls 10

getInstanceMethod · 0.95
addElementMethod · 0.80
useCompressionMethod · 0.80
isEnableProxyMethod · 0.80
getVersionInfoMethod · 0.80
getProxyPortMethod · 0.80
getProxyUserMethod · 0.80
getProxyPassMethod · 0.80
getNameMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected