private BooleanBinding isAssembledButNoBOM() { return FX.isEmpty(itemTab.getBomTable()) .and( FX.is(getTypeCombo(), ItemType.BUNDLED) .or(FX.is(getTypeCombo(), ItemType.MADE)) .or(FX.is(getTypeCombo(), ItemType.REPACKED))); }
@Override public void setFocus() { itemTab.getTab().getTabPane().getSelectionModel().select(0); }
private ComboBox<ItemType> getTypeCombo() { return itemTab.getTypeCombo(); }
private BooleanBinding isPurchasedButNoQtyPerUom() { return FX.is(getTypeCombo(), ItemType.PURCHASED).and(FX.isEmpty(itemTab.getQtyPerUomTable())); }