|
|||||||||
| Home >> All >> javax >> [ swing overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.swing
Interface ListSelectionModel

- All Known Implementing Classes:
- DefaultListSelectionModel
- public interface ListSelectionModel
The model that is used in JList to define the selected/not-selected cells of that list.
| Field Summary | |
static int |
MULTIPLE_INTERVAL_SELECTION
|
static int |
SINGLE_INTERVAL_SELECTION
|
static int |
SINGLE_SELECTION
|
| Method Summary | |
void |
addListSelectionListener(javax.swing.event.ListSelectionListener listener)
|
void |
addSelectionInterval(int index0,
int index1)
|
void |
clearSelection()
|
int |
getAnchorSelectionIndex()
|
int |
getLeadSelectionIndex()
|
int |
getMaxSelectionIndex()
|
int |
getMinSelectionIndex()
|
int |
getSelectionMode()
|
boolean |
getValueIsAdjusting()
|
void |
insertIndexInterval(int index,
int length,
boolean before)
|
boolean |
isSelectedIndex(int a)
|
boolean |
isSelectionEmpty()
|
void |
removeIndexInterval(int index0,
int index1)
|
void |
removeListSelectionListener(javax.swing.event.ListSelectionListener listener)
|
void |
removeSelectionInterval(int index0,
int index1)
|
void |
setAnchorSelectionIndex(int index)
|
void |
setLeadSelectionIndex(int index)
|
void |
setSelectionInterval(int index0,
int index1)
|
void |
setSelectionMode(int a)
|
void |
setValueIsAdjusting(boolean valueIsAdjusting)
|
| Field Detail |
SINGLE_SELECTION
public static final int SINGLE_SELECTION
- See Also:
- Constant Field Values
SINGLE_INTERVAL_SELECTION
public static final int SINGLE_INTERVAL_SELECTION
- See Also:
- Constant Field Values
MULTIPLE_INTERVAL_SELECTION
public static final int MULTIPLE_INTERVAL_SELECTION
- See Also:
- Constant Field Values
| Method Detail |
setSelectionMode
public void setSelectionMode(int a)
getSelectionMode
public int getSelectionMode()
clearSelection
public void clearSelection()
getMinSelectionIndex
public int getMinSelectionIndex()
getMaxSelectionIndex
public int getMaxSelectionIndex()
isSelectedIndex
public boolean isSelectedIndex(int a)
isSelectionEmpty
public boolean isSelectionEmpty()
setSelectionInterval
public void setSelectionInterval(int index0,
int index1)
addSelectionInterval
public void addSelectionInterval(int index0,
int index1)
removeSelectionInterval
public void removeSelectionInterval(int index0,
int index1)
insertIndexInterval
public void insertIndexInterval(int index,
int length,
boolean before)
removeIndexInterval
public void removeIndexInterval(int index0,
int index1)
getAnchorSelectionIndex
public int getAnchorSelectionIndex()
setAnchorSelectionIndex
public void setAnchorSelectionIndex(int index)
getLeadSelectionIndex
public int getLeadSelectionIndex()
setLeadSelectionIndex
public void setLeadSelectionIndex(int index)
setValueIsAdjusting
public void setValueIsAdjusting(boolean valueIsAdjusting)
getValueIsAdjusting
public boolean getValueIsAdjusting()
addListSelectionListener
public void addListSelectionListener(javax.swing.event.ListSelectionListener listener)
removeListSelectionListener
public void removeListSelectionListener(javax.swing.event.ListSelectionListener listener)
|
|||||||||
| Home >> All >> javax >> [ swing overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC