com.dat.cx
Class CxName

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

public class CxName
extends CxProperty

CxName provides semantics for a name component. A name component is not created into the component tree. Instead it is used as a convenience within the studio. It provides access to the name of a component (which is defined to be the parent).


Fields inherited from class com.dat.cx.CxComponent
compactDisplay, noHatDisplay, standardDisplay
 
Constructor Summary
CxName(CxComponent forComp)
          Constructor
 
Method Summary
 java.lang.String getCompiledValue()
          Get the value, the name of the parent component
 com.dat.cx.studio.CxCompDisplay getDisplay()
          Get the display peer for this name.
 java.lang.String getLiteralValue()
          Get the value, the name of the parent component
 boolean isActive()
          Determine if the component is currently active.
 boolean isInherited()
          Determine if the component is inherited as part of an extends clause.
 boolean isName()
          Determines if the component is a name
 void setValueNoUndo(java.lang.String value)
          Set the value.
 
Methods inherited from class com.dat.cx.CxProperty
addPropertyChangeListener, export, exportInfo, getEditFrame, getEditorClassName, getIcon, getPropertyEditor, getXmlType, importInfo, importSpec, importTemplate, isEditable, isProperty, isSignificant, makeInfo, removePropertyChangeListener, setEditorClassName, setIsEditable, setSignificant, setValue
 
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, getY, handleException, hasChild, hasChild, hasChildren, hasDisplay, hasOverride, hasProperties, importContent, incrUnresolved, init, instantiateChildComponent, instantiateChildComponentAt, isAttribute, isAttributeInstance, isBaseProperty, isCompositeComponent, isConfiguration, isContentComponent, isDataMgr, isDataPort, isErrorCatchPort, isExtendable, isExtended, isInterface, isLibraryComponent, isMiniPort, isNative, isPackage, isPalette, isPin, isPort, isPortMgr, 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
 

Constructor Detail

CxName

public CxName(CxComponent forComp)
Constructor
Method Detail

isName

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

getDisplay

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

getCompiledValue

public java.lang.String getCompiledValue()
Get the value, the name of the parent component
Overrides:
getCompiledValue in class CxProperty
Returns:
the name of the parent component

getLiteralValue

public java.lang.String getLiteralValue()
Get the value, the name of the parent component
Overrides:
getLiteralValue in class CxProperty
Returns:
the name of the parent component

setValueNoUndo

public void setValueNoUndo(java.lang.String value)
Set the value. The name of the parent component will be updated.
Overrides:
setValueNoUndo in class CxProperty
Parameters:
value - the new value

isActive

public boolean isActive()
Description copied from class: CxComponent
Determine if the component is currently active.
Overrides:
isActive in class CxComponent
Following copied from class: com.dat.cx.CxComponent
Returns:
true if the component is currently active, false otherwise

isInherited

public boolean isInherited()
Description copied from class: CxComponent
Determine if the component is inherited as part of an extends clause.
Overrides:
isInherited in class CxComponent
Following copied from class: com.dat.cx.CxComponent
Returns:
true if the component is inherited, false otherwise