|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.DefaultListSelectionModel
com.jidesoft.list.DefaultDisableableListSelectionModel
public class DefaultDisableableListSelectionModel
Field Summary | |
---|---|
protected DefaultListSelectionModel |
_delegate
|
protected Set<Integer> |
_disabledIndices
|
Fields inherited from class javax.swing.DefaultListSelectionModel |
---|
leadAnchorNotificationEnabled, listenerList |
Fields inherited from interface javax.swing.ListSelectionModel |
---|
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION |
Constructor Summary | |
---|---|
DefaultDisableableListSelectionModel()
Creates an instance of DefaultDisableableListSelectionModel |
Method Summary | ||
---|---|---|
void |
addDisabledSelectionInterval(int index0,
int index1)
Change the disabled selection to be the set union of the current selection and the indices between index0 and index1 inclusive. |
|
void |
addListSelectionListener(ListSelectionListener l)
|
|
void |
addSelectionInterval(int index0,
int index1)
|
|
void |
clearSelection()
|
|
DefaultDisableableListSelectionModel |
clone()
|
|
int |
getAnchorSelectionIndex()
|
|
int[] |
getDisabledIndices()
Returns the indices that are not allowed selecting |
|
int |
getLeadSelectionIndex()
|
|
|
getListeners(Class<T> listenerType)
|
|
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 |
moveLeadSelectionIndex(int leadIndex)
|
|
protected int |
originalGetMaxSelectionIndex()
|
|
protected int |
originalGetMinSelectionIndex()
|
|
protected boolean |
originalIsSelectedIndex(int index)
|
|
protected boolean |
originalIsSelectionEmpty()
|
|
void |
removeDisabledIndexInterval(int index0,
int index1)
Remove the disabled indices in the interval index0,index1 (inclusive) from the selection model. |
|
void |
removeDisabledSelectionInterval(int index0,
int index1)
Change the disabled selection to be the set difference of the current selection and the indices between index0 and index1 inclusive. |
|
void |
removeIndexInterval(int index0,
int index1)
|
|
void |
removeListSelectionListener(ListSelectionListener l)
|
|
void |
removeSelectionInterval(int index0,
int index1)
|
|
void |
setAnchorSelectionIndex(int anchorIndex)
|
|
void |
setDisabledIndices(int[] disabledIndices)
Set indices that are not allowed selecting |
|
void |
setDisabledSelectionInterval(int index0,
int index1)
Change the disabled selection to be between index0 and index1 inclusive. |
|
void |
setLeadAnchorNotificationEnabled(boolean flag)
|
|
void |
setLeadSelectionIndex(int leadIndex)
|
|
void |
setSelectionInterval(int index0,
int index1)
|
|
void |
setSelectionMode(int selectionMode)
|
|
void |
setValueIsAdjusting(boolean isAdjusting)
|
|
String |
toString()
|
Methods inherited from class javax.swing.DefaultListSelectionModel |
---|
fireValueChanged, fireValueChanged, fireValueChanged |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Set<Integer> _disabledIndices
protected DefaultListSelectionModel _delegate
Constructor Detail |
---|
public DefaultDisableableListSelectionModel()
DefaultDisableableListSelectionModel
Method Detail |
---|
public void setDisabledIndices(int[] disabledIndices)
disabledIndices
- indices that are not allowed selectingsetDisabledSelectionInterval(int,int)
,
getDisabledIndices()
public void setDisabledSelectionInterval(int index0, int index1)
index0
- one end of the interval.index1
- other end of the intervalsetDisabledIndices(int[])
,
setSelectionInterval(int,int)
public void addDisabledSelectionInterval(int index0, int index1)
index0
- one end of the interval.index1
- other end of the intervaladdSelectionInterval(int,int)
public void removeDisabledSelectionInterval(int index0, int index1)
index0
- one end of the interval.index1
- other end of the intervalremoveSelectionInterval(int,int)
,
removeDisabledIndexInterval(int,int)
public void removeDisabledIndexInterval(int index0, int index1)
index0
- one end of the interval.index1
- other end of the intervalremoveIndexInterval(int,int)
,
removeDisabledSelectionInterval(int,int)
public int[] getDisabledIndices()
setDisabledIndices(int[])
public boolean isSelectedIndex(int index)
isSelectedIndex
in interface ListSelectionModel
isSelectedIndex
in class DefaultListSelectionModel
public boolean isSelectionEmpty()
isSelectionEmpty
in interface ListSelectionModel
isSelectionEmpty
in class DefaultListSelectionModel
public int getMinSelectionIndex()
getMinSelectionIndex
in interface ListSelectionModel
getMinSelectionIndex
in class DefaultListSelectionModel
public int getMaxSelectionIndex()
getMaxSelectionIndex
in interface ListSelectionModel
getMaxSelectionIndex
in class DefaultListSelectionModel
protected int originalGetMinSelectionIndex()
protected int originalGetMaxSelectionIndex()
public boolean getValueIsAdjusting()
getValueIsAdjusting
in interface ListSelectionModel
getValueIsAdjusting
in class DefaultListSelectionModel
public int getSelectionMode()
getSelectionMode
in interface ListSelectionModel
getSelectionMode
in class DefaultListSelectionModel
public void setSelectionMode(int selectionMode)
setSelectionMode
in interface ListSelectionModel
setSelectionMode
in class DefaultListSelectionModel
protected boolean originalIsSelectedIndex(int index)
protected boolean originalIsSelectionEmpty()
public void addListSelectionListener(ListSelectionListener l)
addListSelectionListener
in interface ListSelectionModel
addListSelectionListener
in class DefaultListSelectionModel
public void removeListSelectionListener(ListSelectionListener l)
removeListSelectionListener
in interface ListSelectionModel
removeListSelectionListener
in class DefaultListSelectionModel
public ListSelectionListener[] getListSelectionListeners()
getListSelectionListeners
in class DefaultListSelectionModel
public <T extends EventListener> T[] getListeners(Class<T> listenerType)
getListeners
in class DefaultListSelectionModel
public void setLeadAnchorNotificationEnabled(boolean flag)
setLeadAnchorNotificationEnabled
in class DefaultListSelectionModel
public boolean isLeadAnchorNotificationEnabled()
isLeadAnchorNotificationEnabled
in class DefaultListSelectionModel
public void clearSelection()
clearSelection
in interface ListSelectionModel
clearSelection
in class DefaultListSelectionModel
public void setSelectionInterval(int index0, int index1)
setSelectionInterval
in interface ListSelectionModel
setSelectionInterval
in class DefaultListSelectionModel
public void addSelectionInterval(int index0, int index1)
addSelectionInterval
in interface ListSelectionModel
addSelectionInterval
in class DefaultListSelectionModel
public void removeSelectionInterval(int index0, int index1)
removeSelectionInterval
in interface ListSelectionModel
removeSelectionInterval
in class DefaultListSelectionModel
public void insertIndexInterval(int index, int length, boolean before)
insertIndexInterval
in interface ListSelectionModel
insertIndexInterval
in class DefaultListSelectionModel
public void removeIndexInterval(int index0, int index1)
removeIndexInterval
in interface ListSelectionModel
removeIndexInterval
in class DefaultListSelectionModel
public void setValueIsAdjusting(boolean isAdjusting)
setValueIsAdjusting
in interface ListSelectionModel
setValueIsAdjusting
in class DefaultListSelectionModel
public String toString()
toString
in class DefaultListSelectionModel
public DefaultDisableableListSelectionModel clone()
clone
in class DefaultListSelectionModel
public int getAnchorSelectionIndex()
getAnchorSelectionIndex
in interface ListSelectionModel
getAnchorSelectionIndex
in class DefaultListSelectionModel
public int getLeadSelectionIndex()
getLeadSelectionIndex
in interface ListSelectionModel
getLeadSelectionIndex
in class DefaultListSelectionModel
public void setAnchorSelectionIndex(int anchorIndex)
setAnchorSelectionIndex
in interface ListSelectionModel
setAnchorSelectionIndex
in class DefaultListSelectionModel
public void moveLeadSelectionIndex(int leadIndex)
moveLeadSelectionIndex
in class DefaultListSelectionModel
public void setLeadSelectionIndex(int leadIndex)
setLeadSelectionIndex
in interface ListSelectionModel
setLeadSelectionIndex
in class DefaultListSelectionModel
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |