public class SelectDataModelImpl extends DataModel implements SelectDataModel
Constructor and Description |
---|
SelectDataModelImpl(String name,
List data,
List selectedData) |
Modifier and Type | Method and Description |
---|---|
void |
addSelectModelListener(SelectDataModelListener listener) |
String |
getName()
Select model is named so that listeners can adapt their behaviour using
this criterion.
|
int |
getRowCount() |
Object |
getRowData() |
int |
getRowIndex() |
List<SelectDataModelRow> |
getRows() |
SelectDataModelListener[] |
getSelectModelListeners() |
Object |
getWrappedData() |
boolean |
isRowAvailable() |
void |
removeSelectModelListener(SelectDataModelListener listener) |
void |
setRowIndex(int newRowIndex) |
void |
setRows(List<SelectDataModelRow> rows) |
void |
setWrappedData(Object data) |
addDataModelListener, getDataModelListeners, removeDataModelListener
public int getRowCount()
getRowCount
in class DataModel
public Object getRowData()
getRowData
in class DataModel
public int getRowIndex()
getRowIndex
in class DataModel
public Object getWrappedData()
getWrappedData
in class DataModel
public boolean isRowAvailable()
isRowAvailable
in class DataModel
public void setRowIndex(int newRowIndex)
setRowIndex
in class DataModel
public void setWrappedData(Object data)
setWrappedData
in class DataModel
public String getName()
SelectDataModel
getName
in interface SelectDataModel
public void addSelectModelListener(SelectDataModelListener listener)
addSelectModelListener
in interface SelectDataModel
public void removeSelectModelListener(SelectDataModelListener listener)
removeSelectModelListener
in interface SelectDataModel
public SelectDataModelListener[] getSelectModelListeners()
getSelectModelListeners
in interface SelectDataModel
public List<SelectDataModelRow> getRows()
getRows
in interface SelectDataModel
public void setRows(List<SelectDataModelRow> rows)
setRows
in interface SelectDataModel
Copyright © 2011 Nuxeo SA. All Rights Reserved.