|
BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.wlw.netui.tags.databinding.grid.GridContext
public final class GridContext
A JavaBean that represents the runtime data of a specific Grid tag instance.
This bean provides access to properties about a Grid tag without having
to have a reference to the Grid tag itself. Upon initialization, the Grid
will create a GridContext object that the GridComponent
class will
provide to its subclasses.
Information provided here includes the JavaBean that encapsulates the style
data about a Grid and a DataContext
object which exposes the data and metadata that a Grid will use to render.
A GridContext is both created and destroyed in a Grid tag's lifecycle. It is
guaranteed to be dereferenced by the Grid in its AbstractBaseTag.release()
JSP
lifecycle method call.
Constructor Summary | |
---|---|
GridContext()
Create a GridContext object. |
Method Summary | |
---|---|
boolean |
getAutoRender()
Get the Grid's autoRender attribute, Grid.setAutoRender(boolean) . |
DataContext |
getDataContext()
Get the DataContext that contains the data the Grid will render |
String |
getDataSource()
Get the dataSource attribute. |
GridStyleContext |
getGridStyle()
Get a JavaBean that contains the style information for the grid. |
String |
getImageRoot()
|
String |
getName()
Get the name of the Grid. |
void |
setDataContext(DataContext dataContext)
Set the DataContext object
that the Grid uses to render data from a data set. |
void |
setDataSource(String dataSource)
Set the dataSource attribute from the Grid tag. |
void |
setGridStyle(GridStyleContext gridStyleContext)
Set a GridStyleContext JavaBean that
contains style information for the grid. |
void |
setImageRoot(String imageRoot)
|
void |
setName(String name)
Set the name of the Grid using the Grid tag's Grid.setName(String) attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GridContext()
Method Detail |
---|
public void setImageRoot(String imageRoot)
public String getImageRoot()
public void setName(String name)
Grid.setName(String)
attribute.
name
- the Grid tag's name attributepublic String getName()
public boolean getAutoRender()
Grid.setAutoRender(boolean)
.
public void setDataSource(String dataSource)
dataSource
- the expression that references an Object which the grid will render.public String getDataSource()
public void setDataContext(DataContext dataContext) throws DataContextException
DataContext
object
that the Grid uses to render data from a data set. It is illegal to try to set a
null
DataContext on a GridContext.
dataContext
- the DataContext object to set.
DataContextException
- if the dataContext parameter is nullDataContext
public DataContext getDataContext()
public void setGridStyle(GridStyleContext gridStyleContext)
GridStyleContext
JavaBean that
contains style information for the grid.
gridStyleContext
- the style information for the Gridpublic GridStyleContext getGridStyle()
|
BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |