|
|||||||||
| 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
CxPort provides semantics for a port component. This include forwarding of all received events to all registered listeners.
| 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 | |
CxPort()
Default constructor |
|
CxPort(java.lang.String name,
boolean direction)
Constructor |
|
| Method Summary | |
void |
addCxListener(CxListener listener)
Add a Cx listener to the list of listners that will recieved forwarded events. |
XSet |
export(XSet doc,
CxProject project)
Export the definition of this port (only this component) |
void |
exportInfo(com.dat.cx.exec.CxExecComponentInfo info)
Export the definition of the component into a java serializable object. |
java.util.Iterator |
getCxListeners()
Get the list of currently registered listeners |
com.dat.cx.studio.CxCompDisplay |
getDisplay()
Get the display peer for this port. |
com.dat.cx.studio.CxInternalFrame |
getEditFrame(com.dat.cx.studio.CxStudio studio)
Get at edit frame for editing this component. |
java.lang.String |
getIcon()
Get the icon file name for this port |
boolean |
getPortDirection()
Get the port direction |
boolean |
hasCxListeners()
Determine if there are any listners currently registered. |
void |
importInfo(com.dat.cx.exec.CxExecComponentInfo info)
Import the definition of the component from a java serializable object. |
void |
importTemplate(CxComponent from,
boolean copy,
boolean inherit,
boolean inverse)
Import the definition of a port from another port. |
void |
inversePortDirection()
Inverse the port direction. |
boolean |
isPort()
Determines if the component is a port |
com.dat.cx.exec.CxExecComponentInfo |
makeInfo()
Make an empty serializable object to hold the components definition. |
void |
recieve(java.util.EventObject event)
Recieve an event as required by the CxListener interface. |
void |
removeCxListener(CxListener listener)
Remove a Cx listener from the list of listeners that will recieved forwarded events. |
void |
setPortDirection(boolean portDirection)
Set the port direction. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CxPort()
public CxPort(java.lang.String name,
boolean direction)
name - the name of the portdirection - the direction of the port, true for PROVIDES, false for USES| Method Detail |
public boolean isPort()
isPort in class CxComponentpublic com.dat.cx.studio.CxInternalFrame getEditFrame(com.dat.cx.studio.CxStudio studio)
getEditFrame in class CxComponentpublic com.dat.cx.studio.CxCompDisplay getDisplay()
getDisplay in class CxComponent
public void importTemplate(CxComponent from,
boolean copy,
boolean inherit,
boolean inverse)
importTemplate in class CxComponentfrom - the 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 XSet export(XSet doc,
CxProject project)
export in class CxComponentdoc - the XSet document being constructed. The definition is added to this documentpublic void recieve(java.util.EventObject event)
recieve in interface CxListenerevent - the recieved eventpublic void addCxListener(CxListener listener)
addCxListener in interface CxSourcelistener - the listener to add.public void removeCxListener(CxListener listener)
removeCxListener in interface CxSourcelistener - the listener to remove from the listpublic boolean hasCxListeners()
listener - the listener to remove from the listpublic java.util.Iterator getCxListeners()
getCxListeners in interface CxSourcepublic boolean getPortDirection()
getPortDirection in interface CxPortInterfacepublic void setPortDirection(boolean portDirection)
portDirection - the new port direction, use true for PROVIDES, false for USES.public void inversePortDirection()
public java.lang.String getIcon()
getIcon in class CxComponentpublic com.dat.cx.exec.CxExecComponentInfo makeInfo()
CxComponentmakeInfo in class CxComponentcom.dat.cx.CxComponentpublic void exportInfo(com.dat.cx.exec.CxExecComponentInfo info)
CxComponentexportInfo in class CxComponentcom.dat.cx.CxComponentinfo - the serializable object in which the definition of this component is to be stored.public void importInfo(com.dat.cx.exec.CxExecComponentInfo info)
CxComponentimportInfo in class CxComponentcom.dat.cx.CxComponentinfo - the serializable object in which the definition of this component is stored.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||