|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the methods needed to implement a ListSelectionModel. Note that this comes almost directly from javax.swing.ListSelectionModel. The only thing that is different is that we've dropped the isAdjusting stuff.
Field Summary | |
static int |
MULTIPLE_INTERVAL_SELECTION
A value for the selectionMode property: select one or more contiguous ranges of indices at a time. |
static int |
SINGLE_INTERVAL_SELECTION
A value for the selectionMode property: select one contiguous range of indices at a time. |
static int |
SINGLE_SELECTION
A value for the selectionMode property: select one list index at a time. |
Method Summary | |
void |
addSelectionInterval(int index0,
int index1)
|
void |
clearSelection()
|
int |
getMaxSelectionIndex()
|
int |
getMinSelectionIndex()
|
int |
getSelectionMode()
|
boolean |
isSelectedIndex(int index)
|
boolean |
isSelectionEmpty()
|
void |
removeSelectionInterval(int index0,
int index1)
|
void |
setSelectionInterval(int index0,
int index1)
|
void |
setSelectionMode(int selectionMode)
|
Methods inherited from interface org.enhydra.barracuda.core.comp.model.Model |
addModelListener, removeModelListener |
Field Detail |
public static final int SINGLE_SELECTION
setSelectionMode(int)
,
Constant Field Valuespublic static final int SINGLE_INTERVAL_SELECTION
setSelectionMode(int)
,
Constant Field Valuespublic static final int MULTIPLE_INTERVAL_SELECTION
setSelectionMode(int)
,
Constant Field ValuesMethod Detail |
public void setSelectionMode(int selectionMode)
public int getSelectionMode()
public void setSelectionInterval(int index0, int index1)
public void addSelectionInterval(int index0, int index1)
public void removeSelectionInterval(int index0, int index1)
public int getMinSelectionIndex()
public int getMaxSelectionIndex()
public boolean isSelectedIndex(int index)
public boolean isSelectionEmpty()
public void clearSelection()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |