public class OneClicListSelectionModel extends Object implements ListSelectionModel
| Modifier and Type | Field and Description |
|---|---|
protected ListSelectionModel |
delegate |
protected ListModel |
model |
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION| Constructor and Description |
|---|
OneClicListSelectionModel(JList list) |
OneClicListSelectionModel(ListSelectionModel delegate,
ListModel model) |
protected final ListSelectionModel delegate
protected final ListModel model
public OneClicListSelectionModel(JList list)
public OneClicListSelectionModel(ListSelectionModel delegate, ListModel model)
public static void installModel(JList list)
OneClicListSelectionModel on
a given JList.list - the list onwhcih install the selection modelprotected boolean[] getStates(int selectedIndex)
public void setSelectionInterval(int index0,
int index1)
setSelectionInterval in interface ListSelectionModelpublic void addSelectionInterval(int index0,
int index1)
addSelectionInterval in interface ListSelectionModelpublic void removeSelectionInterval(int index0,
int index1)
removeSelectionInterval in interface ListSelectionModelpublic int getMinSelectionIndex()
getMinSelectionIndex in interface ListSelectionModelpublic int getMaxSelectionIndex()
getMaxSelectionIndex in interface ListSelectionModelpublic boolean isSelectedIndex(int index)
isSelectedIndex in interface ListSelectionModelpublic int getAnchorSelectionIndex()
getAnchorSelectionIndex in interface ListSelectionModelpublic void setAnchorSelectionIndex(int index)
setAnchorSelectionIndex in interface ListSelectionModelpublic int getLeadSelectionIndex()
getLeadSelectionIndex in interface ListSelectionModelpublic void setLeadSelectionIndex(int index)
setLeadSelectionIndex in interface ListSelectionModelpublic void clearSelection()
clearSelection in interface ListSelectionModelpublic boolean isSelectionEmpty()
isSelectionEmpty in interface ListSelectionModelpublic void insertIndexInterval(int index,
int length,
boolean before)
insertIndexInterval in interface ListSelectionModelpublic void removeIndexInterval(int index0,
int index1)
removeIndexInterval in interface ListSelectionModelpublic void setValueIsAdjusting(boolean valueIsAdjusting)
setValueIsAdjusting in interface ListSelectionModelpublic boolean getValueIsAdjusting()
getValueIsAdjusting in interface ListSelectionModelpublic void setSelectionMode(int selectionMode)
setSelectionMode in interface ListSelectionModelpublic int getSelectionMode()
getSelectionMode in interface ListSelectionModelpublic void addListSelectionListener(ListSelectionListener x)
addListSelectionListener in interface ListSelectionModelpublic void removeListSelectionListener(ListSelectionListener x)
removeListSelectionListener in interface ListSelectionModelCopyright © 2008–2019 Ultreia.io. All rights reserved.