Package org.vaadin.miki.markers
Interface HasMaximumSelectionSize
-
- All Known Subinterfaces:
WithMaximumSelectionSizeMixin<SELF>
- All Known Implementing Classes:
GridMultiSelect
public interface HasMaximumSelectionSizeMarker 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 Summary
Fields Modifier and Type Field Description static intUNLIMITEDIndicates unlimited selection size.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetMaximumSelectionSize()Returns the current maximum selection size.voidsetMaximumSelectionSize(int maximumSelectionSize)Defines the new maximum selection size.
-
-
-
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;
UNLIMITEDby default.
-
-