public void onClose() { final PTInstruction instruction = new PTInstruction(); instruction.setObjectID(id); instruction.put(TYPE.KEY, TYPE.KEY_.EVENT); instruction.put(HANDLER.KEY, HANDLER.KEY_.CLOSE_HANDLER); uiService.sendDataToServer(instruction); }
protected void triggerEvent( final PTInstruction addHandler, final UIService uiService, final DateBox dateBox) { final PTInstruction instruction = new PTInstruction(); instruction.setObjectID(addHandler.getObjectID()); instruction.put(TYPE.KEY, TYPE.KEY_.EVENT); instruction.put(HANDLER.KEY, HANDLER.KEY_.DATE_VALUE_CHANGE_HANDLER); instruction.put(PROPERTY.VALUE, dateBox.getTextBox().getText()); uiService.sendDataToServer(dateBox, instruction); }
@Override public boolean execute() { if (cancelled) return false; final PTInstruction instruction = new PTInstruction(); instruction.setObjectID(schedulerID); instruction.put(TYPE.KEY, TYPE.KEY_.EVENT); instruction.put(HANDLER.KEY, HANDLER.KEY_.SCHEDULER); instruction.put(PROPERTY.ID, commandID); instruction.put(PROPERTY.FIXDELAY, delay); uiService.triggerEvent(instruction); return false; }