Exemplo n.º 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())));
 }
Exemplo n.º 2
0
 private BooleanBinding noPricing() {
   return FX.isEmpty(pricingTab.getTable());
 }