public TimeCondition getTimeCondition() { int minutes; String conditionString; if (!timeCorrelationMinutes.isEmpty()) { minutes = Integer.valueOf(timeCorrelationMinutes); } else { minutes = 0; } boolean isAfter = selectedTimeRadioOption.equals("after") ? true : false; if (isMultipleConditionsTextFieldFilled()) { conditionString = multipleConditionsTextField.getModelObject(); } else { conditionString = conditionPanel.getCondition().getConditionString(); } // System.out.println(conditionString); TimeCondition timeCondition = new TimeCondition(selectedEventType, minutes, isAfter, conditionString); return timeCondition; }
public DropDownChoice<Serializable> getTimeCorrelationConditionValueSelect() { return conditionPanel.getConditionValueSelect(); }
public DropDownChoice<String> getTimeCorrelationConditionAttributeSelect() { return conditionPanel.getConditionAttributeSelect(); }