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 ofBoundedTableModel
with implementedListSelectionModel
functionality. 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 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)
-
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:
addListSelectionListener
in interfacejavax.swing.ListSelectionModel
-
addSelectionInterval
public void addSelectionInterval(int index0, int index1)
- Specified by:
addSelectionInterval
in interfacejavax.swing.ListSelectionModel
-
clearSelection
public void clearSelection()
- Specified by:
clearSelection
in interfacejavax.swing.ListSelectionModel
-
getAnchorSelectionIndex
public int getAnchorSelectionIndex()
- Specified by:
getAnchorSelectionIndex
in interfacejavax.swing.ListSelectionModel
-
getLeadSelectionIndex
public int getLeadSelectionIndex()
- Specified by:
getLeadSelectionIndex
in interfacejavax.swing.ListSelectionModel
-
getListeners
public java.util.EventListener[] getListeners(java.lang.Class listenerType)
- Overrides:
getListeners
in classjavax.swing.table.AbstractTableModel
-
getListSelectionListeners
public javax.swing.event.ListSelectionListener[] getListSelectionListeners()
-
getMaxSelectionIndex
public int getMaxSelectionIndex()
- Specified by:
getMaxSelectionIndex
in interfacejavax.swing.ListSelectionModel
-
getMinSelectionIndex
public int getMinSelectionIndex()
- Specified by:
getMinSelectionIndex
in interfacejavax.swing.ListSelectionModel
-
getSelectionMode
public int getSelectionMode()
- Specified by:
getSelectionMode
in interfacejavax.swing.ListSelectionModel
-
getValueIsAdjusting
public boolean getValueIsAdjusting()
- Specified by:
getValueIsAdjusting
in interfacejavax.swing.ListSelectionModel
-
insertIndexInterval
public void insertIndexInterval(int index, int length, boolean before)
- Specified by:
insertIndexInterval
in interfacejavax.swing.ListSelectionModel
-
isLeadAnchorNotificationEnabled
public boolean isLeadAnchorNotificationEnabled()
-
isSelectedIndex
public boolean isSelectedIndex(int index)
- Specified by:
isSelectedIndex
in interfacejavax.swing.ListSelectionModel
-
isSelectionEmpty
public boolean isSelectionEmpty()
- Specified by:
isSelectionEmpty
in interfacejavax.swing.ListSelectionModel
-
removeIndexInterval
public void removeIndexInterval(int index0, int index1)
- Specified by:
removeIndexInterval
in interfacejavax.swing.ListSelectionModel
-
removeListSelectionListener
public void removeListSelectionListener(javax.swing.event.ListSelectionListener l)
- Specified by:
removeListSelectionListener
in interfacejavax.swing.ListSelectionModel
-
removeSelectionInterval
public void removeSelectionInterval(int index0, int index1)
- Specified by:
removeSelectionInterval
in interfacejavax.swing.ListSelectionModel
-
setAnchorSelectionIndex
public void setAnchorSelectionIndex(int anchorIndex)
- Specified by:
setAnchorSelectionIndex
in interfacejavax.swing.ListSelectionModel
-
setLeadAnchorNotificationEnabled
public void setLeadAnchorNotificationEnabled(boolean flag)
-
setLeadSelectionIndex
public void setLeadSelectionIndex(int leadIndex)
- Specified by:
setLeadSelectionIndex
in interfacejavax.swing.ListSelectionModel
-
setSelectionInterval
public void setSelectionInterval(int index0, int index1)
- Specified by:
setSelectionInterval
in interfacejavax.swing.ListSelectionModel
-
setSelectionMode
public void setSelectionMode(int selectionMode)
- Specified by:
setSelectionMode
in interfacejavax.swing.ListSelectionModel
-
setValueIsAdjusting
public void setValueIsAdjusting(boolean isAdjusting)
- Specified by:
setValueIsAdjusting
in interfacejavax.swing.ListSelectionModel
-
-