java.lang.Object
net.anwiba.commons.swing.table.SelectionIndexModel<T>
- All Implemented Interfaces:
Iterable<Integer>,ISelectionIndexModel<T>
-
Constructor Summary
ConstructorsConstructorDescriptionSelectionIndexModel(ListSelectionModel tableSelectionModel, ISortedRowMapper rowMapper, SelectionModel<T> selectionModel) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSelectionListener(ISelectionListener<T> listener) voidclear()intintbooleanisEmpty()iterator()voidremoveSelectionListener(ISelectionListener<T> listener) voidset(int index) intsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SelectionIndexModel
public SelectionIndexModel(ListSelectionModel tableSelectionModel, ISortedRowMapper rowMapper, SelectionModel<T> selectionModel)
-
-
Method Details
-
getInterval
-
getMinimum
public int getMinimum()- Specified by:
getMinimumin interfaceISelectionIndexModel<T>
-
getMaximum
public int getMaximum()- Specified by:
getMaximumin interfaceISelectionIndexModel<T>
-
set
public void set(int index) - Specified by:
setin interfaceISelectionIndexModel<T>
-
iterator
-
size
public int size()- Specified by:
sizein interfaceISelectionIndexModel<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceISelectionIndexModel<T>
-
addSelectionListener
- Specified by:
addSelectionListenerin interfaceISelectionIndexModel<T>
-
removeSelectionListener
- Specified by:
removeSelectionListenerin interfaceISelectionIndexModel<T>
-
clear
public void clear()- Specified by:
clearin interfaceISelectionIndexModel<T>
-