|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.opensuit.core.table.ITableRenderingContext
public abstract class ITableRenderingContext
This abstract class gives access to the rendering context of the table
that is currently being rendered.
This is specially useful if you want to implement pagination, sort and filtering
at the application side.
Constructor Summary | |
---|---|
ITableRenderingContext()
|
Method Summary | |
---|---|
static ITableRenderingContext |
get(javax.servlet.http.HttpServletRequest iRequest)
Retrieves the current table rendering context. |
abstract java.lang.String |
getFilter(int iColumn)
Returns the filter text for the given column. |
abstract int |
getFirstIndex()
Returns the first index. |
abstract int |
getPage()
Returns the displayed page number. |
abstract int |
getRowsPerPage()
Returns the maximum number of results displayed by the table. |
abstract int |
getSortColumn()
Returns the index of the sorted column. |
abstract boolean |
getSortDirection()
Returns the sort direction. |
abstract boolean |
hasFilters()
Determines whether the current rendering context has defined filters. |
abstract boolean |
hasPagination()
Determines whether the current table rendering context has pagination |
abstract boolean |
hasSortedColumn()
Determines whether the current table rendering context has a sorted column |
abstract void |
setPage(int iPage)
Allows to adjust the displayed page if the requested page is too high |
abstract void |
setRowsCount(int iNumberOfRows)
Allows to set the number of rows. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ITableRenderingContext()
Method Detail |
---|
public static ITableRenderingContext get(javax.servlet.http.HttpServletRequest iRequest)
iRequest
- The HttpServletRequest (may be null)
public abstract boolean hasFilters()
public abstract java.lang.String getFilter(int iColumn)
iColumn
-
public abstract int getFirstIndex()
public abstract int getPage()
public abstract int getRowsPerPage()
public abstract int getSortColumn()
public abstract boolean getSortDirection()
true
means ascending, false
is descending.
public abstract boolean hasSortedColumn()
public abstract boolean hasPagination()
public abstract void setRowsCount(int iNumberOfRows)
iNumberOfRows
- public abstract void setPage(int iPage)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |