com.dat.cx
Class CxInterface

java.lang.Object
  |
  +--com.dat.cx.CxComponent
        |
        +--com.dat.cx.CxPort
              |
              +--com.dat.cx.CxInterface
All Implemented Interfaces:
CxExtendsListener, CxListener, CxPortInterface, CxSource, java.util.EventListener, com.d_a_t.expeval.ExpressionContext

public class CxInterface
extends CxPort
implements CxSource, CxListener, CxPortInterface

CxInterface provides semantics for an interface component.


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
CxInterface()
          Default Constructor
CxInterface(java.lang.String name, boolean direction)
          Constructor
 
Method Summary
 XSet export(XSet doc, CxProject project)
          Export the definition of this interface.
 com.dat.cx.studio.CxCompDisplay getDisplay()
          Get the display peer for this interface.
 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 component
 void importTemplate(CxComponent from, boolean copy, boolean inherit, boolean inverse)
          Import the definition of a port from another port.
 boolean isInterface()
          Determines if the component is an interface
 
Methods inherited from class com.dat.cx.CxPort
addCxListener, exportInfo, getCxListeners, getPortDirection, hasCxListeners, importInfo, inversePortDirection, isPort, makeInfo, recieve, removeCxListener, setPortDirection
 
Methods inherited from class com.dat.cx.CxComponent
activate, addChild, addChildAt, addChildAtNoUndo, addChildNoUndo, addChildNoUndoAssign, addComponentChangeListener, addComponentChildrenListener, addExtendsListener, addSortedChild, canAddComponent, canExtendsAdd, componentAdded, componentLocationChanged, componentNameChanged, componentNodeChanged, componentPropertyChanged, componentRemoved, componentWirePortChanged, constructNode, contains, deactivate, decrUnresolved, exportContent, findPath, findPath, getBaseType, getChild, getChild, getChildren, getClassClause, getConfig, getConfigValue, getConfigValue, getDataPath, getDataPort, getDisplayStyle, getExtendsFrom, getExtendsListeners, getImageIcon, getIndexOfChild, getInfo, getName, getNameInAncestor, getNameInContext, getNextChildTo, getNoChildren, getOwnerProject, getPackage, getPackage, getParent, getPort, getPropertyNames, getPropertyValues, getRoot, getRzChildren, getRzSortedChildren, getSortedChild, getSortedChildren, getSortedIndexOfChild, getViewFrame, getX, getXmlType, getY, handleException, hasChild, hasChild, hasChildren, hasDisplay, hasOverride, hasProperties, importContent, importSpec, incrUnresolved, init, instantiateChildComponent, instantiateChildComponentAt, isActive, isAttribute, isAttributeInstance, isBaseProperty, isCompositeComponent, isConfiguration, isContentComponent, isDataMgr, isDataPort, isErrorCatchPort, isExtendable, isExtended, isInherited, isLibraryComponent, isMiniPort, isName, isNative, isPackage, isPalette, isPin, isPortMgr, isProperty, isRoot, isSubPortOf, isTextInstance, isTypePackage, isVar, isVarInstance, isVarSet, isWire, isXmlPort, isXmlPrimative, isXmlString, omitExport, removeChild, removeChild, removeChildNoUndo, removeComponentChangeListener, removeComponentChildrenListener, removeExtendsListener, renameSortedChild, resolveClass, resolveConstructor, resolveField, resolveMethod, setClassClause, setComponentDefinitionServer, setDisplayStyle, setDisplayStyleFromInfo, setExtendsFrom, setInherited, setLocation, setLocationNoUndo, setName, setNameNoTrigger, setNameNoUndo, setNative, setOwnerProject, setParent, setPropertyValues, setX, setY, toString, triggerExtendsNodeChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.dat.cx.CxSource
addCxListener, getCxListeners, removeCxListener
 
Methods inherited from interface com.dat.cx.CxListener
recieve
 
Methods inherited from interface com.dat.cx.CxPortInterface
getPortDirection
 

Constructor Detail

CxInterface

public CxInterface()
Default Constructor

CxInterface

public CxInterface(java.lang.String name,
                   boolean direction)
Constructor
Parameters:
name - the name of the interface
direction - true if the interface is provides, false if uses
Method Detail

isInterface

public boolean isInterface()
Determines if the component is an interface
Overrides:
isInterface in class CxComponent
Returns:
true if the component is an interface, otherwise false

getDisplay

public com.dat.cx.studio.CxCompDisplay getDisplay()
Get the display peer for this interface. The display peer handles the rendering of the interface within the studio.
Overrides:
getDisplay in class CxPort
Returns:
the display peer

getEditFrame

public com.dat.cx.studio.CxInternalFrame getEditFrame(com.dat.cx.studio.CxStudio studio)
Get at edit frame for editing this component.
Overrides:
getEditFrame in class CxPort
Returns:
the edit frame

importTemplate

public void importTemplate(CxComponent from,
                           boolean copy,
                           boolean inherit,
                           boolean inverse)
Import the definition of a port from another port.
Overrides:
importTemplate in class CxPort
Parameters:
from - the port from which to import a definition
copy - indicate that this is a copy 'vs' extends
inherit - indicate that the definition is inherited as part of an extends
inverse - (not used)

export

public XSet export(XSet doc,
                   CxProject project)
Export the definition of this interface.
Overrides:
export in class CxPort
Parameters:
doc - the XSet docuement being constructed. The definition is added to this document.
Returns:
the XSet document relative to the new definition

getIcon

public java.lang.String getIcon()
Get the icon file name for this component
Overrides:
getIcon in class CxPort
Returns:
the file name for the icon