com.dat.cx
Class CxResource

java.lang.Object
  |
  +--com.dat.cx.CxComponent
        |
        +--com.dat.cx.CxCompositeComponent
              |
              +--com.dat.cx.CxLibraryComponent
                    |
                    +--com.dat.cx.CxResource
All Implemented Interfaces:
CxExtendsListener, CxResourceProvider, java.util.EventListener, com.d_a_t.expeval.ExpressionContext, java.beans.PropertyChangeListener

public abstract class CxResource
extends CxLibraryComponent
implements CxResourceProvider, java.beans.PropertyChangeListener

Todo load class definition for ResourceClass. Add property to hold definition.


Fields inherited from class com.dat.cx.CxComponent
compactDisplay, noHatDisplay, standardDisplay
 
Constructor Summary
CxResource()
           
 
Method Summary
 CxResourceSupplierProperty defineResourceSupplierProperty(java.lang.String name, java.lang.Class cls)
          Define a resource provider property.
 CxResourceSupplierProperty defineResourceSupplierProperty(java.lang.String name, java.lang.Class cls, boolean significant)
          Define a resource provider property.
abstract  java.lang.String getDriverTypeName()
           
abstract  java.lang.String getIcon()
          Get the icon file name for this component
 java.lang.Object getResource()
          Returns the an implementation of a resource.
abstract  java.lang.Class getResourceClass()
          Returns the Class of an interface that specifies the a resource.
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
 
Methods inherited from class com.dat.cx.CxLibraryComponent
definePin, definePort, defineProperty, defineProperty, defineResourceProviderProperty, defineResourceProviderProperty, exportChildren, isLibraryComponent, resolveField
 
Methods inherited from class com.dat.cx.CxCompositeComponent
exportInfo, getCatchPort, getErrorPort, importInfo, isCompositeComponent, makeInfo, setIcon
 
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, export, exportContent, findPath, findPath, getBaseType, getChild, getChild, getChildren, getClassClause, getConfig, getConfigValue, getConfigValue, getDataPath, getDataPort, getDisplay, 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, importSpec, importTemplate, incrUnresolved, init, instantiateChildComponent, instantiateChildComponentAt, isActive, isAttribute, isAttributeInstance, isBaseProperty, isConfiguration, isContentComponent, isDataMgr, isDataPort, isErrorCatchPort, isExtendable, isExtended, isInherited, isInterface, isMiniPort, isName, isNative, isPackage, isPalette, isPin, isPort, isPortMgr, isProperty, isRoot, isSubPortOf, isTextInstance, isTypePackage, isVar, isVarInstance, isVarSet, isWire, isXmlPort, isXmlPrimative, isXmlString, omitExport, removeChild, removeChild, removeChildNoUndo, removeComponentChangeListener, removeComponentChildrenListener, removeExtendsListener, renameSortedChild, resolveClass, resolveConstructor, 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

CxResource

public CxResource()
Method Detail

defineResourceSupplierProperty

public CxResourceSupplierProperty defineResourceSupplierProperty(java.lang.String name,
                                                                 java.lang.Class cls)
Define a resource provider property.
Parameters:
class - the property name
class - the CxResource subclass needed to enable this resource
Returns:
the created property

defineResourceSupplierProperty

public CxResourceSupplierProperty defineResourceSupplierProperty(java.lang.String name,
                                                                 java.lang.Class cls,
                                                                 boolean significant)
Define a resource provider property.
Parameters:
class - the property name
class - the CxResource subclass needed to enable this resource
significant - indicates that a property is significant and should be displayed on the component instance rendering when viewed within the Studio.
Returns:
the created property

getDriverTypeName

public abstract java.lang.String getDriverTypeName()

getIcon

public abstract java.lang.String getIcon()
Description copied from class: CxComponent
Get the icon file name for this component
Overrides:
getIcon in class CxCompositeComponent
Following copied from class: com.dat.cx.CxComponent
Returns:
the file name for the icon

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

getResource

public java.lang.Object getResource()
Returns the an implementation of a resource. The resource must implement the resource contract specified by the getResourceClass method.
Specified by:
getResource in interface CxResourceProvider

getResourceClass

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