Example #1
0
 @Override
 protected void setBindings() {
   pricingTab
       .getTab()
       .disableProperty()
       .bind(
           noSelectedType()
               .or(isMonetary())
               .or(isFree())
               .or(isPurchasedButNoQtyPerUom())
               .or(isAssembledButNoBOM()));
   discountTab.getTab().disableProperty().bind(FX.isEmpty(pricingTab.getTable()));
   buttons.get("cancel").setDisable(true);
   buttons
       .get("save")
       .disableProperty()
       .bind(noSelectedType().or(noPricing().and(isNotMonetaryAndFree())));
 }
Example #2
0
 private void allowOnlyPricingUpdatesWhenSavingPreviouslyPostedItemElsePersistAll()
     throws InvalidException {
   if (encoderDisplay.getText().isEmpty()) saveAll();
   else pricingTab.save();
 }
Example #3
0
 private BooleanBinding noPricing() {
   return FX.isEmpty(pricingTab.getTable());
 }