MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / ServerBox

Method ServerBox

src/main/java/ServiceDiscovery/ServerBox.java:55–70  ·  view source on GitHub ↗

Creates a new instance of ServerBox @param service @param sd

(String service, ServiceNotify sn)

Source from the content-addressed store, hash-verified

53 * @param sd
54 */
55 public ServerBox(String service, ServiceNotify sn) {
56 super(SR.MS_DISCO);
57
58 this.disco = sn;
59 serverName = new TextInput(SR.MS_ADRESS, service, "disco");
60 itemsList.addElement(serverName);
61 itemsList.addElement(new SpacerItem(5));
62 itemsList.addElement(new LinkString(SR.MS_RECENT) {
63
64 public void doAction() {
65 new RecentMenu();
66 }
67 });
68
69 moveCursorTo(getNextSelectableRef(-1));
70 }
71
72 public void cmdOk() {
73 String server = serverName.getValue();

Callers

nothing calls this directly

Calls 3

addElementMethod · 0.80
moveCursorToMethod · 0.80
getNextSelectableRefMethod · 0.80

Tested by

no test coverage detected