com.dat.cx
Class CxResourceProviderProperty

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

public class CxResourceProviderProperty
extends CxProperty
implements CxResourceUser

Component property used to specify a Resource needed by a parent Component for proper functioning.


Fields inherited from class com.dat.cx.CxComponent
compactDisplay, noHatDisplay, standardDisplay
 
Constructor Summary
CxResourceProviderProperty()
           
CxResourceProviderProperty(java.lang.Class resourceClass)
           
CxResourceProviderProperty(java.lang.String name, java.lang.Class resourceClass, boolean significant)
           
 
Method Summary
 java.lang.String getLiteralValue()
          Get the value of the property.
 com.dat.cx.studio.CxPropertyEditor getPropertyEditor()
          Get the property editor for this property.
 java.lang.Object getResource()
          Returns a CxResource.
 java.lang.Class getResourceClass()
          Returns the Class of an interface that specifies the a resource.
 void setResourceProvider(CxResourceProvider provider)
          Set the CxResourceProvider from which the needed resource will be obtained.
 void setValue(java.lang.String value)
          Set the value of the property.
 void setValueNoUndo(java.lang.String value)
          Set the value of the property.
 
Methods inherited from class com.dat.cx.CxProperty
addPropertyChangeListener, export, exportInfo, getCompiledValue, getDisplay, getEditFrame, getEditorClassName, getIcon, getXmlType, importInfo, importSpec, importTemplate, isEditable, isProperty, isSignificant, makeInfo, removePropertyChangeListener, setEditorClassName, setIsEditable, setSignificant
 
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, isBaseProperty, 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

CxResourceProviderProperty

public CxResourceProviderProperty()

CxResourceProviderProperty

public CxResourceProviderProperty(java.lang.Class resourceClass)

CxResourceProviderProperty

public CxResourceProviderProperty(java.lang.String name,
                                  java.lang.Class resourceClass,
                                  boolean significant)
Method Detail

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

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

setValue

public void setValue(java.lang.String value)
Description copied from class: CxProperty
Set the value of the property. All registered property change listeners will be notified of the change.
Overrides:
setValue in class CxProperty
Following copied from class: com.dat.cx.CxProperty
Parameters:
value - the new property value

setValueNoUndo

public void setValueNoUndo(java.lang.String value)
Description copied from class: CxProperty
Set the value of the property. All registered property change listeners will be notified of the change.
Overrides:
setValueNoUndo in class CxProperty
Following copied from class: com.dat.cx.CxProperty
Parameters:
value - the new property value

getResource

public java.lang.Object getResource()
Returns a CxResource.
Specified by:
getResource in interface CxResourceUser

getResourceClass

public java.lang.Class getResourceClass()
Returns the Class of an interface that specifies the a resource.
Specified by:
getResourceClass in interface CxResourceUser

setResourceProvider

public void setResourceProvider(CxResourceProvider provider)
Set the CxResourceProvider from which the needed resource will be obtained.
Specified by:
setResourceProvider in interface CxResourceUser