|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.faces.model.DataModel
com.ibm.xsp.model.TabularDataModel
com.ibm.xsp.model.domino.DominoViewDataModel
public class DominoViewDataModel
DominoViewDataModel represents a class that wraps a Domino View Data Source
| Field Summary |
|---|
| Fields inherited from class com.ibm.xsp.model.TabularDataModel |
|---|
_rowIndex, _wrappedData, dataControl, RESORT_ASCENDING, RESORT_BOTH, RESORT_DESCENDING, RESORT_NONE, RESORT_UNKNOWN, SORT_ASCENDING, SORT_DESCENDING, SORT_TOGGLE, TYPE_CATEGORY, TYPE_ENTRY, TYPE_TOTAL, TYPE_UNKNOWN |
| Constructor Summary | |
|---|---|
DominoViewDataModel(DominoViewData viewData)
Construct a data model from the data source |
|
| Method Summary | |
|---|---|
void |
addSelectedId(java.lang.String id)
Add the specified id to the selected list |
boolean |
canHaveMoreRows()
Return true where the data model is not able to compute the
precise number of rows in a data source and therefore can potentially
have more rows than initial count. |
void |
clearSelectedIds()
Clear the list of selected ids. |
void |
collapseRow(java.lang.String position)
collapse the row at this position |
void |
deleteSelectedItems()
Delete the selected items and clear the list of selected ids. |
void |
expandRow(java.lang.String position)
expand the row at this position |
int |
getCategoryColumnIndex(java.lang.String columnName)
|
int |
getCategoryCount()
Return the number of categoized columns |
java.lang.String |
getCategoryFilter()
Return the category filter |
int |
getCategoryIndentLevel()
Return the Category Indent Level (-1) |
java.lang.String |
getCategoryName()
Return the Category name Returns null |
int |
getColumnIndentLevel()
Return the Column Indent Level (-1) |
java.util.Vector |
getColumnValues()
get the Columns Values as a Vector. |
DominoViewData |
getDominoViewData()
returns the data source |
com.ibm.xsp.model.domino.DominoViewDataContainer |
getDominoViewDataContainer()
returns the data container |
int |
getIndentLevel()
Return the Indent Level (-1) |
java.lang.String |
getResortColumn()
Return the name of the resort column |
int |
getResortState(java.lang.String columnName)
Return the resort state of the column specified |
int |
getResortType(java.lang.String columnName)
Return the resort type of the column specified |
int |
getRowCount()
|
java.lang.Object |
getRowData()
|
java.lang.String |
getRowId()
Return the current row id |
java.lang.String |
getRowPosition()
Return the current row position |
int |
getRowType()
Return the row type - TYPE_ENTRY, TYPE_CATEGORY, TYPE_TOTAL
Default is TYPE_UNKNOWN |
java.util.Iterator<java.lang.String> |
getSelectedIds()
Return an iterator of the selected ids. |
lotus.domino.View |
getView()
Return the associated document view |
java.lang.String |
getViewName()
Return the name of the View that this View Data Model is based on |
boolean |
hasCategoryFilter()
Is a category filter applied to the data |
boolean |
hasFTFilter()
has Full Test Search Filter |
boolean |
hasKeysFilter()
has Keys filter applied |
int |
hasMoreRows(int maxCount)
Check if it might have rows beyond the count. |
boolean |
isCategorized()
Is the data source itself is categorized |
boolean |
isColumnCategorized(java.lang.String columnName)
Is column categorized |
boolean |
isColumnSortable(java.lang.String columnName)
|
boolean |
isRowCategory()
Is current row a category heading |
boolean |
isRowCollapsed()
Is the row collapsed. |
boolean |
isRowCollapsed(java.lang.String position)
Is the row collapsed for the given row index position |
boolean |
isRowData()
Is the row is regular data row (not a category or total) |
boolean |
isRowExpanded()
Is the row expanded. |
boolean |
isRowExpanded(java.lang.String position)
Is the row expanded for the given row index position |
boolean |
isRowLeaf()
Return true is row is leaf |
boolean |
isRowNonData()
Is the row is a category or total or any non-regular row entry |
boolean |
isRowTotal()
Does current row contain a total value |
boolean |
isRowUnread()
Is row unread |
boolean |
isRowUnread(java.lang.String onBehalfOfUser)
Is row read by user specified |
boolean |
isSelectedId(java.lang.String id)
Return true if the specified id is selected |
void |
removeSelectedId(java.lang.String id)
Remove the specified id to the selected list |
int |
resetResortState(java.lang.String columnName)
Reset the resort state for the column (returns -1) |
void |
setDataControl(FacesDataIterator dataControl)
Set the Data Control |
void |
setDominoViewDataContainer(DominoViewData dvd)
sets the data container via the data source |
void |
setDominoViewDataContainer(com.ibm.xsp.model.domino.DominoViewDataContainer dvdc)
sets the data container directly |
void |
setResortOrder(java.lang.String columnName,
java.lang.String sortOrder)
Set the Resort order for specified column, ascending, descending, toggle |
void |
toggleRow(java.lang.String position)
invert the expand/collapse state of a row |
| Methods inherited from class com.ibm.xsp.model.TabularDataModel |
|---|
codeToParameter, duplicateRowData, getDataControl, getRowIndex, getWrappedData, insertRowData, isRowAvailable, parameterToCode, removeRowData, setRowData, 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 |
|---|
public DominoViewDataModel(DominoViewData viewData)
| Method Detail |
|---|
public DominoViewData getDominoViewData()
public void setDominoViewDataContainer(DominoViewData dvd)
dvd - the data containerpublic void setDominoViewDataContainer(com.ibm.xsp.model.domino.DominoViewDataContainer dvdc)
dvdc - the data containerpublic com.ibm.xsp.model.domino.DominoViewDataContainer getDominoViewDataContainer()
public void setDataControl(FacesDataIterator dataControl)
setDataControl in class TabularDataModelpublic lotus.domino.View getView()
public int getRowCount()
getRowCount in class javax.faces.model.DataModelpublic boolean canHaveMoreRows()
TabularDataModeltrue where the data model is not able to compute the
precise number of rows in a data source and therefore can potentially
have more rows than initial count.
Default is false
canHaveMoreRows in class TabularDataModeltrue is data source can have more rowspublic int hasMoreRows(int maxCount)
TabularDataModel
hasMoreRows in class TabularDataModelpublic java.lang.Object getRowData()
getRowData in class javax.faces.model.DataModelpublic java.util.Vector getColumnValues()
TabularDataModelnull
getColumnValues in class TabularDataModelpublic java.util.Iterator<java.lang.String> getSelectedIds()
getSelectedIds in class TabularDataModelpublic void clearSelectedIds()
clearSelectedIds in class TabularDataModelpublic boolean isSelectedId(java.lang.String id)
isSelectedId in class TabularDataModelpublic void addSelectedId(java.lang.String id)
addSelectedId in class TabularDataModelpublic void removeSelectedId(java.lang.String id)
removeSelectedId in class TabularDataModel
public void deleteSelectedItems()
throws java.io.IOException
TabularDataModel
deleteSelectedItems in class TabularDataModeljava.io.IOException
public void setResortOrder(java.lang.String columnName,
java.lang.String sortOrder)
TabularDataModelascending, descending, toggle
setResortOrder in class TabularDataModelpublic int getResortType(java.lang.String columnName)
TabularDataModelRESORT_NONE, RESORT_ASCENDING, RESORT_DESCENDING, RESORT_BOTH
Default is RESORT_NONE
getResortType in class TabularDataModelcolumnName - column
public int getResortState(java.lang.String columnName)
TabularDataModelRESORT_NONE, RESORT_ASCENDING, RESORT_DESCENDING, RESORT_BOTH
Default is RESORT_NONE
getResortState in class TabularDataModelcolumnName - column
public java.lang.String getResortColumn()
TabularDataModel
getResortColumn in class TabularDataModelpublic int resetResortState(java.lang.String columnName)
TabularDataModel
resetResortState in class TabularDataModelpublic int getRowType()
TabularDataModelTYPE_ENTRY, TYPE_CATEGORY, TYPE_TOTAL
Default is TYPE_UNKNOWN
getRowType in class TabularDataModelpublic boolean isRowLeaf()
TabularDataModeltrue is row is leaf
Default is false
isRowLeaf in class TabularDataModelpublic int getCategoryIndentLevel()
TabularDataModel
getCategoryIndentLevel in class TabularDataModelpublic int getIndentLevel()
TabularDataModel
getIndentLevel in class TabularDataModelpublic int getColumnIndentLevel()
TabularDataModel
getColumnIndentLevel in class TabularDataModelpublic boolean isRowCategory()
TabularDataModel
isRowCategory in class TabularDataModelpublic java.lang.String getRowPosition()
TabularDataModel
getRowPosition in class TabularDataModelpublic java.lang.String getRowId()
TabularDataModel
getRowId in class TabularDataModelpublic java.lang.String getCategoryName()
TabularDataModelnull
getCategoryName in class TabularDataModelpublic int getCategoryColumnIndex(java.lang.String columnName)
getCategoryColumnIndex in class TabularDataModelpublic void toggleRow(java.lang.String position)
TabularDataModel
toggleRow in class TabularDataModelpublic void expandRow(java.lang.String position)
TabularDataModel
expandRow in class TabularDataModelpublic void collapseRow(java.lang.String position)
TabularDataModel
collapseRow in class TabularDataModelpublic boolean isRowCollapsed(java.lang.String position)
position - specified row index
public boolean isRowExpanded(java.lang.String position)
position - specified row index
public boolean isRowCollapsed()
TabularDataModelfalse
isRowCollapsed in class TabularDataModelpublic boolean isRowExpanded()
TabularDataModelfalse
isRowExpanded in class TabularDataModelpublic boolean isRowTotal()
TabularDataModel
isRowTotal in class TabularDataModelpublic boolean isRowNonData()
TabularDataModel
isRowNonData in class TabularDataModelpublic boolean isRowData()
TabularDataModel
isRowData in class TabularDataModelpublic boolean isRowUnread()
TabularDataModel
isRowUnread in class TabularDataModelpublic boolean isRowUnread(java.lang.String onBehalfOfUser)
TabularDataModel
isRowUnread in class TabularDataModelpublic boolean isColumnCategorized(java.lang.String columnName)
TabularDataModel
isColumnCategorized in class TabularDataModelpublic boolean isColumnSortable(java.lang.String columnName)
isColumnSortable in class TabularDataModelpublic boolean isCategorized()
TabularDataModel
isCategorized in class TabularDataModelpublic int getCategoryCount()
TabularDataModel
getCategoryCount in class TabularDataModelpublic java.lang.String getCategoryFilter()
TabularDataModel
getCategoryFilter in class TabularDataModelpublic boolean hasCategoryFilter()
TabularDataModel
hasCategoryFilter in class TabularDataModelpublic boolean hasKeysFilter()
TabularDataModel
hasKeysFilter in class TabularDataModelpublic boolean hasFTFilter()
TabularDataModel
hasFTFilter in class TabularDataModelpublic java.lang.String getViewName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||