Package org.zkoss.zul
Class AbstractListModel.DefaultSelectionControl<E>
- java.lang.Object
-
- org.zkoss.zul.AbstractListModel.DefaultSelectionControl<E>
-
- All Implemented Interfaces:
java.io.Serializable,SelectionControl<E>
- Enclosing class:
- AbstractListModel<E>
public static class AbstractListModel.DefaultSelectionControl<E> extends java.lang.Object implements SelectionControl<E>
A default selection control implementation forAbstractListModel, 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultSelectionControl(AbstractListModel<E> model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSelectable(E e)Returns whether the element can be selected.booleanisSelectAll()Returns whether it's all elements selectedvoidsetSelectAll(boolean selectAll)Sets to select all elements or deselect all elements.
-
-
-
Constructor Detail
-
DefaultSelectionControl
public DefaultSelectionControl(AbstractListModel<E> model)
-
-
Method Detail
-
isSelectable
public boolean isSelectable(E e)
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>
-
-