com.dat.cx
Class CxBaseProperty

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

public class CxBaseProperty
extends CxProperty

CxBaseProperty provides semantics for a property component of a composite component. A base property must reference, and is thus linked to, some other property withni the composite component.


Fields inherited from class com.dat.cx.CxComponent
compactDisplay, noHatDisplay, standardDisplay
 
Constructor Summary
CxBaseProperty()
          Default constuctor
CxBaseProperty(java.lang.String theName, java.lang.String value, CxProperty reference)
          Constructor
 
Method Summary
 XSet export(XSet doc, CxProject project)
          Export the definition of this base property.
 java.lang.String getCompiledValue()
          Get the value of the property.
 java.lang.String getLiteralValue()
          Get the value of the property.
 com.dat.cx.studio.CxPropertyEditor getPropertyEditor()
          Get the property editor for this property.
 CxProperty getReference()
          Get the reference property
 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 a base property from another base property.
 boolean isBaseProperty()
          Determines if the component is a base property (component defined)
 void setReference(CxProperty reference)
          Set the reference property
 void setValueNoUndo(java.lang.String value)
          Set the value of the property.
 
Methods inherited from class com.dat.cx.CxProperty
addPropertyChangeListener, exportInfo, getDisplay, getEditFrame, getEditorClassName, getIcon, getXmlType, importInfo, 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, isActive, isAttribute, isAttributeInstance, isCompositeComponent, isConfiguration, isContentComponent, isDataMgr, isDataPort, isErrorCatchPort, isExtendable, isExtended, isInherited, isInterface, isLibraryComponent, isMiniPort, isName, 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

CxBaseProperty

public CxBaseProperty()
Default constuctor

CxBaseProperty

public CxBaseProperty(java.lang.String theName,
                      java.lang.String value,
                      CxProperty reference)
Constructor
Parameters:
name - the name of the property
value - the intial value for the property
reference - the property that this base property is linked to
Method Detail

isBaseProperty

public boolean isBaseProperty()
Determines if the component is a base property (component defined)
Overrides:
isBaseProperty in class CxComponent
Returns:
true if the component is a base property, otherwise false

getPropertyEditor

public com.dat.cx.studio.CxPropertyEditor getPropertyEditor()
Get the property editor for this property. The property editor is used within the studio to provide the gui components needed for the studio to edit the given property.
Overrides:
getPropertyEditor in class CxProperty
Returns:
the display peer

importTemplate

public void importTemplate(CxComponent from,
                           boolean copy,
                           boolean inherit,
                           boolean inverse)
Import the definition of a base property from another base property.
Overrides:
importTemplate in class CxProperty
Parameters:
from - the base property 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)

importSpec

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

export

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

getReference

public CxProperty getReference()
Get the reference property
Returns:
the reference property

setReference

public void setReference(CxProperty reference)
Set the reference property
Returns:
the reference property

getLiteralValue

public java.lang.String getLiteralValue()
Description copied from class: CxProperty
Get the value of the property. No evaluation is done prior to being returned.
Overrides:
getLiteralValue in class CxProperty
Following copied from class: com.dat.cx.CxProperty
Returns:
the current property value

getCompiledValue

public java.lang.String getCompiledValue()
Get the value of the property. Note: This will update the value with the value from the referenced property.
Overrides:
getCompiledValue in class CxProperty
Returns:
the current property value

setValueNoUndo

public void setValueNoUndo(java.lang.String value)
Set the value of the property. All registered property change listeners will be notified of the change. The value of the reference property will also be updated.
Overrides:
setValueNoUndo in class CxProperty
Parameters:
the - new property value