public class ViewHugeSelectionModel extends Object implements ListSelectionModel
ViewHugeTableModel
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION
Constructor and Description |
---|
ViewHugeSelectionModel(ListSelectionModel hugeModel,
ViewHugeTableModel tmodel)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addListSelectionListener(ListSelectionListener viewLnr) |
void |
addSelectionInterval(int index0,
int index1) |
void |
clearSelection() |
int |
getAnchorSelectionIndex() |
int |
getLeadSelectionIndex() |
int |
getMaxSelectionIndex() |
int |
getMinSelectionIndex() |
int |
getSelectionMode() |
boolean |
getValueIsAdjusting() |
void |
insertIndexInterval(int index,
int length,
boolean before) |
boolean |
isSelectedIndex(int index) |
boolean |
isSelectionEmpty() |
void |
removeIndexInterval(int index0,
int index1) |
void |
removeListSelectionListener(ListSelectionListener viewLnr) |
void |
removeSelectionInterval(int index0,
int index1) |
void |
setAnchorSelectionIndex(int index) |
void |
setLeadSelectionIndex(int index) |
void |
setSelectionInterval(int index0,
int index1) |
void |
setSelectionMode(int selectionMode) |
void |
setValueIsAdjusting(boolean valueIsAdjusting) |
public ViewHugeSelectionModel(ListSelectionModel hugeModel, ViewHugeTableModel tmodel)
hugeModel
- list selection model corresonding to the
table model underlying the supplied
tmodel
tmodel
- ViewHugeTableModel presenting an underlying
huge table to a JTablepublic void setSelectionInterval(int index0, int index1)
setSelectionInterval
in interface ListSelectionModel
public void addSelectionInterval(int index0, int index1)
addSelectionInterval
in interface ListSelectionModel
public void removeSelectionInterval(int index0, int index1)
removeSelectionInterval
in interface ListSelectionModel
public int getMinSelectionIndex()
getMinSelectionIndex
in interface ListSelectionModel
public int getMaxSelectionIndex()
getMaxSelectionIndex
in interface ListSelectionModel
public boolean isSelectedIndex(int index)
isSelectedIndex
in interface ListSelectionModel
public int getAnchorSelectionIndex()
getAnchorSelectionIndex
in interface ListSelectionModel
public void setAnchorSelectionIndex(int index)
setAnchorSelectionIndex
in interface ListSelectionModel
public int getLeadSelectionIndex()
getLeadSelectionIndex
in interface ListSelectionModel
public void setLeadSelectionIndex(int index)
setLeadSelectionIndex
in interface ListSelectionModel
public void clearSelection()
clearSelection
in interface ListSelectionModel
public boolean isSelectionEmpty()
isSelectionEmpty
in interface ListSelectionModel
public void insertIndexInterval(int index, int length, boolean before)
insertIndexInterval
in interface ListSelectionModel
public void removeIndexInterval(int index0, int index1)
removeIndexInterval
in interface ListSelectionModel
public void setValueIsAdjusting(boolean valueIsAdjusting)
setValueIsAdjusting
in interface ListSelectionModel
public boolean getValueIsAdjusting()
getValueIsAdjusting
in interface ListSelectionModel
public void setSelectionMode(int selectionMode)
setSelectionMode
in interface ListSelectionModel
public int getSelectionMode()
getSelectionMode
in interface ListSelectionModel
public void addListSelectionListener(ListSelectionListener viewLnr)
addListSelectionListener
in interface ListSelectionModel
public void removeListSelectionListener(ListSelectionListener viewLnr)
removeListSelectionListener
in interface ListSelectionModel
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.