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 boolean
isSelectable(E e)
Returns whether the element can be selected.boolean
isSelectAll()
Returns whether it's all elements selectedvoid
setSelectAll(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:SelectionControl
Returns whether the element can be selected.- Specified by:
isSelectable
in interfaceSelectionControl<E>
-
setSelectAll
public void setSelectAll(boolean selectAll)
Description copied from interface:SelectionControl
Sets to select all elements or deselect all elements.- Specified by:
setSelectAll
in interfaceSelectionControl<E>
-
isSelectAll
public boolean isSelectAll()
Description copied from interface:SelectionControl
Returns whether it's all elements selected- Specified by:
isSelectAll
in interfaceSelectionControl<E>
-
-