Package: groovy.swing.model

## [Java] Interface ValueModel

-     public interface ValueModel

  Represents a typed value that can participate in Swing data binding.

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public Class` | `getType()` Returns the declared value type for this model.
    `` | `public Object` | `getValue()` Returns the current value exposed by this model.
    `` | `public boolean` | `isEditable()` Indicates whether setValue(Object) is expected to succeed.
    `` | `public void` | `setValue(Object value)` Updates the current value exposed by this model.

- - ### Method Detail

    - #### public Class getType()

      Returns the declared value type for this model.

      Returns:
        the model type

    - #### public Object getValue()

      Returns the current value exposed by this model.

      Returns:
        the current value, or `null`

    - #### public boolean isEditable()

      Indicates whether setValue(Object) is expected to succeed.

      Returns:
        `true` when the model can be written to

    - #### public void setValue(Object value)

      Updates the current value exposed by this model.

      Parameters:
        `value` - the new value