protected class ListMergeModel.EntriesSelectionModel extends javax.swing.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 java.util.List<T> |
entries |
Constructor and Description |
---|
EntriesSelectionModel(java.util.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 java.util.List<T extends PrimitiveId> entries
public EntriesSelectionModel(java.util.List<T> nodes)
public void addSelectionInterval(int index0, int index1)
addSelectionInterval
in interface javax.swing.ListSelectionModel
addSelectionInterval
in class javax.swing.DefaultListSelectionModel
public void insertIndexInterval(int index, int length, boolean before)
insertIndexInterval
in interface javax.swing.ListSelectionModel
insertIndexInterval
in class javax.swing.DefaultListSelectionModel
public void moveLeadSelectionIndex(int leadIndex)
moveLeadSelectionIndex
in class javax.swing.DefaultListSelectionModel
public void removeIndexInterval(int index0, int index1)
removeIndexInterval
in interface javax.swing.ListSelectionModel
removeIndexInterval
in class javax.swing.DefaultListSelectionModel
public void removeSelectionInterval(int index0, int index1)
removeSelectionInterval
in interface javax.swing.ListSelectionModel
removeSelectionInterval
in class javax.swing.DefaultListSelectionModel
public void setAnchorSelectionIndex(int anchorIndex)
setAnchorSelectionIndex
in interface javax.swing.ListSelectionModel
setAnchorSelectionIndex
in class javax.swing.DefaultListSelectionModel
public void setLeadSelectionIndex(int leadIndex)
setLeadSelectionIndex
in interface javax.swing.ListSelectionModel
setLeadSelectionIndex
in class javax.swing.DefaultListSelectionModel
public void setSelectionInterval(int index0, int index1)
setSelectionInterval
in interface javax.swing.ListSelectionModel
setSelectionInterval
in class javax.swing.DefaultListSelectionModel