Interface IUIIndexedSelectionComp

    • Method Detail

      • clearSelection

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

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

        int[] getSelectedIndicies()
        Gets the selected indicies.
        Returns:
        A new array of the selected indices (that may be modified to your liking), or a static zero in length array for no selection.
      • setSelection

        java.lang.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.
      • setSelection

        java.lang.String setSelection​(int[] indicies)
        Sets the selection to the specified indicies.
        Parameters:
        indicies - The indicies.
        Returns:
        null for success, otherwise the error message with the reason why it failed.
      • setSelection

        default java.lang.String setSelection​(IntArrayList intArrayList)
        Sets the selection to the specified indicies.
        Parameters:
        intArrayList - The int array of the selection.
        Returns:
        null for success, otherwise the error message with the reason why it failed.
      • setSelection

        default java.lang.String setSelection​(java.util.List<java.lang.Integer> indiciesCollection)
        Sets the selection to the specified indicies.
        Parameters:
        indiciesCollection - The collection of integers of the selection.
        Returns:
        null for success, otherwise the error message with the reason why it failed.
        Throws:
        java.lang.NullPointerException - If an element in the collection is null.
      • setSelection

        default java.lang.String setSelection​(java.util.Collection<java.lang.Integer> indiciesCollection)
        Sets the selection to the specified indicies.
        Parameters:
        indiciesCollection - The indicies.
        Returns:
        null for success, otherwise the error message with the reason why it failed.
        Throws:
        java.lang.NullPointerException - If an element in the collection is null.
      • setSelection

        default java.lang.String setSelection​(java.lang.Iterable<java.lang.Integer> indiciesIterable)
        Sets the selection to the specified indicies.
        Parameters:
        indiciesIterable - The iterable is used to set the selection to the remaining indicies.
        Returns:
        null for success, otherwise the error message with the reason why it failed.
        Throws:
        java.lang.NullPointerException - If an element in the iterable elements is null.
      • setSelection

        default java.lang.String setSelection​(java.util.Iterator<java.lang.Integer> indiciesIterator)
        Sets the selection to the specified indicies.
        Parameters:
        indiciesIterator - The iterator is used to set the selection to the remaining indicies.
        Returns:
        null for success, otherwise the error message with the reason why it failed.
        Throws:
        java.lang.NullPointerException - If an element from the iteration over the iterator is null.
      • isSelectionIndexBased

        default boolean isSelectionIndexBased()
        Returns if the selection component supports index-based selection.
        Specified by:
        isSelectionIndexBased in interface IUISelectionComp
        Returns:
        true.