public interface ISelectionModel<T>
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ISelectionListener<T> l)
Add a listener that will receive notifications when the selections change.
|
void |
clearSelection()
Clear all selections, then call the listeners to report the change.
|
int |
getSelectionCount()
Return the #of instances currently selected.
|
boolean |
isMultiSelect()
T if this model can handle multiple selections.
|
boolean |
isSelected(T rowinstance)
Return T if this instance is actually selected.
|
void |
removeListener(ISelectionListener<T> l) |
void |
selectAll(ITableModel<T> in)
This must add all (recoverable) items in the model and add them as selected as efficiently
as possible.
|
void |
setInstanceSelected(T rowinstance,
boolean on)
Set or clear an instance's selected state.
|
boolean isMultiSelect()
boolean isSelected(@Nonnull T rowinstance)
rowinstance - int getSelectionCount()
void setInstanceSelected(@Nonnull T rowinstance, boolean on) throws Exception
rowinstance - on - Exceptionvoid clearSelection()
throws Exception
Exceptionvoid selectAll(ITableModel<T> in) throws Exception
ISelectionAllHandler,
so that "select all" can be forbidden.in - Exceptionvoid addListener(@Nonnull ISelectionListener<T> l)
l - void removeListener(@Nonnull ISelectionListener<T> l)
Copyright © 2017 etc.to. All rights reserved.