Class AbstractBoundedTableModelWithSelection
java.lang.Object
javax.swing.table.AbstractTableModel
com.michaelbaranov.microba.common.AbstractBoundedTableModel
com.michaelbaranov.microba.common.AbstractBoundedTableModelWithSelection
- All Implemented Interfaces:
BoundedTableModel,Serializable,ListSelectionModel,TableModel
- Direct Known Subclasses:
DefaultGradientEditorModel,DefaultMarkerModel
public abstract class AbstractBoundedTableModelWithSelection
extends AbstractBoundedTableModel
implements ListSelectionModel
A simple abstract implementation of
BoundedTableModel with
implemented ListSelectionModel functionality. A convenience
class.- Author:
- Michael Baranov
- See Also:
-
Field Summary
Fields inherited from interface com.michaelbaranov.microba.common.BoundedTableModel
PROPERTY_LOWER_BOUND, PROPERTY_UPPER_BOUNDFields inherited from interface javax.swing.ListSelectionModel
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddSelectionInterval(int index0, int index1) voidintintgetListeners(Class listenerType) intintintbooleanvoidinsertIndexInterval(int index, int length, boolean before) booleanbooleanisSelectedIndex(int index) booleanvoidremoveIndexInterval(int index0, int index1) voidvoidremoveSelectionInterval(int index0, int index1) voidsetAnchorSelectionIndex(int anchorIndex) voidsetLeadAnchorNotificationEnabled(boolean flag) voidsetLeadSelectionIndex(int leadIndex) voidsetSelectionInterval(int index0, int index1) voidsetSelectionMode(int selectionMode) voidsetValueIsAdjusting(boolean isAdjusting) Methods inherited from class com.michaelbaranov.microba.common.AbstractBoundedTableModel
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListenerMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.michaelbaranov.microba.common.BoundedTableModel
getLowerBound, getUpperBoundMethods inherited from interface javax.swing.ListSelectionModel
getSelectedIndices, getSelectedItemsCountMethods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
-
Constructor Details
-
AbstractBoundedTableModelWithSelection
public AbstractBoundedTableModelWithSelection()
-
-
Method Details
-
addListSelectionListener
- Specified by:
addListSelectionListenerin interfaceListSelectionModel
-
addSelectionInterval
public void addSelectionInterval(int index0, int index1) - Specified by:
addSelectionIntervalin interfaceListSelectionModel
-
clearSelection
public void clearSelection()- Specified by:
clearSelectionin interfaceListSelectionModel
-
getAnchorSelectionIndex
public int getAnchorSelectionIndex()- Specified by:
getAnchorSelectionIndexin interfaceListSelectionModel
-
getLeadSelectionIndex
public int getLeadSelectionIndex()- Specified by:
getLeadSelectionIndexin interfaceListSelectionModel
-
getListeners
- Overrides:
getListenersin classAbstractTableModel
-
getListSelectionListeners
-
getMaxSelectionIndex
public int getMaxSelectionIndex()- Specified by:
getMaxSelectionIndexin interfaceListSelectionModel
-
getMinSelectionIndex
public int getMinSelectionIndex()- Specified by:
getMinSelectionIndexin interfaceListSelectionModel
-
getSelectionMode
public int getSelectionMode()- Specified by:
getSelectionModein interfaceListSelectionModel
-
getValueIsAdjusting
public boolean getValueIsAdjusting()- Specified by:
getValueIsAdjustingin interfaceListSelectionModel
-
insertIndexInterval
public void insertIndexInterval(int index, int length, boolean before) - Specified by:
insertIndexIntervalin interfaceListSelectionModel
-
isLeadAnchorNotificationEnabled
public boolean isLeadAnchorNotificationEnabled() -
isSelectedIndex
public boolean isSelectedIndex(int index) - Specified by:
isSelectedIndexin interfaceListSelectionModel
-
isSelectionEmpty
public boolean isSelectionEmpty()- Specified by:
isSelectionEmptyin interfaceListSelectionModel
-
removeIndexInterval
public void removeIndexInterval(int index0, int index1) - Specified by:
removeIndexIntervalin interfaceListSelectionModel
-
removeListSelectionListener
- Specified by:
removeListSelectionListenerin interfaceListSelectionModel
-
removeSelectionInterval
public void removeSelectionInterval(int index0, int index1) - Specified by:
removeSelectionIntervalin interfaceListSelectionModel
-
setAnchorSelectionIndex
public void setAnchorSelectionIndex(int anchorIndex) - Specified by:
setAnchorSelectionIndexin interfaceListSelectionModel
-
setLeadAnchorNotificationEnabled
public void setLeadAnchorNotificationEnabled(boolean flag) -
setLeadSelectionIndex
public void setLeadSelectionIndex(int leadIndex) - Specified by:
setLeadSelectionIndexin interfaceListSelectionModel
-
setSelectionInterval
public void setSelectionInterval(int index0, int index1) - Specified by:
setSelectionIntervalin interfaceListSelectionModel
-
setSelectionMode
public void setSelectionMode(int selectionMode) - Specified by:
setSelectionModein interfaceListSelectionModel
-
setValueIsAdjusting
public void setValueIsAdjusting(boolean isAdjusting) - Specified by:
setValueIsAdjustingin interfaceListSelectionModel
-