|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.dat.cx.CxComponent | +--com.dat.cx.CxPort | +--com.dat.cx.CxXmlPort | +--com.dat.cx.CxDataPort
CxDataPort provides semantics for a data port component. A data port is an xml port providing access to and from selected portions of a stored document. The document is stored in its parent data manager object. A data port will be typed according to the type of xml document it can recieve.
Fields inherited from class com.dat.cx.CxComponent |
compactDisplay, noHatDisplay, standardDisplay |
Fields inherited from interface com.dat.cx.CxPortInterface |
COMPOSITE, EVENT, INTERFACE, METHOD, PROVIDES, USES |
Constructor Summary | |
CxDataPort()
Default constructor |
|
CxDataPort(java.lang.String name,
boolean direction,
java.lang.String dataPath,
CxComponent type)
Constructor |
Method Summary | |
void |
applyChildAttributes(CxComponent component,
XSet currentDoc,
java.lang.String dataPath)
|
XSet |
export(XSet doc,
CxProject project)
Export the definition of this xml port (only this component) |
void |
exportInfo(com.dat.cx.exec.CxExecComponentInfo info)
Export the definition of the component into a java serializable object. |
java.lang.String |
getDataPath()
|
com.dat.cx.studio.CxCompDisplay |
getDisplay()
Get the display peer for this port. |
void |
importInfo(com.dat.cx.exec.CxExecComponentInfo info)
Import the definition of the component from a java serializable object. |
java.util.Vector |
importSpec(XSet spec)
Import specification from an XML element |
void |
importTemplate(CxComponent from,
boolean copy,
boolean inherit,
boolean inverse)
Import the definition of an xml port from another xml port. |
boolean |
isDataPort()
Determines if the component is a data port |
com.dat.cx.exec.CxExecComponentInfo |
makeInfo()
Make an empty serializable object to hold the components definition. |
void |
sendDoc(CxEvent event)
Send the doc referenced by this data port. |
void |
setDataPath(java.lang.String dataPath)
|
Methods inherited from class com.dat.cx.CxXmlPort |
getDocType, getDocTypeProperty, getPortIcon, isValidEvent, isXmlPort, recieve, setDocType, setPortIcon |
Methods inherited from class com.dat.cx.CxPort |
addCxListener, getCxListeners, getEditFrame, getIcon, getPortDirection, hasCxListeners, inversePortDirection, isPort, removeCxListener, setPortDirection |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CxDataPort()
public CxDataPort(java.lang.String name, boolean direction, java.lang.String dataPath, CxComponent type)
name
- the name for the portdataPath
- the path from its parents data manager to the data manager's variable or attribute
that identifies the portion of a document on which the data port is the recieve or send
data.direction
- the direction of the port, true for PROVIDES, false for USEStype
- the type of the xml portMethod Detail |
public boolean isDataPort()
CxComponent
isDataPort
in class CxComponent
com.dat.cx.CxComponent
public void importTemplate(CxComponent from, boolean copy, boolean inherit, boolean inverse)
importTemplate
in class CxXmlPort
from
- the xml port from which to import a definitioncopy
- indicate that this is a copy 'vs' extendsinherit
- indicate that the definition is inherited as part of an extendsinverse
- (not used)public java.util.Vector importSpec(XSet spec)
importSpec
in class CxXmlPort
spec
- the xml element containing the specificationpublic XSet export(XSet doc, CxProject project)
export
in class CxXmlPort
doc
- the XSet document being constructed. The definition is added to this documentpublic com.dat.cx.studio.CxCompDisplay getDisplay()
getDisplay
in class CxPort
public void sendDoc(CxEvent event)
public java.lang.String getDataPath()
public void setDataPath(java.lang.String dataPath)
public com.dat.cx.exec.CxExecComponentInfo makeInfo()
CxComponent
makeInfo
in class CxPort
com.dat.cx.CxComponent
public void exportInfo(com.dat.cx.exec.CxExecComponentInfo info)
CxComponent
exportInfo
in class CxPort
com.dat.cx.CxComponent
info
- the serializable object in which the definition of this component is to be stored.public void importInfo(com.dat.cx.exec.CxExecComponentInfo info)
CxComponent
importInfo
in class CxPort
com.dat.cx.CxComponent
info
- the serializable object in which the definition of this component is stored.public void applyChildAttributes(CxComponent component, XSet currentDoc, java.lang.String dataPath)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |