|
@@ -43,7 +43,7 @@ public class MyDaemonInstallationNodeContribution implements InstallationNodeCon
|
|
|
private InputButton enableDaemonButton;
|
|
|
|
|
|
@Input(id = "btnRef")
|
|
|
- private InputButton refButton;
|
|
|
+ private InputButton refButtonRef;
|
|
|
|
|
|
@Input(id = "textIP")
|
|
|
private InputTextField refTextIP;
|
|
@@ -54,6 +54,12 @@ public class MyDaemonInstallationNodeContribution implements InstallationNodeCon
|
|
|
@Label(id = "lblStatus")
|
|
|
private LabelComponent refLblStatus;
|
|
|
|
|
|
+ @Input(id = "numberPos")
|
|
|
+ private InputTextField refNumberPos;
|
|
|
+
|
|
|
+ @Input(id = "btnPos")
|
|
|
+ private InputButton refButtonPos;
|
|
|
+
|
|
|
@Input(id = "btnDisableDaemon")
|
|
|
private InputButton disableDaemonButton;
|
|
|
|
|
@@ -77,6 +83,18 @@ public class MyDaemonInstallationNodeContribution implements InstallationNodeCon
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Input(id = "btnPos")
|
|
|
+ public void onBtnPos(InputEvent event) {
|
|
|
+ if (event.getEventType() == InputEvent.EventType.ON_CHANGE) {
|
|
|
+ try {
|
|
|
+ String pos=refNumberPos.getText();
|
|
|
+ getDaemonInterface().client.execute("pos", new String[]{pos});
|
|
|
+ } catch (XmlRpcException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
@Input(id = "btnEnableDaemon")
|
|
|
public void onStartClick(InputEvent event) {
|
|
@@ -123,7 +141,7 @@ public class MyDaemonInstallationNodeContribution implements InstallationNodeCon
|
|
|
public void run() {
|
|
|
try {
|
|
|
Object res = getDaemonInterface().client.execute("status", new String[]{});
|
|
|
- refLblStatus.setText(res.toString());
|
|
|
+ refLblStatus.setText("<html>"+res.toString()+"</html>");
|
|
|
System.out.println(res);
|
|
|
} catch (XmlRpcException e) {
|
|
|
e.printStackTrace();
|