Interface ICodeItemsOwnerSelectionSupport

All Superinterfaces:
ICodeItemsOwner
All Known Implementing Classes:
EUIComboBox, EUISpinner, UIAbstractListChoice, UIComboBox, UISpinner

public interface ICodeItemsOwnerSelectionSupport extends ICodeItemsOwner
Interface implemented by the owner of the code items.
Author:
Christopher Mindus
  • Method Details

    • getSelectionSupport

      default ICodeItemsOwnerSelectionSupport getSelectionSupport()
      Returns the selection implementation if the owner supports it.
      Specified by:
      getSelectionSupport in interface ICodeItemsOwner
      Returns:
      The selection instance for the owner, or null for no selection support.
    • clearSelection

      String clearSelection()
      Clear the selection.
      Returns:
      null for success, otherwise the error message with the reason why it failed.
    • getSelectedIndex

      int getSelectedIndex()
      Gets the first selected index.
      Returns:
      The first index in the current selection, or -1 for none.
    • setSelection

      String setSelection(int index)
      Sets the selection as a single selected item at specified index.
      Parameters:
      index - The single item to select at index, -1 to clear the selection.
      Returns:
      null for success, otherwise an error message why the selection failed.