|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RowRendererExt
Provides additional control to RowRenderer
.
Field Summary | |
---|---|
static int |
DETACH_ON_RENDER
Returned by getControls() to indicate
that the list cells added by newCell(org.zkoss.zul.Row) must be
detached before calling RowRenderer.render(org.zkoss.zul.Row, java.lang.Object) . |
Method Summary | |
---|---|
int |
getControls()
Returns how a grid shall render the live data. |
Component |
newCell(Row row)
Create a component as the first cell of the row. |
Row |
newRow(Grid grid)
Creates an instance of Row for rendering. |
Field Detail |
---|
static final int DETACH_ON_RENDER
getControls()
to indicate
that the list cells added by newCell(org.zkoss.zul.Row)
must be
detached before calling RowRenderer.render(org.zkoss.zul.Row, java.lang.Object)
.
Default: true.
If this interface is not specified, this flag is assumed
to be specified.
If you don't specify this flag, the implementation of
RowRenderer.render(org.zkoss.zul.Row, java.lang.Object)
must be aware of the existence of
the first cell (of the passed row).
Method Detail |
---|
Row newRow(Grid grid)
Row
for rendering.
The created component will be passed to RowRenderer.render(org.zkoss.zul.Row, java.lang.Object)
.
Note: remember to invoke AbstractComponent.applyProperties()
to initialize
the properties, defined in the component definition, properly.
If null is returned, the default row is created as follow.
final Row row = new Row();
row.applyProperties();
return row;
Note: DO NOT call AbstractComponent.setParent(org.zkoss.zk.ui.Component)
.
Grid
to create it for youComponent newCell(Row row)
Note: remember to invoke Component.applyProperties()
to
initialize the properties, defined in the component definition, properly,
if you create an instance instead of returning null.
Note: DO NOT call AbstractComponent.setParent(org.zkoss.zk.ui.Component)
.
If null is returned, the default cell is created as follow.
final Label cell = new Label();
cell.applyProperties();
return cell;
Note: DO NOT call Component.setParent(org.zkoss.zk.ui.Component)
.
Don't create cells for other columns.
row
- the row. It is the same as that is returned
by newRow(org.zkoss.zul.Grid)
Grid
to create it for youint getControls()
Note: if this interface is not implemented, DETACH_ON_RENDER
is assumed.
DETACH_ON_RENDER
or 0
to indicate how to render the live data.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |