|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.barracudamvc.core.comp.AbstractBComponent
org.barracudamvc.core.comp.BComponent
org.barracudamvc.core.comp.BTable
public class 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 BText |
caption
|
protected TableModel |
footerModel
|
protected TableModel |
headerModel
|
protected static org.apache.log4j.Logger |
logger
|
protected TableModel |
model
|
protected Node |
templateNode
|
Fields inherited from class org.barracudamvc.core.comp.BComponent |
---|
DEFAULT_ENCODING, enabled, enc, name, rs, VISIBILITY_MARKER, visible |
Fields inherited from class org.barracudamvc.core.comp.AbstractBComponent |
---|
attrs, children, dvc, isStepChild, parent, 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. |
BText |
getCaption()
Get the caption that backs the table |
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 |
BTable |
setCaption(BText icaption)
Set the caption that backs the table |
BTable |
setFooterModel(TableModel imodel)
Set the footer model that backs the table. |
BTable |
setHeaderModel(TableModel imodel)
Set the header model that backs the table. |
BTable |
setModel(TableModel imodel)
Set the model that backs the table. |
Methods inherited from class org.barracudamvc.core.comp.BComponent |
---|
addView, decodeStr, encodeStr, getEncoding, getFirstView, getName, getRenderStrategy, getViews, isEnabled, isVisible, postRender, preRender, removeAllViews, removeView, render, render, renderView, renderView, setEnabled, setEnabled, setEncoding, setName, setRenderStrategy, setView, setVisible, setVisible, supports |
Methods inherited from class org.barracudamvc.core.comp.AbstractBComponent |
---|
addChild, addStepChild, addStepChild, addTempView, clearState, findComponentMap, findRendererFactory, getAttr, getAttrMap, getChild, getChildren, getDefaultViewContext, getParent, getRenderer, getRenderer, getRendererFactory, getRootComponent, getState, getStateKeys, getStateStore, hasChildren, hasViews, initCycle, installRendererFactory, invalidate, isStepChild, printStackTrace, printStackTrace, printStackTrace, putState, removeAll, removeAllStepChildren, removeChild, removeChild, removeState, setAttr, setDefaultViewContext, setParent, 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 final org.apache.log4j.Logger logger
protected TableModel model
protected TableModel headerModel
protected TableModel footerModel
protected Node templateNode
protected BText caption
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
imodel
- the specific model to back this componentMethod Detail |
---|
public BTable setModel(TableModel imodel)
imodel
- the model that backs the tablepublic TableModel getModel()
public BTable setHeaderModel(TableModel imodel)
imodel
- the headermodel that backs the tablepublic TableModel getHeaderModel()
public BTable setFooterModel(TableModel imodel)
imodel
- the footer model that backs the tablepublic TableModel getFooterModel()
public BTable setCaption(BText icaption)
icaption
- A BText to represent to Caption Element.public BText getCaption()
public void destroyCycle()
destroyCycle
in class AbstractBComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |