com.michaelbaranov.microba.common

Class AbstractBoundedTableModelWithSelection

Implemented Interfaces:
ListSelectionModel

public abstract class AbstractBoundedTableModelWithSelection
extends AbstractBoundedTableModel
implements ListSelectionModel

A simple abstract implementation of BoundedTableModel with implemented ListSelectionModel functionality. A convenience class.
Author:
Michael Baranov

Constructor Summary

AbstractBoundedTableModelWithSelection()

Method Summary

void
addListSelectionListener(ListSelectionListener l)
void
addSelectionInterval(int index0, int index1)
void
clearSelection()
int
getAnchorSelectionIndex()
int
getLeadSelectionIndex()
ListSelectionListener[]
getListSelectionListeners()
EventListener[]
getListeners(Class listenerType)
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(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)

Constructor Details

AbstractBoundedTableModelWithSelection

public AbstractBoundedTableModelWithSelection()

Method Details

addListSelectionListener

public void addListSelectionListener(ListSelectionListener l)

addSelectionInterval

public void addSelectionInterval(int index0,
                                 int index1)

clearSelection

public void clearSelection()

getAnchorSelectionIndex

public int getAnchorSelectionIndex()

getLeadSelectionIndex

public int getLeadSelectionIndex()

getListSelectionListeners

public ListSelectionListener[] getListSelectionListeners()

getListeners

public EventListener[] getListeners(Class listenerType)

getMaxSelectionIndex

public int getMaxSelectionIndex()

getMinSelectionIndex

public int getMinSelectionIndex()

getSelectionMode

public int getSelectionMode()

getValueIsAdjusting

public boolean getValueIsAdjusting()

insertIndexInterval

public void insertIndexInterval(int index,
                                int length,
                                boolean before)

isLeadAnchorNotificationEnabled

public boolean isLeadAnchorNotificationEnabled()

isSelectedIndex

public boolean isSelectedIndex(int index)

isSelectionEmpty

public boolean isSelectionEmpty()

removeIndexInterval

public void removeIndexInterval(int index0,
                                int index1)

removeListSelectionListener

public void removeListSelectionListener(ListSelectionListener l)

removeSelectionInterval

public void removeSelectionInterval(int index0,
                                    int index1)

setAnchorSelectionIndex

public void setAnchorSelectionIndex(int anchorIndex)

setLeadAnchorNotificationEnabled

public void setLeadAnchorNotificationEnabled(boolean flag)

setLeadSelectionIndex

public void setLeadSelectionIndex(int leadIndex)

setSelectionInterval

public void setSelectionInterval(int index0,
                                 int index1)

setSelectionMode

public void setSelectionMode(int selectionMode)

setValueIsAdjusting

public void setValueIsAdjusting(boolean isAdjusting)