use of org.drools.workbench.models.testscenarios.shared.FieldData in project drools-wb by kiegroup.
the class ListEditorRow method suffleUp.
@UiHandler("suffleUp")
public void suffleUp(final ClickEvent event) {
if (index > 0) {
FieldData oneUp = parentField.getCollectionFieldList().get(index - 1);
FieldData onMyLine = parentField.getCollectionFieldList().get(index);
parentField.getCollectionFieldList().set(index, oneUp);
parentField.getCollectionFieldList().set(index - 1, onMyLine);
parent.renderEditor();
}
}
use of org.drools.workbench.models.testscenarios.shared.FieldData in project drools-wb by kiegroup.
the class ListEditorRow method newItemBelow.
@UiHandler("newItemBelow")
public void newItemBelow(final ClickEvent event) {
FieldData newFieldData = new FieldData();
newFieldData.setName(parentField.getName());
parentField.getCollectionFieldList().add(index + 1, newFieldData);
parent.renderEditor();
}
Aggregations