|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.designer.domino.xsp.api.visual.AbstractVisualizationFactory
public abstract class AbstractVisualizationFactory
A factory class that generates XSP mark-up for the tag it is associated with. The XSP markup must only contain mark-up which has pre-existing visualizations in Domino Designer. When a tag (which has a corresponding VisualizationFactory) is dropped onto an XPage, the visualization factory is given the DOM Node representing the newly inserted tag. The visualization factory then may return XSP mark-up that will be used to display the control. The visualization factory is queried each time node on the XPage changes.
Nested Class Summary | |
---|---|
static interface |
AbstractVisualizationFactory.IVisualizationCallback
An interface that gets invoked when the factory is printing a DOM Node. |
static class |
AbstractVisualizationFactory.RenderChildrenRecursiveCallback
A default implementation of com.ibm.designer.domino.xsp.api.visual.AbstractVisualizationFactory.IVisualizationCallback . |
Field Summary | |
---|---|
static AbstractVisualizationFactory.RenderChildrenRecursiveCallback |
recursiveCallback
A static callback clas that will cause the print methods to recursively print a node. |
static java.lang.String |
XSP_FOOTER
The closing tag of an XPage (</xp:view>) |
Constructor Summary | |
---|---|
AbstractVisualizationFactory()
|
Method Summary | |
---|---|
static java.lang.String |
generateHeaderWithExtLibDef(org.w3c.dom.Node n)
Utility method that examines the current XPage and returns the header that is appropriate for use within a visualization. |
abstract java.lang.String |
getFullXSPMarkupForControl(org.w3c.dom.Node nodeToVisualize,
FacesRegistry registry)
Returns valid XSP mark-up which will be used by the Design editor in the XPages editor to visualize a control for the given DOM node. |
abstract java.lang.String |
getXSPMarkupForControl(org.w3c.dom.Node nodeToVisualize,
AbstractVisualizationFactory.IVisualizationCallback callback,
FacesRegistry registry)
Returns valid XSP mark-up which will be used by the Design editor in the XPages editor to visualize a control for the given DOM node. |
java.lang.String |
printNode(org.w3c.dom.Node n)
Prints the provided node (including all of it's children) to a string. |
static java.lang.String |
printNode(org.w3c.dom.Node n,
AbstractVisualizationFactory.IVisualizationCallback callback,
FacesRegistry registry)
Prints the provided node to a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final AbstractVisualizationFactory.RenderChildrenRecursiveCallback recursiveCallback
public static final java.lang.String XSP_FOOTER
Constructor Detail |
---|
public AbstractVisualizationFactory()
Method Detail |
---|
public static java.lang.String generateHeaderWithExtLibDef(org.w3c.dom.Node n)
n
- the node that is being visualized
public static java.lang.String printNode(org.w3c.dom.Node n, AbstractVisualizationFactory.IVisualizationCallback callback, FacesRegistry registry)
n
- a node that we wish to serialize to a Stringcallback
- an object that will be queried for further input during the print operationregistry
- the FacesRegistry for the current application
public abstract java.lang.String getFullXSPMarkupForControl(org.w3c.dom.Node nodeToVisualize, FacesRegistry registry)
nodeToVisualize
- the DOM node from the XPage that requires a visualizationregistry
- the FacesRegistry for the current application
public abstract java.lang.String getXSPMarkupForControl(org.w3c.dom.Node nodeToVisualize, AbstractVisualizationFactory.IVisualizationCallback callback, FacesRegistry registry)
getFullXSPMarkupForControl(Node, FacesRegistry)
in that it does not need to return an entire XPage. This method will be called when the control that
this visualizer represents is embedded within another control that is associated with an instance of
RenderChildrenRecursiveCallback
nodeToVisualize
- the DOM node from the XPage that requires a visualizationcallback
- registry
- the FacesRegistry for the current application
AbstractVisualizationFactory.IVisualizationCallback
public java.lang.String printNode(org.w3c.dom.Node n) throws XMLException
n
- a node that we wish to serialize to a String
XMLException
- if the node provided contains invalid XML an XMLException will be generated
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |