portal.comp.list
Interface SelectionModel

All Superinterfaces:
Model, java.io.Serializable
All Known Implementing Classes:
DefaultSelectionModel

public interface SelectionModel
extends Model


Method Summary
 void clearSelection()
           
 int getFirstSelected()
           
 SelectionMode getSelectionMode()
           
 boolean isSelected(int index)
           
 void setListDataModel(ListDataModel listDataModel)
           
 void setSelected(int index, boolean selected)
           
 

Method Detail

setListDataModel

public void setListDataModel(ListDataModel listDataModel)

clearSelection

public void clearSelection()

getFirstSelected

public int getFirstSelected()
Returns:
the smallest index for which isSelected(index) returns true. It returns -1 when nothing is selected.

setSelected

public void setSelected(int index,
                        boolean selected)

isSelected

public boolean isSelected(int index)

getSelectionMode

public SelectionMode getSelectionMode()