Creates a new instance of ServerBox @param service @param sd
(String service, ServiceNotify sn)
| 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(); |
nothing calls this directly
no test coverage detected