|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.barracuda.core.comp.AbstractBComponent | +--org.enhydra.barracuda.core.comp.BComponent | +--org.enhydra.barracuda.core.comp.BTable
A BTable is used to put data into a table format within a DOM. In practice, this has proven to be one of the least used Barracuda components, since it it usually a lot easier (and more flexible) simply to use a BTemplate.
In the case of BTable, you will ALMOST ALWAYS need to manually bind it to a View, unless you happen to be returning it from a model (in which case this will be done for you automatically)
Field Summary | |
protected TableModel |
footerModel
|
protected TableModel |
headerModel
|
protected static org.apache.log4j.Logger |
logger
|
protected TableModel |
model
|
protected org.w3c.dom.Node |
templateNode
|
Fields inherited from class org.enhydra.barracuda.core.comp.BComponent |
attrs, CACHING_MARKER, enabled, name, rs, VISIBILITY_MARKER, visible |
Fields inherited from class org.enhydra.barracuda.core.comp.AbstractBComponent |
children, dvc, isStepChild, parent, preventCaching, statemap, stepChildren, tempViews, validated, views |
Constructor Summary | |
BTable()
Public noargs constructor |
|
BTable(TableModel imodel)
Public constructor which creates the component and binds it to a specific model. |
Method Summary | |
void |
destroyCycle()
Destroy cycle. |
TableModel |
getFooterModel()
Get the footer model that backs the table |
TableModel |
getHeaderModel()
Get the header model that backs the table |
TableModel |
getModel()
Get the model that backs the table |
void |
setFooterModel(TableModel imodel)
Set the footer model that backs the table. |
void |
setHeaderModel(TableModel imodel)
Set the header model that backs the table. |
void |
setModel(TableModel imodel)
Set the model that backs the table. |
Methods inherited from class org.enhydra.barracuda.core.comp.BComponent |
addView, getAttr, getAttrMap, getFirstView, getName, getRenderStrategy, getViews, isEnabled, isVisible, postRender, preRender, removeAllViews, removeView, render, render, renderView, renderView, setAttr, setEnabled, setEnabled, setName, setRenderStrategy, setView, setVisible, setVisible, supports |
Methods inherited from class org.enhydra.barracuda.core.comp.AbstractBComponent |
addChild, addStepChild, addStepChild, addTempView, findComponentMap, findRendererFactory, getChild, getChildren, getDefaultViewContext, getParent, getPreventCaching, getRenderer, getRenderer, getRootComponent, getState, getStateKeys, getStateValues, hasChildren, hasViews, initCycle, installRendererFactory, invalidate, isStepChild, printStackTrace, printStackTrace, printStackTrace, putState, removeAll, removeAllStepChildren, removeChild, removeChild, removeState, setDefaultViewContext, setParent, setPreventCaching, toRef, toString, toString, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger logger
protected TableModel model
protected TableModel headerModel
protected TableModel footerModel
protected org.w3c.dom.Node templateNode
Constructor Detail |
public BTable()
public BTable(TableModel imodel)
Null values may be passed in for any parameters, but if you do so you will need manually provide these values (via the accessor methods) prior to actually rendering the component
Method Detail |
public void setModel(TableModel imodel)
public TableModel getModel()
public void setHeaderModel(TableModel imodel)
public TableModel getHeaderModel()
public void setFooterModel(TableModel imodel)
public TableModel getFooterModel()
public void destroyCycle()
destroyCycle
in class AbstractBComponent
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |