|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.barracuda.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 org.enhydra.barracuda.core.comp.DefaultView.LocalElementFactory |
localFactory
|
protected static org.apache.log4j.Logger |
logger
|
protected org.w3c.dom.Node |
node
|
protected java.util.Map |
templateNodes
|
Constructor Summary | |
DefaultView()
Default constructor to create a view |
|
DefaultView(org.w3c.dom.Node node)
Create a view and bind it to a node |
|
DefaultView(java.lang.String name)
Create a view and bind it to a node |
|
DefaultView(java.lang.String name,
org.w3c.dom.Node node)
Create a view and bind it to a node |
Method Summary | |
java.lang.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(org.w3c.dom.Node curnode)
If you want to identify templates based on some custom mechanism, this is the method to override. |
ElementFactory |
getElementFactory()
Get the element factory provided by this view |
java.lang.String |
getName()
Get the name for this view |
org.w3c.dom.Node |
getNode()
Get the specific DOM node the View is bound to |
protected void |
searchForTemplates(org.w3c.dom.Node curnode)
Given a specific node, find any templates associated with it or its children. |
void |
setName(java.lang.String iname)
Set the name for this view |
void |
setNode(org.w3c.dom.Node inode)
Bind the view to a specific DOM node |
java.lang.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 org.apache.log4j.Logger logger
protected org.w3c.dom.Node node
protected java.util.Map templateNodes
protected org.enhydra.barracuda.core.comp.DefaultView.LocalElementFactory localFactory
Constructor Detail |
public DefaultView()
public DefaultView(java.lang.String name)
name
- the name of the viewpublic DefaultView(org.w3c.dom.Node node)
node
- the node to which the view is boundpublic DefaultView(java.lang.String name, org.w3c.dom.Node node)
name
- the name of the viewnode
- the node to which the view is boundMethod Detail |
public void setNode(org.w3c.dom.Node inode)
setNode
in interface View
public org.w3c.dom.Node getNode()
getNode
in interface View
public void setName(java.lang.String iname)
setName
in interface View
public java.lang.String getName()
getName
in interface View
public ElementFactory getElementFactory()
getElementFactory
in interface View
public java.lang.String toString()
toString
in class java.lang.Object
protected void searchForTemplates(org.w3c.dom.Node curnode)
protected void customSearchForTemplates(org.w3c.dom.Node curnode)
public java.lang.Object clone()
clone
in interface View
clone
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |