|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISelectionModel<T>
A model that stores selections for a table.
Method Summary | |
---|---|
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. |
Method Detail |
---|
boolean isMultiSelect()
boolean isSelected(@Nonnull T rowinstance)
rowinstance
-
int getSelectionCount()
void setInstanceSelected(@Nonnull T rowinstance, boolean on) throws java.lang.Exception
rowinstance
- on
-
java.lang.Exception
void clearSelection() throws java.lang.Exception
java.lang.Exception
void selectAll(ITableModel<T> in) throws java.lang.Exception
ISelectionAllHandler
,
so that "select all" can be forbidden.
in
-
java.lang.Exception
void addListener(@Nonnull ISelectionListener<T> l)
l
- void removeListener(@Nonnull ISelectionListener<T> l)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |