|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.barracudamvc.core.comp.DefaultView
org.barracudamvc.core.comp.DefaultTableView
public class DefaultTableView
This class provides the default implementation for a TableView. It provides a View for components to render themselves in. Unlike other views, the TableView provides convenience methods to access the header, body, and footer elements of the view.
Field Summary | |
---|---|
protected Element |
body
|
protected Element |
caption
|
protected Element |
footer
|
protected Element |
header
|
protected static org.apache.log4j.Logger |
logger
|
Fields inherited from class org.barracudamvc.core.comp.DefaultView |
---|
node, templateNodes |
Constructor Summary | |
---|---|
DefaultTableView()
Public noargs constructor. |
|
DefaultTableView(Node node)
Create a view and bind it to a node. |
Method Summary | |
---|---|
protected void |
customSearchForTemplates(Node curnode)
Here we are going to look for custom header, footer, and body elements |
Element |
getBodyElement()
Get the body element from the particular Node that backs this view. |
Element |
getCaptionElement()
Get the caption element from the particular Node that backs this view. |
Element |
getFooterElement()
Get the footer element from the particular Node that backs this view. |
Element |
getHeaderElement()
Get the header element from the particular Node that backs this view. |
protected void |
searchForTemplates(Node curnode)
Instead of the parent behavior (which will only process the root node, not the children), here we need to iterate through all of them in order to call customSearchForTemplates() on every node. |
String |
toString()
Get a String describing the view |
Methods inherited from class org.barracudamvc.core.comp.DefaultView |
---|
clone, getName, getNode, setName, setNode |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.barracudamvc.core.comp.View |
---|
clone, getName, getNode, setName, setNode |
Field Detail |
---|
protected static final org.apache.log4j.Logger logger
protected Element header
protected Element body
protected Element footer
protected Element caption
Constructor Detail |
---|
public DefaultTableView()
public DefaultTableView(Node node)
node
- the node the view should be bound toMethod Detail |
---|
public Element getHeaderElement()
getHeaderElement
in interface TableView
public Element getBodyElement()
getBodyElement
in interface TableView
public Element getFooterElement()
getFooterElement
in interface TableView
public Element getCaptionElement()
getCaptionElement
in interface TableView
protected void searchForTemplates(Node curnode)
searchForTemplates
in class DefaultView
protected void customSearchForTemplates(Node curnode)
customSearchForTemplates
in class DefaultView
public String toString()
DefaultView
toString
in class DefaultView
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |