|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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 TabularDataModel
public lotus.domino.View getView()
public int getRowCount()
getRowCount
in class javax.faces.model.DataModel
public boolean canHaveMoreRows()
TabularDataModel
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.
Default is false
canHaveMoreRows
in class TabularDataModel
true
is data source can have more rowspublic int hasMoreRows(int maxCount)
TabularDataModel
hasMoreRows
in class TabularDataModel
public java.lang.Object getRowData()
getRowData
in class javax.faces.model.DataModel
public java.util.Vector getColumnValues()
TabularDataModel
null
getColumnValues
in class TabularDataModel
public java.util.Iterator<java.lang.String> getSelectedIds()
getSelectedIds
in class TabularDataModel
public void clearSelectedIds()
clearSelectedIds
in class TabularDataModel
public boolean isSelectedId(java.lang.String id)
isSelectedId
in class TabularDataModel
public void addSelectedId(java.lang.String id)
addSelectedId
in class TabularDataModel
public void removeSelectedId(java.lang.String id)
removeSelectedId
in class TabularDataModel
public void deleteSelectedItems() throws java.io.IOException
TabularDataModel
deleteSelectedItems
in class TabularDataModel
java.io.IOException
public void setResortOrder(java.lang.String columnName, java.lang.String sortOrder)
TabularDataModel
ascending, descending, toggle
setResortOrder
in class TabularDataModel
public int getResortType(java.lang.String columnName)
TabularDataModel
RESORT_NONE, RESORT_ASCENDING, RESORT_DESCENDING, RESORT_BOTH
Default is RESORT_NONE
getResortType
in class TabularDataModel
columnName
- column
public int getResortState(java.lang.String columnName)
TabularDataModel
RESORT_NONE, RESORT_ASCENDING, RESORT_DESCENDING, RESORT_BOTH
Default is RESORT_NONE
getResortState
in class TabularDataModel
columnName
- column
public java.lang.String getResortColumn()
TabularDataModel
getResortColumn
in class TabularDataModel
public int resetResortState(java.lang.String columnName)
TabularDataModel
resetResortState
in class TabularDataModel
public int getRowType()
TabularDataModel
TYPE_ENTRY, TYPE_CATEGORY, TYPE_TOTAL
Default is TYPE_UNKNOWN
getRowType
in class TabularDataModel
public boolean isRowLeaf()
TabularDataModel
true
is row is leaf
Default is false
isRowLeaf
in class TabularDataModel
public int getCategoryIndentLevel()
TabularDataModel
getCategoryIndentLevel
in class TabularDataModel
public int getIndentLevel()
TabularDataModel
getIndentLevel
in class TabularDataModel
public int getColumnIndentLevel()
TabularDataModel
getColumnIndentLevel
in class TabularDataModel
public boolean isRowCategory()
TabularDataModel
isRowCategory
in class TabularDataModel
public java.lang.String getRowPosition()
TabularDataModel
getRowPosition
in class TabularDataModel
public java.lang.String getRowId()
TabularDataModel
getRowId
in class TabularDataModel
public java.lang.String getCategoryName()
TabularDataModel
null
getCategoryName
in class TabularDataModel
public int getCategoryColumnIndex(java.lang.String columnName)
getCategoryColumnIndex
in class TabularDataModel
public void toggleRow(java.lang.String position)
TabularDataModel
toggleRow
in class TabularDataModel
public void expandRow(java.lang.String position)
TabularDataModel
expandRow
in class TabularDataModel
public void collapseRow(java.lang.String position)
TabularDataModel
collapseRow
in class TabularDataModel
public boolean isRowCollapsed(java.lang.String position)
position
- specified row index
public boolean isRowExpanded(java.lang.String position)
position
- specified row index
public boolean isRowCollapsed()
TabularDataModel
false
isRowCollapsed
in class TabularDataModel
public boolean isRowExpanded()
TabularDataModel
false
isRowExpanded
in class TabularDataModel
public boolean isRowTotal()
TabularDataModel
isRowTotal
in class TabularDataModel
public boolean isRowNonData()
TabularDataModel
isRowNonData
in class TabularDataModel
public boolean isRowData()
TabularDataModel
isRowData
in class TabularDataModel
public boolean isRowUnread()
TabularDataModel
isRowUnread
in class TabularDataModel
public boolean isRowUnread(java.lang.String onBehalfOfUser)
TabularDataModel
isRowUnread
in class TabularDataModel
public boolean isColumnCategorized(java.lang.String columnName)
TabularDataModel
isColumnCategorized
in class TabularDataModel
public boolean isColumnSortable(java.lang.String columnName)
isColumnSortable
in class TabularDataModel
public boolean isCategorized()
TabularDataModel
isCategorized
in class TabularDataModel
public int getCategoryCount()
TabularDataModel
getCategoryCount
in class TabularDataModel
public java.lang.String getCategoryFilter()
TabularDataModel
getCategoryFilter
in class TabularDataModel
public boolean hasCategoryFilter()
TabularDataModel
hasCategoryFilter
in class TabularDataModel
public boolean hasKeysFilter()
TabularDataModel
hasKeysFilter
in class TabularDataModel
public boolean hasFTFilter()
TabularDataModel
hasFTFilter
in class TabularDataModel
public java.lang.String getViewName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |