Interface Button.StateBindMapping

  • Enclosing class:
    Button

    public static interface Button.StateBindMapping
    Translates between button state and context data during data binding.
    • Method Detail

      • toState

        Button.State toState​(java.lang.Object value)
        Converts a context value to a button state during a Component.load(Object) operation.
        Parameters:
        value - The bound object's property value which must be converted to a button's state value.
        Returns:
        The converted button state.
      • valueOf

        java.lang.Object valueOf​(Button.State state)
        Converts a button state to a context value during a Component.store(Object) operation.
        Parameters:
        state - The button's current state value which must be converted to a value suitable for storage in the bound object's property.
        Returns:
        The converted state value.