Interface ValueModel

All Known Implementing Classes:
ClosureModel, PropertyModel, ValueHolder

public interface ValueModel
Represents a typed value that can participate in Swing data binding.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the declared value type for this model.
    Returns the current value exposed by this model.
    boolean
    Indicates whether setValue(Object) is expected to succeed.
    void
    Updates the current value exposed by this model.
  • Method Details

    • getValue

      Object getValue()
      Returns the current value exposed by this model.
      Returns:
      the current value, or null
    • setValue

      void setValue(Object value)
      Updates the current value exposed by this model.
      Parameters:
      value - the new value
    • getType

      Class getType()
      Returns the declared value type for this model.
      Returns:
      the model type
    • isEditable

      boolean isEditable()
      Indicates whether setValue(Object) is expected to succeed.
      Returns:
      true when the model can be written to