Package org.zkoss.zul
Class AbstractListModel.DefaultSelectionControl<E>
java.lang.Object
org.zkoss.zul.AbstractListModel.DefaultSelectionControl<E>
- All Implemented Interfaces:
Serializable,SelectionControl<E>
- Enclosing class:
- AbstractListModel<E>
public static class AbstractListModel.DefaultSelectionControl<E>
extends Object
implements SelectionControl<E>
A default selection control implementation for
AbstractListModel,
by default it assumes all elements are selectable.
Note: the implementation is not used for a huge data model, if in this case, please implement your own one to speed up.
- Since:
- 8.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisSelectable(E e) Returns whether the element can be selected.booleanReturns whether it's all elements selectedvoidsetSelectAll(boolean selectAll) Sets to select all elements or deselect all elements.
-
Constructor Details
-
DefaultSelectionControl
-
-
Method Details
-
isSelectable
Description copied from interface:SelectionControlReturns whether the element can be selected.- Specified by:
isSelectablein interfaceSelectionControl<E>
-
setSelectAll
public void setSelectAll(boolean selectAll) Description copied from interface:SelectionControlSets to select all elements or deselect all elements.- Specified by:
setSelectAllin interfaceSelectionControl<E>
-
isSelectAll
public boolean isSelectAll()Description copied from interface:SelectionControlReturns whether it's all elements selected- Specified by:
isSelectAllin interfaceSelectionControl<E>
-