com.dat.cx
Class CxTypePackage

java.lang.Object
  |
  +--com.dat.cx.CxComponent
        |
        +--com.dat.cx.CxTypePackage
All Implemented Interfaces:
CxExtendsListener, java.util.EventListener, com.d_a_t.expeval.ExpressionContext

public class CxTypePackage
extends CxComponent

CxTypePackage provides semantics for a type package component. A type package is a container for type components in the component tree. It corresponds to a DTD.


Fields inherited from class com.dat.cx.CxComponent
compactDisplay, noHatDisplay, standardDisplay
 
Constructor Summary
CxTypePackage()
          Default contstuctor
CxTypePackage(java.lang.String uri)
          Contstuctor
 
Method Summary
 XSet export(XSet doc, CxProject project)
          Export the definition of this type package.
 com.dat.cx.studio.CxCompDisplay getDisplay()
          Get the display peer for this package.
 java.lang.String getIcon()
          Get the icon file name for this package
 java.lang.String getUri()
          Get the uri of this type package
 java.util.Vector importSpec(XSet spec)
          Import specification from an XML element
 boolean isTypePackage()
          Determines if the component is a type package
 void setUri(java.lang.String uri)
          Set the uri of this type package
 
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, exportInfo, findPath, findPath, getBaseType, getChild, getChild, getChildren, getClassClause, getConfig, getConfigValue, getConfigValue, getDataPath, getDataPort, getDisplayStyle, getEditFrame, 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, importInfo, importTemplate, incrUnresolved, init, instantiateChildComponent, instantiateChildComponentAt, isActive, isAttribute, isAttributeInstance, isBaseProperty, isCompositeComponent, isConfiguration, isContentComponent, isDataMgr, isDataPort, isErrorCatchPort, isExtendable, isExtended, isInherited, isInterface, isLibraryComponent, isMiniPort, isName, isNative, isPackage, isPalette, isPin, isPort, isPortMgr, isProperty, isRoot, isSubPortOf, isTextInstance, isVar, isVarInstance, isVarSet, isWire, isXmlPort, isXmlPrimative, isXmlString, makeInfo, 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
 

Constructor Detail

CxTypePackage

public CxTypePackage()
Default contstuctor

CxTypePackage

public CxTypePackage(java.lang.String uri)
Contstuctor
Parameters:
uri - the Uri for the type package
Method Detail

isTypePackage

public boolean isTypePackage()
Determines if the component is a type package
Overrides:
isTypePackage in class CxComponent
Returns:
true if the component is a type package, otherwise false

getDisplay

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

importSpec

public java.util.Vector importSpec(XSet spec)
Import specification from an XML element
Overrides:
importSpec in class CxComponent
Parameters:
spec - the xml element containing the specification

export

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

getUri

public java.lang.String getUri()
Get the uri of this type package
Returns:
the uri of this type package

setUri

public void setUri(java.lang.String uri)
Set the uri of this type package
Parameters:
uri - this new uri for this type package

getIcon

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