protected class ListMergeModel.EntriesSelectionModel extends DefaultListSelectionModel
JTable
which displays
an entry list managed by ListMergeModel
.
The model ensures that only rows displaying an entry in the entry list
can be selected. "Empty" rows can't be selected.Modifier and Type | Field and Description |
---|---|
private List<T> |
entries |
leadAnchorNotificationEnabled, listenerList
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION
Constructor and Description |
---|
EntriesSelectionModel(List<T> nodes) |
Modifier and Type | Method and Description |
---|---|
void |
addSelectionInterval(int index0,
int index1) |
void |
insertIndexInterval(int index,
int length,
boolean before) |
void |
moveLeadSelectionIndex(int leadIndex) |
void |
removeIndexInterval(int index0,
int index1) |
void |
removeSelectionInterval(int index0,
int index1) |
void |
setAnchorSelectionIndex(int anchorIndex) |
void |
setLeadSelectionIndex(int leadIndex) |
void |
setSelectionInterval(int index0,
int index1) |
addListSelectionListener, clearSelection, clone, fireValueChanged, fireValueChanged, fireValueChanged, getAnchorSelectionIndex, getLeadSelectionIndex, getListeners, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getSelectionMode, getValueIsAdjusting, isLeadAnchorNotificationEnabled, isSelectedIndex, isSelectionEmpty, removeListSelectionListener, setLeadAnchorNotificationEnabled, setSelectionMode, setValueIsAdjusting, toString
private final transient List<T extends PrimitiveId> entries
public EntriesSelectionModel(List<T> nodes)
public void addSelectionInterval(int index0, int index1)
addSelectionInterval
in interface ListSelectionModel
addSelectionInterval
in class DefaultListSelectionModel
public void insertIndexInterval(int index, int length, boolean before)
insertIndexInterval
in interface ListSelectionModel
insertIndexInterval
in class DefaultListSelectionModel
public void moveLeadSelectionIndex(int leadIndex)
moveLeadSelectionIndex
in class DefaultListSelectionModel
public void removeIndexInterval(int index0, int index1)
removeIndexInterval
in interface ListSelectionModel
removeIndexInterval
in class DefaultListSelectionModel
public void removeSelectionInterval(int index0, int index1)
removeSelectionInterval
in interface ListSelectionModel
removeSelectionInterval
in class DefaultListSelectionModel
public void setAnchorSelectionIndex(int anchorIndex)
setAnchorSelectionIndex
in interface ListSelectionModel
setAnchorSelectionIndex
in class DefaultListSelectionModel
public void setLeadSelectionIndex(int leadIndex)
setLeadSelectionIndex
in interface ListSelectionModel
setLeadSelectionIndex
in class DefaultListSelectionModel
public void setSelectionInterval(int index0, int index1)
setSelectionInterval
in interface ListSelectionModel
setSelectionInterval
in class DefaultListSelectionModel