com.michaelbaranov.microba.common
Class AbstractBoundedTableModelWithSelection
java.lang.Object
javax.swing.table.AbstractTableModel
com.michaelbaranov.microba.common.AbstractBoundedTableModel
com.michaelbaranov.microba.common.AbstractBoundedTableModelWithSelection
- All Implemented Interfaces:
- BoundedTableModel, java.io.Serializable, javax.swing.ListSelectionModel, javax.swing.table.TableModel
- Direct Known Subclasses:
- DefaultGradientEditorModel, DefaultMarkerModel
public abstract class AbstractBoundedTableModelWithSelection
- extends AbstractBoundedTableModel
- implements javax.swing.ListSelectionModel
A simple abstract implementation of BoundedTableModel
with
implemented ListSelectionModel
functionality. A convenience
class.
- Author:
- Michael Baranov
- See Also:
- Serialized Form
Fields inherited from interface javax.swing.ListSelectionModel |
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION |
Methods inherited from class com.michaelbaranov.microba.common.AbstractBoundedTableModel |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.table.TableModel |
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt |
AbstractBoundedTableModelWithSelection
public AbstractBoundedTableModelWithSelection()
addListSelectionListener
public void addListSelectionListener(javax.swing.event.ListSelectionListener l)
- Specified by:
addListSelectionListener
in interface javax.swing.ListSelectionModel
addSelectionInterval
public void addSelectionInterval(int index0,
int index1)
- Specified by:
addSelectionInterval
in interface javax.swing.ListSelectionModel
clearSelection
public void clearSelection()
- Specified by:
clearSelection
in interface javax.swing.ListSelectionModel
getAnchorSelectionIndex
public int getAnchorSelectionIndex()
- Specified by:
getAnchorSelectionIndex
in interface javax.swing.ListSelectionModel
getLeadSelectionIndex
public int getLeadSelectionIndex()
- Specified by:
getLeadSelectionIndex
in interface javax.swing.ListSelectionModel
getListeners
public java.util.EventListener[] getListeners(java.lang.Class listenerType)
- Overrides:
getListeners
in class javax.swing.table.AbstractTableModel
getListSelectionListeners
public javax.swing.event.ListSelectionListener[] getListSelectionListeners()
getMaxSelectionIndex
public int getMaxSelectionIndex()
- Specified by:
getMaxSelectionIndex
in interface javax.swing.ListSelectionModel
getMinSelectionIndex
public int getMinSelectionIndex()
- Specified by:
getMinSelectionIndex
in interface javax.swing.ListSelectionModel
getSelectionMode
public int getSelectionMode()
- Specified by:
getSelectionMode
in interface javax.swing.ListSelectionModel
getValueIsAdjusting
public boolean getValueIsAdjusting()
- Specified by:
getValueIsAdjusting
in interface javax.swing.ListSelectionModel
insertIndexInterval
public void insertIndexInterval(int index,
int length,
boolean before)
- Specified by:
insertIndexInterval
in interface javax.swing.ListSelectionModel
isLeadAnchorNotificationEnabled
public boolean isLeadAnchorNotificationEnabled()
isSelectedIndex
public boolean isSelectedIndex(int index)
- Specified by:
isSelectedIndex
in interface javax.swing.ListSelectionModel
isSelectionEmpty
public boolean isSelectionEmpty()
- Specified by:
isSelectionEmpty
in interface javax.swing.ListSelectionModel
removeIndexInterval
public void removeIndexInterval(int index0,
int index1)
- Specified by:
removeIndexInterval
in interface javax.swing.ListSelectionModel
removeListSelectionListener
public void removeListSelectionListener(javax.swing.event.ListSelectionListener l)
- Specified by:
removeListSelectionListener
in interface javax.swing.ListSelectionModel
removeSelectionInterval
public void removeSelectionInterval(int index0,
int index1)
- Specified by:
removeSelectionInterval
in interface javax.swing.ListSelectionModel
setAnchorSelectionIndex
public void setAnchorSelectionIndex(int anchorIndex)
- Specified by:
setAnchorSelectionIndex
in interface javax.swing.ListSelectionModel
setLeadAnchorNotificationEnabled
public void setLeadAnchorNotificationEnabled(boolean flag)
setLeadSelectionIndex
public void setLeadSelectionIndex(int leadIndex)
- Specified by:
setLeadSelectionIndex
in interface javax.swing.ListSelectionModel
setSelectionInterval
public void setSelectionInterval(int index0,
int index1)
- Specified by:
setSelectionInterval
in interface javax.swing.ListSelectionModel
setSelectionMode
public void setSelectionMode(int selectionMode)
- Specified by:
setSelectionMode
in interface javax.swing.ListSelectionModel
setValueIsAdjusting
public void setValueIsAdjusting(boolean isAdjusting)
- Specified by:
setValueIsAdjusting
in interface javax.swing.ListSelectionModel