public class ScrollableDataTableRendererState
extends java.lang.Object
UIDataAdaptor
information
in request map. For nested grids, it support push/pop state saving.
In Renderer.encodeBegin(javax.faces.context.FacesContext, javax.faces.component.UIComponent)
method
must be created instance of this bean , or, if it already exist in request map - push information.
at the end of encodeEnd call, bean must be pop information or removed.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATA_GRID_RENDERER_STATE |
Constructor and Description |
---|
ScrollableDataTableRendererState(javax.faces.context.FacesContext context,
ScrollableDataTableRendererState previsiosState,
UIScrollableDataTable grid)
Create state for current grid ( and store previsios state in field ).
|
Modifier and Type | Method and Description |
---|---|
void |
addId(java.lang.String id) |
static ScrollableDataTableRendererState |
createState(javax.faces.context.FacesContext context,
UIScrollableDataTable grid)
Create new state for current grid.
|
org.ajax4jsf.context.AjaxContext |
getAjaxContext() |
java.lang.StringBuffer |
getBuffer() |
java.lang.String |
getCachedClientId() |
java.lang.String |
getCellIdPrefix() |
int |
getCellIndex() |
java.lang.String |
getClientId() |
java.lang.String |
getColumnClass() |
java.lang.String |
getColumnClass(int index) |
java.lang.String |
getColumnHeaderClass() |
int |
getColumns() |
java.lang.String |
getColumnType() |
java.lang.String |
getCurrentCellId(javax.faces.context.FacesContext context) |
int |
getFrozenColumnCount() |
UIScrollableDataTable |
getGrid() |
java.util.Set<java.lang.String> |
getIds() |
java.lang.String |
getPart() |
ScrollableDataTableRendererState |
getPreviousState() |
static ScrollableDataTableRendererState |
getRendererState(javax.faces.context.FacesContext context)
Get current grid state from JSF context
|
java.lang.String |
getRowClass() |
int |
getRowIndex() |
java.lang.Object |
getRowKey() |
java.lang.Integer |
getSepOffset() |
int |
getSumWidth() |
javax.faces.context.ResponseWriter |
getWriter() |
boolean |
isFake() |
boolean |
isFrozenColumn() |
boolean |
isFrozenPart() |
boolean |
isHeader() |
int |
nextCell()
Increment cells counter
|
int |
nextRow()
Increment current row counter.
|
static void |
restoreState(javax.faces.context.FacesContext context)
Restore previsius state for gred, or clear request parameter.
|
void |
setAjaxContext(org.ajax4jsf.context.AjaxContext ajaxContext) |
void |
setCellIdPrefix(java.lang.String _id_prefix) |
void |
setCellIndex(int cellIndex) |
void |
setClientId(java.lang.String clientId) |
void |
setColumnClasses(java.lang.Object columnClasses) |
void |
setColumns(int columns) |
void |
setColumType(java.lang.String _column_type) |
void |
setFake(boolean fake) |
void |
setFrozenColumnCount(int columnCount) |
void |
setFrozenPart(boolean part) |
void |
setGrid(UIScrollableDataTable grid) |
void |
setHeader(boolean header) |
void |
setPart(java.lang.String part) |
void |
setPreviousState(ScrollableDataTableRendererState previsiosState) |
void |
setRowClasses(java.lang.Object rowClasses) |
void |
setRowIndex(int rowIndex) |
void |
setRowKey(java.lang.Object rowKey) |
void |
setSepOffset(java.lang.Integer sepOffset) |
void |
setSumWidth(int sumWidth) |
void |
setWriter(javax.faces.context.ResponseWriter writer) |
public ScrollableDataTableRendererState(javax.faces.context.FacesContext context, ScrollableDataTableRendererState previsiosState, UIScrollableDataTable grid)
previsiosState
- public static ScrollableDataTableRendererState getRendererState(javax.faces.context.FacesContext context) throws javax.faces.FacesException
context
- javax.faces.FacesException
public static ScrollableDataTableRendererState createState(javax.faces.context.FacesContext context, UIScrollableDataTable grid)
context
- grid
- public static void restoreState(javax.faces.context.FacesContext context)
context
- public java.lang.String getCurrentCellId(javax.faces.context.FacesContext context)
public int getCellIndex()
public void setCellIndex(int cellIndex)
cellIndex
- The cellIndex to set.public int nextCell()
public int getColumns()
public void setColumns(int columns)
columns
- The columns to set.public UIScrollableDataTable getGrid()
public void setGrid(UIScrollableDataTable grid)
grid
- The grid to set.public ScrollableDataTableRendererState getPreviousState()
public void setPreviousState(ScrollableDataTableRendererState previsiosState)
previsiosState
- The previsiosState to set.public int getRowIndex()
public int nextRow()
public void setRowIndex(int rowIndex)
rowIndex
- The rowIndex to set.public java.lang.String getCachedClientId()
public java.lang.StringBuffer getBuffer()
public java.lang.Object getRowKey()
public void setRowKey(java.lang.Object rowKey)
rowKey
- the rowKey to setpublic boolean isFrozenColumn()
public void setFrozenColumnCount(int columnCount)
public int getFrozenColumnCount()
public boolean isFrozenPart()
public void setFrozenPart(boolean part)
public java.lang.String getCellIdPrefix()
public void setCellIdPrefix(java.lang.String _id_prefix)
public java.lang.String getColumnType()
public void setColumType(java.lang.String _column_type)
public org.ajax4jsf.context.AjaxContext getAjaxContext()
public void setAjaxContext(org.ajax4jsf.context.AjaxContext ajaxContext)
public javax.faces.context.ResponseWriter getWriter()
public void setWriter(javax.faces.context.ResponseWriter writer)
public java.lang.String getClientId()
public void setClientId(java.lang.String clientId)
public boolean isHeader()
public void setHeader(boolean header)
public java.lang.String getPart()
public void setPart(java.lang.String part)
public int getSumWidth()
public void setSumWidth(int sumWidth)
public java.lang.Integer getSepOffset()
public void setSepOffset(java.lang.Integer sepOffset)
public boolean isFake()
public void setFake(boolean fake)
public java.lang.String getColumnHeaderClass()
public java.lang.String getColumnClass()
public java.lang.String getColumnClass(int index)
public void setColumnClasses(java.lang.Object columnClasses)
public java.lang.String getRowClass()
public void setRowClasses(java.lang.Object rowClasses)
public java.util.Set<java.lang.String> getIds()
public void addId(java.lang.String id)
Copyright © 2015. All Rights Reserved.