com.ibm.xsp.model
Class ListDataModelEx

java.lang.Object
  extended by javax.faces.model.DataModel
      extended by javax.faces.model.ListDataModel
          extended by com.ibm.xsp.model.ListDataModelEx
All Implemented Interfaces:
DataModelEx

public class ListDataModelEx
extends javax.faces.model.ListDataModel
implements DataModelEx


Constructor Summary
ListDataModelEx()
          Construct a ListDataModelEx instance
ListDataModelEx(java.util.List list)
          Construct a ListDataModelEx instance that wraps the specified List object
 
Method Summary
 void duplicateRowData(int insertIndex)
          Duplicate the data for the currently selected row index and insert it into the data model at the specified insertion index.
 void insertRowData(java.lang.Object data)
          Insert the object representing the data for the currently selected row index.
 void removeRowData()
          Remove the data for the currently selected row index.
 void setRowData(java.lang.Object data)
          Set the object representing the data for the currently selected row index.
 
Methods inherited from class javax.faces.model.ListDataModel
getRowCount, getRowData, getRowIndex, getWrappedData, isRowAvailable, setRowIndex, setWrappedData
 
Methods inherited from class javax.faces.model.DataModel
addDataModelListener, getDataModelListeners, removeDataModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListDataModelEx

public ListDataModelEx()
Construct a ListDataModelEx instance


ListDataModelEx

public ListDataModelEx(java.util.List list)
Construct a ListDataModelEx instance that wraps the specified List object

Parameters:
list -
Method Detail

setRowData

public void setRowData(java.lang.Object data)
Description copied from interface: DataModelEx
Set the object representing the data for the currently selected row index.

Specified by:
setRowData in interface DataModelEx
Parameters:
data - data to be set for the currently selected row index

insertRowData

public void insertRowData(java.lang.Object data)
Description copied from interface: DataModelEx
Insert the object representing the data for the currently selected row index.

Specified by:
insertRowData in interface DataModelEx
Parameters:
data - data to be inserted at the currently selected row index

duplicateRowData

public void duplicateRowData(int insertIndex)
                      throws javax.faces.FacesException
Description copied from interface: DataModelEx
Duplicate the data for the currently selected row index and insert it into the data model at the specified insertion index.

Specified by:
duplicateRowData in interface DataModelEx
Parameters:
insertIndex - the insertion index for the duplicated row data
Throws:
javax.faces.FacesException - if an error occurs duplicating row data

removeRowData

public void removeRowData()
                   throws javax.faces.FacesException
Description copied from interface: DataModelEx
Remove the data for the currently selected row index.

Specified by:
removeRowData in interface DataModelEx
Throws:
javax.faces.FacesException - if an error occurs removing row data