Interface IUIIndexedSelection

  • All Superinterfaces:
    IUISelection
    All Known Subinterfaces:
    IUIAnimatedSingleIndexedSelection, IUISingleIndexedSelection
    All Known Implementing Classes:
    AnimatedSingleIndexSelection, MultipleIndiciesSelection, RadioSelection, SingleIndexSelection

    public interface IUIIndexedSelection
    extends IUISelection
    The indexed selection is used for e.g. comboboxes or grids to return or set the selection of rows as indicies.

    Indexes vs. indices

    Indexes and indices are both accepted and widely used plurals of the noun index. Both appear throughout the English-speaking world, but indices prevails in varieties of English from outside North America, while indexes is more common in American and Canadian English. Meanwhile, indices is generally preferred in mathematical, financial, and technical contexts, while indexes is relatively common in general usage.

    Author:
    Christopher Mindus
    • Field Detail

      • EMPTY

        static final int[] EMPTY
        The empty selection indexes.
    • Method Detail

      • 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.
      • getIndexedSource

        IUIIndexedSelectionComp getIndexedSource()
        Get the source component of the event.
        Returns:
        The indexed-type component.