Class ZeroAmountBooleanBinding

  • All Implemented Interfaces:
    javafx.beans.binding.Binding<java.lang.Boolean>, javafx.beans.Observable, javafx.beans.value.ObservableBooleanValue, javafx.beans.value.ObservableValue<java.lang.Boolean>

    public class ZeroAmountBooleanBinding
    extends javafx.beans.binding.BooleanBinding
    Boolean binding checking the amount of an integer property.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2013 Created on Dec 2, 2013
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javafx.beans.property.IntegerProperty amountToBeChecked  
    • Constructor Summary

      Constructors 
      Constructor Description
      ZeroAmountBooleanBinding​(javafx.beans.property.IntegerProperty amountToBeChecked)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean computeValue()
      Evaluates to true as long as the bound integer property is positive (>0).
      • Methods inherited from class javafx.beans.binding.BooleanBinding

        addListener, addListener, bind, dispose, get, getDependencies, invalidate, isValid, onInvalidating, removeListener, removeListener, toString, unbind
      • Methods inherited from class javafx.beans.binding.BooleanExpression

        and, asObject, asString, booleanExpression, booleanExpression, getValue, isEqualTo, isNotEqualTo, not, or
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface javafx.beans.value.ObservableValue

        getValue
    • Field Detail

      • amountToBeChecked

        private final javafx.beans.property.IntegerProperty amountToBeChecked
    • Constructor Detail

      • ZeroAmountBooleanBinding

        public ZeroAmountBooleanBinding​(javafx.beans.property.IntegerProperty amountToBeChecked)
    • Method Detail

      • computeValue

        protected boolean computeValue()
        Evaluates to true as long as the bound integer property is positive (>0).
        Specified by:
        computeValue in class javafx.beans.binding.BooleanBinding