public abstract class AbstractBoundedTableModelWithSelection extends AbstractBoundedTableModel implements javax.swing.ListSelectionModel
BoundedTableModel
with
implemented ListSelectionModel
functionality. A convenience
class.MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION
PROPERTY_LOWER_BOUND, PROPERTY_UPPER_BOUND
Constructor and Description |
---|
AbstractBoundedTableModelWithSelection() |
Modifier and Type | Method and Description |
---|---|
void |
addListSelectionListener(javax.swing.event.ListSelectionListener l) |
void |
addSelectionInterval(int index0,
int index1) |
void |
clearSelection() |
int |
getAnchorSelectionIndex() |
int |
getLeadSelectionIndex() |
java.util.EventListener[] |
getListeners(java.lang.Class listenerType) |
javax.swing.event.ListSelectionListener[] |
getListSelectionListeners() |
int |
getMaxSelectionIndex() |
int |
getMinSelectionIndex() |
int |
getSelectionMode() |
boolean |
getValueIsAdjusting() |
void |
insertIndexInterval(int index,
int length,
boolean before) |
boolean |
isLeadAnchorNotificationEnabled() |
boolean |
isSelectedIndex(int index) |
boolean |
isSelectionEmpty() |
void |
removeIndexInterval(int index0,
int index1) |
void |
removeListSelectionListener(javax.swing.event.ListSelectionListener l) |
void |
removeSelectionInterval(int index0,
int index1) |
void |
setAnchorSelectionIndex(int anchorIndex) |
void |
setLeadAnchorNotificationEnabled(boolean flag) |
void |
setLeadSelectionIndex(int leadIndex) |
void |
setSelectionInterval(int index0,
int index1) |
void |
setSelectionMode(int selectionMode) |
void |
setValueIsAdjusting(boolean isAdjusting) |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLowerBound, getUpperBound
public AbstractBoundedTableModelWithSelection()
public void addListSelectionListener(javax.swing.event.ListSelectionListener l)
addListSelectionListener
in interface javax.swing.ListSelectionModel
public void addSelectionInterval(int index0, int index1)
addSelectionInterval
in interface javax.swing.ListSelectionModel
public void clearSelection()
clearSelection
in interface javax.swing.ListSelectionModel
public int getAnchorSelectionIndex()
getAnchorSelectionIndex
in interface javax.swing.ListSelectionModel
public int getLeadSelectionIndex()
getLeadSelectionIndex
in interface javax.swing.ListSelectionModel
public java.util.EventListener[] getListeners(java.lang.Class listenerType)
getListeners
in class javax.swing.table.AbstractTableModel
public javax.swing.event.ListSelectionListener[] getListSelectionListeners()
public int getMaxSelectionIndex()
getMaxSelectionIndex
in interface javax.swing.ListSelectionModel
public int getMinSelectionIndex()
getMinSelectionIndex
in interface javax.swing.ListSelectionModel
public int getSelectionMode()
getSelectionMode
in interface javax.swing.ListSelectionModel
public boolean getValueIsAdjusting()
getValueIsAdjusting
in interface javax.swing.ListSelectionModel
public void insertIndexInterval(int index, int length, boolean before)
insertIndexInterval
in interface javax.swing.ListSelectionModel
public boolean isLeadAnchorNotificationEnabled()
public boolean isSelectedIndex(int index)
isSelectedIndex
in interface javax.swing.ListSelectionModel
public boolean isSelectionEmpty()
isSelectionEmpty
in interface javax.swing.ListSelectionModel
public void removeIndexInterval(int index0, int index1)
removeIndexInterval
in interface javax.swing.ListSelectionModel
public void removeListSelectionListener(javax.swing.event.ListSelectionListener l)
removeListSelectionListener
in interface javax.swing.ListSelectionModel
public void removeSelectionInterval(int index0, int index1)
removeSelectionInterval
in interface javax.swing.ListSelectionModel
public void setAnchorSelectionIndex(int anchorIndex)
setAnchorSelectionIndex
in interface javax.swing.ListSelectionModel
public void setLeadAnchorNotificationEnabled(boolean flag)
public void setLeadSelectionIndex(int leadIndex)
setLeadSelectionIndex
in interface javax.swing.ListSelectionModel
public void setSelectionInterval(int index0, int index1)
setSelectionInterval
in interface javax.swing.ListSelectionModel
public void setSelectionMode(int selectionMode)
setSelectionMode
in interface javax.swing.ListSelectionModel
public void setValueIsAdjusting(boolean isAdjusting)
setValueIsAdjusting
in interface javax.swing.ListSelectionModel