java.lang.Object
org.jxbeans.AbstractJXBean
org.jxbeans.AbstractDocumentSource
org.jxbeans.utilities.XbeansAdapter
- All Implemented Interfaces:
- org.jxbeans.DocumentReadyListener, org.jxbeans.DocumentSource, java.util.EventListener, java.io.Serializable
- public class XbeansAdapter
- extends org.jxbeans.AbstractDocumentSource
- implements org.jxbeans.DocumentReadyListener
The XbeansAdapter JXBean provides a bridge to the Xbeans framework.
Xbeans from that framework can be integrated into JXBean models by
placing them before or after an XbeansAdapter in the model.
- Since:
- 1.0
- Version:
- 1.0
|
Method Summary |
void |
documentReady(org.jxbeans.DocumentReadyEvent anEvent)
Accepts a JXBeans DocumentReadyEvent, converts the JDOM Document into
a W3C DOM Document, creates a new Xbeans DOMEvent with the newly
converted document, and the source from the incoming DocumentReadyEvent. |
DOMListener |
getDOMListener()
|
void |
setDOMListener(DOMListener aDOMListener)
Sets the Xbeans-compliant DOMListener. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static org.apache.log4j.Category log
xbeansListener
private DOMListener xbeansListener
builder
private transient org.jdom.input.DOMBuilder builder
outputter
private transient org.jdom.output.DOMOutputter outputter
XbeansAdapter
public XbeansAdapter()
documentReady
public void documentReady(org.jxbeans.DocumentReadyEvent anEvent)
throws org.jxbeans.JXBeanException
- Accepts a JXBeans
DocumentReadyEvent, converts the JDOM Document into
a W3C DOM Document, creates a new Xbeans DOMEvent with the newly
converted document, and the source from the incoming DocumentReadyEvent.
- Specified by:
documentReady in interface org.jxbeans.DocumentReadyListener
- Since:
- 1.0
setDOMListener
public void setDOMListener(DOMListener aDOMListener)
- Sets the Xbeans-compliant
DOMListener. This object will
receive DOMEvents when a DocumentReadyEvent is received
by this bean.
- Since:
- 1.0
getDOMListener
public DOMListener getDOMListener()
- Since:
- 1.0