|
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 ListSelectionModelisSelectedIndex in class DefaultListSelectionModelpublic boolean isSelectionEmpty()
isSelectionEmpty in interface ListSelectionModelisSelectionEmpty in class DefaultListSelectionModelpublic int getMinSelectionIndex()
getMinSelectionIndex in interface ListSelectionModelgetMinSelectionIndex in class DefaultListSelectionModelpublic int getMaxSelectionIndex()
getMaxSelectionIndex in interface ListSelectionModelgetMaxSelectionIndex in class DefaultListSelectionModelprotected int originalGetMinSelectionIndex()
protected int originalGetMaxSelectionIndex()
public boolean getValueIsAdjusting()
getValueIsAdjusting in interface ListSelectionModelgetValueIsAdjusting in class DefaultListSelectionModelpublic int getSelectionMode()
getSelectionMode in interface ListSelectionModelgetSelectionMode in class DefaultListSelectionModelpublic void setSelectionMode(int selectionMode)
setSelectionMode in interface ListSelectionModelsetSelectionMode in class DefaultListSelectionModelprotected boolean originalIsSelectedIndex(int index)
protected boolean originalIsSelectionEmpty()
public void addListSelectionListener(ListSelectionListener l)
addListSelectionListener in interface ListSelectionModeladdListSelectionListener in class DefaultListSelectionModelpublic void removeListSelectionListener(ListSelectionListener l)
removeListSelectionListener in interface ListSelectionModelremoveListSelectionListener in class DefaultListSelectionModelpublic ListSelectionListener[] getListSelectionListeners()
getListSelectionListeners in class DefaultListSelectionModelpublic <T extends EventListener> T[] getListeners(Class<T> listenerType)
getListeners in class DefaultListSelectionModelpublic void setLeadAnchorNotificationEnabled(boolean flag)
setLeadAnchorNotificationEnabled in class DefaultListSelectionModelpublic boolean isLeadAnchorNotificationEnabled()
isLeadAnchorNotificationEnabled in class DefaultListSelectionModelpublic void clearSelection()
clearSelection in interface ListSelectionModelclearSelection in class DefaultListSelectionModel
public void setSelectionInterval(int index0,
int index1)
setSelectionInterval in interface ListSelectionModelsetSelectionInterval in class DefaultListSelectionModel
public void addSelectionInterval(int index0,
int index1)
addSelectionInterval in interface ListSelectionModeladdSelectionInterval in class DefaultListSelectionModel
public void removeSelectionInterval(int index0,
int index1)
removeSelectionInterval in interface ListSelectionModelremoveSelectionInterval in class DefaultListSelectionModel
public void insertIndexInterval(int index,
int length,
boolean before)
insertIndexInterval in interface ListSelectionModelinsertIndexInterval in class DefaultListSelectionModel
public void removeIndexInterval(int index0,
int index1)
removeIndexInterval in interface ListSelectionModelremoveIndexInterval in class DefaultListSelectionModelpublic void setValueIsAdjusting(boolean isAdjusting)
setValueIsAdjusting in interface ListSelectionModelsetValueIsAdjusting in class DefaultListSelectionModelpublic String toString()
toString in class DefaultListSelectionModelpublic DefaultDisableableListSelectionModel clone()
clone in class DefaultListSelectionModelpublic int getAnchorSelectionIndex()
getAnchorSelectionIndex in interface ListSelectionModelgetAnchorSelectionIndex in class DefaultListSelectionModelpublic int getLeadSelectionIndex()
getLeadSelectionIndex in interface ListSelectionModelgetLeadSelectionIndex in class DefaultListSelectionModelpublic void setAnchorSelectionIndex(int anchorIndex)
setAnchorSelectionIndex in interface ListSelectionModelsetAnchorSelectionIndex in class DefaultListSelectionModelpublic void moveLeadSelectionIndex(int leadIndex)
moveLeadSelectionIndex in class DefaultListSelectionModelpublic void setLeadSelectionIndex(int leadIndex)
setLeadSelectionIndex in interface ListSelectionModelsetLeadSelectionIndex in class DefaultListSelectionModel
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||