Interface Binding

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object get()
      Reads the current value of the property (or other resource).
      java.lang.Class getBindingType()
      Returns the type of the binding, either the type of resource exposed by the binding, or the type of the property bound.
      boolean isInvariant()
      Returns true if the value of the binding does not ever change.
      void set​(java.lang.Object value)
      Updates the current value.
    • Method Detail

      • get

        java.lang.Object get()
        Reads the current value of the property (or other resource). When reading properties of objects that are primitive types, this will return an instance of the wrapper type. In some cases, a binding is read only and this method will throw a runtime exception.
      • set

        void set​(java.lang.Object value)
        Updates the current value. Most types of bindings are read-only, and this method will throw a runtime exception. It is the caller's responsibility to ensure that the value passed in is of the appropriate type.
        Parameters:
        value -
      • isInvariant

        boolean isInvariant()
        Returns true if the value of the binding does not ever change. Components will often cache such values aggressively.
      • getBindingType

        java.lang.Class getBindingType()
        Returns the type of the binding, either the type of resource exposed by the binding, or the type of the property bound.