Module javafx.base

Interface WritableIntegerValue

All Superinterfaces:
WritableNumberValue, WritableValue<Number>
All Known Implementing Classes:
IntegerProperty, IntegerPropertyBase, JavaBeanIntegerProperty, ReadOnlyIntegerWrapper, SimpleIntegerProperty, SimpleStyleableIntegerProperty, StyleableIntegerProperty

public interface WritableIntegerValue
extends WritableNumberValue
A writable int value.
JavaFX 2.0
See Also:
WritableValue, WritableNumberValue
  • Method Summary

    Modifier and Type Method Description
    int get()
    Get the wrapped value.
    void set​(int value)
    Set the wrapped value.
    void setValue​(Number value)
    Set the wrapped value.

    Methods declared in interface javafx.beans.value.WritableValue

  • Method Details

    • get

      int get()
      Get the wrapped value. Unlike WritableValue.getValue(), this method returns primitive int. Needs to be identical to WritableValue.getValue().
      The current value
    • set

      void set​(int value)
      Set the wrapped value. Unlike setValue(java.lang.Number), this method uses primitive int.
      value - The new value
    • setValue

      void setValue​(Number value)
      Set the wrapped value.

      Note: this method should accept null without throwing an exception, setting "0" instead.

      Specified by:
      setValue in interface WritableValue<Number>
      value - The new value