Interface HasMaximumSelectionSize

  • All Known Subinterfaces:
    WithMaximumSelectionSizeMixin<SELF>
    All Known Implementing Classes:
    GridMultiSelect

    public interface HasMaximumSelectionSize
    Marker interface for objects that have a limit to selection size. Whatever selection size means is left for implementations to decide.
    Since:
    2020-12-09
    Author:
    miki
    • Field Detail

      • UNLIMITED

        static final int UNLIMITED
        Indicates unlimited selection size. This should be the default for each implementing class. Any maximum selection size not larger than this number means unlimited selection.
        See Also:
        Constant Field Values
    • Method Detail

      • setMaximumSelectionSize

        void setMaximumSelectionSize​(int maximumSelectionSize)
        Defines the new maximum selection size. When current selection is above the new limit, the selection should change so that it fits the new limit.
        Parameters:
        maximumSelectionSize - Maximum selection size.
      • getMaximumSelectionSize

        int getMaximumSelectionSize()
        Returns the current maximum selection size.
        Returns:
        Maximum allowed selection size; UNLIMITED by default.