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 ofBoundedTableModelwith implementedListSelectionModelfunctionality. A convenience class.- Author:
- Michael Baranov
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.michaelbaranov.microba.common.BoundedTableModel
PROPERTY_LOWER_BOUND, PROPERTY_UPPER_BOUND
-
-
Constructor Summary
Constructors Constructor Description AbstractBoundedTableModelWithSelection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListSelectionListener(javax.swing.event.ListSelectionListener l)voidaddSelectionInterval(int index0, int index1)voidclearSelection()intgetAnchorSelectionIndex()intgetLeadSelectionIndex()java.util.EventListener[]getListeners(java.lang.Class listenerType)javax.swing.event.ListSelectionListener[]getListSelectionListeners()intgetMaxSelectionIndex()intgetMinSelectionIndex()intgetSelectionMode()booleangetValueIsAdjusting()voidinsertIndexInterval(int index, int length, boolean before)booleanisLeadAnchorNotificationEnabled()booleanisSelectedIndex(int index)booleanisSelectionEmpty()voidremoveIndexInterval(int index0, int index1)voidremoveListSelectionListener(javax.swing.event.ListSelectionListener l)voidremoveSelectionInterval(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, 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 com.michaelbaranov.microba.common.BoundedTableModel
getLowerBound, getUpperBound
-
-
-
-
Method Detail
-
addListSelectionListener
public void addListSelectionListener(javax.swing.event.ListSelectionListener l)
- Specified by:
addListSelectionListenerin interfacejavax.swing.ListSelectionModel
-
addSelectionInterval
public void addSelectionInterval(int index0, int index1)- Specified by:
addSelectionIntervalin interfacejavax.swing.ListSelectionModel
-
clearSelection
public void clearSelection()
- Specified by:
clearSelectionin interfacejavax.swing.ListSelectionModel
-
getAnchorSelectionIndex
public int getAnchorSelectionIndex()
- Specified by:
getAnchorSelectionIndexin interfacejavax.swing.ListSelectionModel
-
getLeadSelectionIndex
public int getLeadSelectionIndex()
- Specified by:
getLeadSelectionIndexin interfacejavax.swing.ListSelectionModel
-
getListeners
public java.util.EventListener[] getListeners(java.lang.Class listenerType)
- Overrides:
getListenersin classjavax.swing.table.AbstractTableModel
-
getListSelectionListeners
public javax.swing.event.ListSelectionListener[] getListSelectionListeners()
-
getMaxSelectionIndex
public int getMaxSelectionIndex()
- Specified by:
getMaxSelectionIndexin interfacejavax.swing.ListSelectionModel
-
getMinSelectionIndex
public int getMinSelectionIndex()
- Specified by:
getMinSelectionIndexin interfacejavax.swing.ListSelectionModel
-
getSelectionMode
public int getSelectionMode()
- Specified by:
getSelectionModein interfacejavax.swing.ListSelectionModel
-
getValueIsAdjusting
public boolean getValueIsAdjusting()
- Specified by:
getValueIsAdjustingin interfacejavax.swing.ListSelectionModel
-
insertIndexInterval
public void insertIndexInterval(int index, int length, boolean before)- Specified by:
insertIndexIntervalin interfacejavax.swing.ListSelectionModel
-
isLeadAnchorNotificationEnabled
public boolean isLeadAnchorNotificationEnabled()
-
isSelectedIndex
public boolean isSelectedIndex(int index)
- Specified by:
isSelectedIndexin interfacejavax.swing.ListSelectionModel
-
isSelectionEmpty
public boolean isSelectionEmpty()
- Specified by:
isSelectionEmptyin interfacejavax.swing.ListSelectionModel
-
removeIndexInterval
public void removeIndexInterval(int index0, int index1)- Specified by:
removeIndexIntervalin interfacejavax.swing.ListSelectionModel
-
removeListSelectionListener
public void removeListSelectionListener(javax.swing.event.ListSelectionListener l)
- Specified by:
removeListSelectionListenerin interfacejavax.swing.ListSelectionModel
-
removeSelectionInterval
public void removeSelectionInterval(int index0, int index1)- Specified by:
removeSelectionIntervalin interfacejavax.swing.ListSelectionModel
-
setAnchorSelectionIndex
public void setAnchorSelectionIndex(int anchorIndex)
- Specified by:
setAnchorSelectionIndexin interfacejavax.swing.ListSelectionModel
-
setLeadAnchorNotificationEnabled
public void setLeadAnchorNotificationEnabled(boolean flag)
-
setLeadSelectionIndex
public void setLeadSelectionIndex(int leadIndex)
- Specified by:
setLeadSelectionIndexin interfacejavax.swing.ListSelectionModel
-
setSelectionInterval
public void setSelectionInterval(int index0, int index1)- Specified by:
setSelectionIntervalin interfacejavax.swing.ListSelectionModel
-
setSelectionMode
public void setSelectionMode(int selectionMode)
- Specified by:
setSelectionModein interfacejavax.swing.ListSelectionModel
-
setValueIsAdjusting
public void setValueIsAdjusting(boolean isAdjusting)
- Specified by:
setValueIsAdjustingin interfacejavax.swing.ListSelectionModel
-
-