Interface Button.SelectedBindMapping

  • Enclosing class:
    Button

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

      • isSelected

        boolean isSelected​(java.lang.Object value)
        Converts a context value to a selection state during a Component.load(Object) operation.
        Parameters:
        value - The value from the bound object that must be converted to a boolean value for the "selected" state.
        Returns:
        The converted value.
      • valueOf

        java.lang.Object valueOf​(boolean selected)
        Converts a selection state to a context value during a Component.store(Object) operation.
        Parameters:
        selected - The button's "selected" value which must be converted to a suitable value to store as the bound object's property.
        Returns:
        The converted "selected" value.