com.ibm.xsp.model
Interface ViewDataModel

All Known Implementing Classes:
AbstractViewDataModel

public interface ViewDataModel


Field Summary
static int SORT_ASCENDING
           
static int SORT_DESCENDING
           
static int SORT_NONE
           
 
Method Summary
 void addSelectedId(java.lang.String id)
          Add the specified id to the selected list
 void clearSelectedIds()
          Clear the list of selected ids.
 void deleteSelectedItems()
          Delete the selected items and clear the list of selected ids.
 java.util.Iterator getSelectedIds()
          Return an iterator of the selected ids.
 int getSortOrder(java.lang.String columnName)
          Get the sort order for the specified column
 boolean isNumeric(java.lang.String columnName)
          Return true if the column has a numeric value
 boolean isSelectedId(java.lang.String id)
          Return true if the specified id is selected
 void reload()
          Force a refresh of the view data model.
 void removeSelectedId(java.lang.String id)
          Remove the specified id from the selected list
 void setComputeTotals(boolean computeTotals)
          Indicates that column totals should be computed.
 void setSortOrder(java.lang.String columnName, int sortOrder)
          Set the sort order for the specified column
 

Field Detail

SORT_NONE

static final int SORT_NONE
See Also:
Constant Field Values

SORT_ASCENDING

static final int SORT_ASCENDING
See Also:
Constant Field Values

SORT_DESCENDING

static final int SORT_DESCENDING
See Also:
Constant Field Values
Method Detail

reload

void reload()
Force a refresh of the view data model.


isNumeric

boolean isNumeric(java.lang.String columnName)
Return true if the column has a numeric value


setComputeTotals

void setComputeTotals(boolean computeTotals)
Indicates that column totals should be computed.

Parameters:
computeTotals - The computeTotals to set.

setSortOrder

void setSortOrder(java.lang.String columnName,
                  int sortOrder)
Set the sort order for the specified column


getSortOrder

int getSortOrder(java.lang.String columnName)
Get the sort order for the specified column


getSelectedIds

java.util.Iterator getSelectedIds()
Return an iterator of the selected ids.


clearSelectedIds

void clearSelectedIds()
Clear the list of selected ids.


isSelectedId

boolean isSelectedId(java.lang.String id)
Return true if the specified id is selected


addSelectedId

void addSelectedId(java.lang.String id)
Add the specified id to the selected list


removeSelectedId

void removeSelectedId(java.lang.String id)
Remove the specified id from the selected list


deleteSelectedItems

void deleteSelectedItems()
                         throws java.io.IOException
Delete the selected items and clear the list of selected ids.

Throws:
java.io.IOException