parent.getChildren().add(new Label("limit"));
parent.getChildren().add(maxCount);
}
private void createFromToUI(HBox parent,FromToFilterModel fromToFilterModel){
final DateTimePicker fromDateTimePicker = new DateTimePicker();
fromDateTimePicker.bindBidirectionalSelected(fromToFilterModel.from);
Pane from = fromDateTimePicker.createContent();
from.setPrefWidth(170);
parent.getChildren().add(new Label("from"));
parent.getChildren().add(from);
final DateTimePicker toDateTimePicker = new DateTimePicker();
toDateTimePicker.bindBidirectionalSelected(fromToFilterModel.to);
Pane to = toDateTimePicker.createContent();
to.setPrefWidth(170);
parent.getChildren().add(new Label("to"));
parent.getChildren().add(to);
}