|
|||||||||
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
public abstract class TabularDataModel
Field Summary | |
---|---|
protected int |
_rowIndex
|
protected java.lang.Object |
_wrappedData
|
protected FacesDataIterator |
dataControl
|
static int |
RESORT_ASCENDING
|
static int |
RESORT_BOTH
|
static int |
RESORT_DESCENDING
|
static int |
RESORT_NONE
|
static java.lang.String |
SORT_ASCENDING
|
static java.lang.String |
SORT_DESCENDING
|
static java.lang.String |
SORT_TOGGLE
|
static int |
TYPE_CATEGORY
|
static int |
TYPE_ENTRY
|
static int |
TYPE_TOTAL
|
static int |
TYPE_UNKNOWN
|
Constructor Summary | |
---|---|
TabularDataModel()
Construct an TabularDataModel instance |
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. |
static java.lang.String |
codeToParameter(int resort)
|
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 |
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 |
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. |
FacesDataIterator |
getDataControl()
Return the Data iterator for this Data Model |
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 |
java.lang.String |
getRowId()
Return the current row id |
int |
getRowIndex()
|
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 |
getSelectedIds()
Return an iterator of the selected ids. |
java.lang.Object |
getWrappedData()
Delegates to ValueBindingObject.getValueBinding(String) |
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. |
void |
insertRowData(java.lang.Object data)
Insert the object representing the data for the currently selected row index. |
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 |
isRowAvailable()
Return true is a row is available, i.e. |
boolean |
isRowCategory()
Is current row a category heading |
boolean |
isRowCollapsed()
Is the row collapsed. |
boolean |
isRowData()
Is the row is regular data row (not a category or total) |
boolean |
isRowExpanded()
Is the row expanded. |
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 |
static int |
parameterToCode(java.lang.String parameter)
|
void |
removeRowData()
Remove the data for the currently selected row index. |
void |
removeSelectedId(java.lang.String id)
Remove the specified id from 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 iterator for this Data Model |
void |
setResortOrder(java.lang.String columnName,
java.lang.String sortOrder)
Set the Resort order for specified column, ascending, descending, toggle |
void |
setRowData(java.lang.Object data)
Set the object representing the data for the currently selected row index. |
void |
setRowIndex(int rowIndex)
|
void |
setWrappedData(java.lang.Object data)
|
void |
toggleRow(java.lang.String position)
invert the expand/collapse state of a row |
Methods inherited from class javax.faces.model.DataModel |
---|
addDataModelListener, getDataModelListeners, getRowCount, getRowData, removeDataModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_UNKNOWN
public static final int TYPE_ENTRY
public static final int TYPE_CATEGORY
public static final int TYPE_TOTAL
public static final int RESORT_NONE
public static final int RESORT_ASCENDING
public static final int RESORT_DESCENDING
public static final int RESORT_BOTH
public static final java.lang.String SORT_ASCENDING
public static final java.lang.String SORT_DESCENDING
public static final java.lang.String SORT_TOGGLE
protected FacesDataIterator dataControl
protected int _rowIndex
protected java.lang.Object _wrappedData
Constructor Detail |
---|
public TabularDataModel()
Method Detail |
---|
public int hasMoreRows(int maxCount)
public boolean canHaveMoreRows()
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
true
is data source can have more rowspublic boolean isRowAvailable()
true
is a row is available, i.e. current row index is
between the first and last row indexes.
(non-Javadoc)
isRowAvailable
in class javax.faces.model.DataModel
DataModel.isRowAvailable()
public boolean isRowLeaf()
true
is row is leaf
Default is false
public int getRowType()
TYPE_ENTRY, TYPE_CATEGORY, TYPE_TOTAL
Default is TYPE_UNKNOWN
public java.lang.String getRowPosition()
public java.lang.String getRowId()
public void setResortOrder(java.lang.String columnName, java.lang.String sortOrder)
ascending, descending, toggle
public int getResortType(java.lang.String columnName)
RESORT_NONE, RESORT_ASCENDING, RESORT_DESCENDING, RESORT_BOTH
Default is RESORT_NONE
columnName
- column
public int getResortState(java.lang.String columnName)
RESORT_NONE, RESORT_ASCENDING, RESORT_DESCENDING, RESORT_BOTH
Default is RESORT_NONE
columnName
- column
public java.lang.String getResortColumn()
public int resetResortState(java.lang.String columnName)
public int getCategoryIndentLevel()
public int getIndentLevel()
public int getColumnIndentLevel()
public java.util.Vector getColumnValues()
null
public java.lang.String getCategoryName()
null
public boolean isRowCollapsed()
false
public boolean isRowExpanded()
false
public boolean isRowCategory()
public boolean isRowTotal()
public boolean isRowUnread()
public boolean isRowUnread(java.lang.String onBehalfOfUser)
public boolean isRowNonData()
public boolean isRowData()
public boolean isCategorized()
public boolean isColumnCategorized(java.lang.String columnName)
public boolean isColumnSortable(java.lang.String columnName)
public int getCategoryColumnIndex(java.lang.String columnName)
public int getCategoryCount()
public java.lang.String getCategoryFilter()
public boolean hasCategoryFilter()
public boolean hasKeysFilter()
public boolean hasFTFilter()
public void toggleRow(java.lang.String position)
public void expandRow(java.lang.String position)
public void collapseRow(java.lang.String position)
public int getRowIndex()
getRowIndex
in class javax.faces.model.DataModel
DataModel.getRowIndex()
public void setRowIndex(int rowIndex)
setRowIndex
in class javax.faces.model.DataModel
public java.lang.Object getWrappedData()
ValueBindingObject.getValueBinding(String)
getWrappedData
in class javax.faces.model.DataModel
DataModel.getWrappedData()
public void setWrappedData(java.lang.Object data)
setWrappedData
in class javax.faces.model.DataModel
public FacesDataIterator getDataControl()
public void setDataControl(FacesDataIterator dataControl)
public static java.lang.String codeToParameter(int resort)
public static int parameterToCode(java.lang.String parameter)
public java.util.Iterator getSelectedIds()
public void clearSelectedIds()
public boolean isSelectedId(java.lang.String id)
public void addSelectedId(java.lang.String id)
public void removeSelectedId(java.lang.String id)
public void deleteSelectedItems() throws java.io.IOException
java.io.IOException
public void setRowData(java.lang.Object data)
DataModelEx
setRowData
in interface DataModelEx
data
- data to be set for the currently selected row indexpublic void insertRowData(java.lang.Object data)
DataModelEx
insertRowData
in interface DataModelEx
data
- data to be inserted at the currently selected row indexpublic void duplicateRowData(int insertIndex) throws javax.faces.FacesException
DataModelEx
duplicateRowData
in interface DataModelEx
insertIndex
- the insertion index for the duplicated row data
javax.faces.FacesException
- if an error occurs duplicating row datapublic void removeRowData() throws javax.faces.FacesException
DataModelEx
removeRowData
in interface DataModelEx
javax.faces.FacesException
- if an error occurs removing row data
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |