use of com.google.gwt.user.client.ui.FlowPanel in project drools-wb by kiegroup.
the class ColumnManagementView method renderColumn.
List<HorizontalPanel> renderColumn(final Pattern52 pattern) {
final List<HorizontalPanel> conditions = new ArrayList<>();
for (ConditionCol52 conditionColumn : pattern.getChildColumns()) {
final HorizontalPanel condition = newHorizontalPanel();
final ColumnLabelWidget conditionLabel = makeColumnLabel(conditionColumn);
condition.add(conditionLabel);
final FlowPanel buttons = new FlowPanel() {
{
add(editAnchor((clickEvent) -> {
presenter.getActiveDecisionTable().ifPresent(dt -> dt.editCondition(pattern, conditionColumn));
}));
if (presenter.isActiveDecisionTableEditable()) {
add(removeCondition(conditionColumn));
}
}
};
condition.add(buttons);
conditions.add(condition);
}
return conditions;
}
Aggregations