|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.barracudamvc.core.comp.DefaultView
This interface defines a View for components to render themselves in. Similar to the java.awt.Graphics object in AWT and Swing.
Field Summary | |
protected static org.apache.log4j.Logger |
logger
|
protected Node |
node
|
protected Map |
templateNodes
|
Constructor Summary | |
DefaultView()
Default constructor to create a view |
|
DefaultView(Node node)
Create a view and bind it to a node |
|
DefaultView(String name)
Create a view and bind it to a node |
|
DefaultView(String name,
Node node)
Create a view and bind it to a node |
Method Summary | |
Object |
clone()
When a view is cloned, the underlying node that backs the view is set to null; you MUST bind the newly cloned view to a node before you can use it. |
protected void |
customSearchForTemplates(Node curnode)
If you want to identify templates based on some custom mechanism, this is the method to override. |
String |
getName()
Get the name for this view |
Node |
getNode()
Get the specific DOM node the View is bound to |
protected void |
searchForTemplates(Node curnode)
Allow the view to search the node for any templates. |
void |
setName(String iname)
Set the name for this view |
void |
setNode(Node inode)
Bind the view to a specific DOM node |
String |
toString()
Get a String describing the view |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final org.apache.log4j.Logger logger
protected Node node
protected Map templateNodes
Constructor Detail |
public DefaultView()
public DefaultView(String name)
name
- the name of the viewpublic DefaultView(Node node)
node
- the node to which the view is boundpublic DefaultView(String name, Node node)
name
- the name of the viewnode
- the node to which the view is boundMethod Detail |
public void setNode(Node inode)
setNode
in interface View
inode
- the specific DOM node to bind the View topublic Node getNode()
getNode
in interface View
public void setName(String iname)
setName
in interface View
iname
- the name for this viewpublic String getName()
getName
in interface View
public String toString()
protected void searchForTemplates(Node curnode)
protected void customSearchForTemplates(Node curnode)
public Object clone()
clone
in interface View
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |