org.enhydra.barracuda.core.comp
Interface ListSelectionModel

All Superinterfaces:
Model
All Known Implementing Classes:
DefaultListSelectionModel

public interface ListSelectionModel
extends Model

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

SINGLE_SELECTION

public static final int SINGLE_SELECTION
A value for the selectionMode property: select one list index at a time.

See Also:
setSelectionMode(int), Constant Field Values

SINGLE_INTERVAL_SELECTION

public static final int SINGLE_INTERVAL_SELECTION
A value for the selectionMode property: select one contiguous range of indices at a time.

See Also:
setSelectionMode(int), Constant Field Values

MULTIPLE_INTERVAL_SELECTION

public static final int MULTIPLE_INTERVAL_SELECTION
A value for the selectionMode property: select one or more contiguous ranges of indices at a time.

See Also:
setSelectionMode(int), Constant Field Values
Method Detail

setSelectionMode

public void setSelectionMode(int selectionMode)

getSelectionMode

public int getSelectionMode()

setSelectionInterval

public void setSelectionInterval(int index0,
                                 int index1)

addSelectionInterval

public void addSelectionInterval(int index0,
                                 int index1)

removeSelectionInterval

public void removeSelectionInterval(int index0,
                                    int index1)

getMinSelectionIndex

public int getMinSelectionIndex()

getMaxSelectionIndex

public int getMaxSelectionIndex()

isSelectedIndex

public boolean isSelectedIndex(int index)

isSelectionEmpty

public boolean isSelectionEmpty()

clearSelection

public void clearSelection()


Copyright © 2001 Enhydra.org