use of org.uberfire.ext.widgets.common.client.common.popups.footers.ModalFooterOKCancelButtons in project drools-wb by kiegroup.
the class AddFieldClickHandler method onClick.
@Override
public void onClick(final ClickEvent event) {
final FormStylePopup pop = new FormStylePopup(TestScenarioConstants.INSTANCE.ChooseAFieldToAdd());
final FactFieldSelector selector = createAddNewField(pop);
pop.addAttribute(TestScenarioConstants.INSTANCE.ChooseAFieldToAdd(), selector);
pop.add(new ModalFooterOKCancelButtons(new Command() {
@Override
public void execute() {
SelectionEvent.fire(selector, selector.getSelectedText());
}
}, new Command() {
@Override
public void execute() {
pop.hide();
}
}));
pop.show();
}
Aggregations