use of com.jgoodies.desktop.CommitCallback in project kindergarten by clear-group-ausbildung.
the class VendorAppliance method newVendor.
// Public API *************************************************************
public void newVendor(String title, final CommitCallback<VendorBean> outerCallback) {
final VendorBean newVendor = new VendorBean();
final CommitCallback<CommandValue> callback = result -> outerCallback.committed(result == CommandValue.OK ? newVendor : null);
VendorEditorModel model = new VendorEditorModel(newVendor, callback);
openVendorEditor(title, model);
}
use of com.jgoodies.desktop.CommitCallback in project kindergarten by clear-group-ausbildung.
the class PurchaseAppliance method newPurchase.
// Public API *************************************************************
public void newPurchase(String title, final CommitCallback<PurchaseBean> outerCallback) {
final PurchaseBean newPurchase = new PurchaseBean();
final CommitCallback<CommandValue> callback = result -> outerCallback.committed(result == CommandValue.OK ? newPurchase : null);
PurchaseEditorModel model = new PurchaseEditorModel(newPurchase, callback);
openPurchaseEditor(title, model);
}
Aggregations