|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.dat.cx.CxComponent | +--com.dat.cx.CxVar
CxType provides semantics for a variable (var). A var provides both definition and instance. When a child of another var or of a type package it provides just definition. When child of a composite component it provides both definition and data.
Field Summary | |
static java.lang.String |
CHAR_CONFIG_SETTING
|
static java.lang.String |
CONFIG_DISABLED
|
static java.lang.String |
CONFIG_ENABLED
|
static java.lang.String |
CONFIG_UNDEFINED
|
static java.lang.String |
TAG_CONFIG
|
static java.lang.String |
TAG_PROPERTY
|
static java.lang.String |
TYPE_CONFIG
|
static java.lang.String |
TYPE_PROPERTY
|
Fields inherited from class com.dat.cx.CxComponent |
compactDisplay, noHatDisplay, standardDisplay |
Constructor Summary | |
CxVar()
Default contstuctor |
|
CxVar(java.lang.String name,
int contentType)
Constructor |
Method Summary | |
void |
docReceived(CxEvent evt)
|
XSet |
export(XSet doc,
CxProject project)
Export the definition of this type. |
boolean |
exportChildren()
|
int |
getContentConstraint()
Get the content constraint |
CxContentConstraint |
getContentConstraintProperty()
Get the content constraint property |
int |
getContentType()
Get the content of this type |
CxContentType |
getContentTypeProperty()
Get the content type property |
int |
getDbType()
Returns the underlying type of the CxVar as one of the java.sql.Types type. |
com.dat.cx.studio.CxCompDisplay |
getDisplay()
Get the display peer for this type. |
com.dat.cx.studio.CxInternalFrame |
getEditFrame(com.dat.cx.studio.CxStudio studio)
Get at edit frame for editing this component. |
java.lang.String |
getIcon()
Get the icon file name for this component |
boolean |
getIdentity()
Get the or identity indicator |
boolean |
getOrEnabled()
Get the or enabled indicator |
XSet |
getSchema()
Returns an XML representation of the variable and it's elements. |
int |
getXmlType()
Get the xml type of this component |
boolean |
hasOverride()
Determine if the inherited component has an override. |
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 type from another type. |
boolean |
isVar()
Determines if the component is a var |
boolean |
isXmlPrimative()
Determines if the component is of an XML primative type (ie content type String, Integer etc.) |
boolean |
isXmlString()
Determines if the component is of an XML String type |
void |
propertyChange(java.beans.PropertyChangeEvent event)
|
void |
setContentConstraint(int contentConstraint)
Set the content constraint of the type reference. |
void |
setContentType(int contentType)
Set the content type of the type. |
void |
setIdentity(boolean identity)
|
void |
setOrEnabled(boolean orEnabled)
Set the or enabled indicator. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String TYPE_CONFIG
public static final java.lang.String TYPE_PROPERTY
public static final java.lang.String TAG_CONFIG
public static final java.lang.String TAG_PROPERTY
public static final java.lang.String CHAR_CONFIG_SETTING
public static final java.lang.String CONFIG_ENABLED
public static final java.lang.String CONFIG_DISABLED
public static final java.lang.String CONFIG_UNDEFINED
Constructor Detail |
public CxVar()
public CxVar(java.lang.String name, int contentType)
name
- the name of the typetype
- the content type for the typeMethod Detail |
public boolean isVar()
isVar
in class CxComponent
public boolean isXmlPrimative()
isXmlPrimative
in class CxComponent
public boolean isXmlString()
isXmlString
in class CxComponent
public int getXmlType()
getXmlType
in class CxComponent
public com.dat.cx.studio.CxInternalFrame getEditFrame(com.dat.cx.studio.CxStudio studio)
getEditFrame
in class CxComponent
public com.dat.cx.studio.CxCompDisplay getDisplay()
getDisplay
in class CxComponent
public void importTemplate(CxComponent from, boolean copy, boolean inherit, boolean inverse)
importTemplate
in class CxComponent
from
- the property from which to import a definitioncopy
- indicate that this is a copy 'vs' extendsinherit
- indicate that the definition is inherited as part of an extendsinverse
- (not used)public boolean getIdentity()
public void setIdentity(boolean identity)
public java.util.Vector importSpec(XSet spec)
importSpec
in class CxComponent
spec
- the xml element containing the specificationpublic XSet export(XSet doc, CxProject project)
export
in class CxComponent
doc
- the XSet docuement being constructed. The definition is added to this document.public boolean exportChildren()
public boolean hasOverride()
hasOverride
in class CxComponent
public CxContentType getContentTypeProperty()
public int getContentType()
public void setContentType(int contentType)
type
- the new content typepublic CxContentConstraint getContentConstraintProperty()
public int getContentConstraint()
public void setContentConstraint(int contentConstraint)
contentConstraint
- the new content constraintpublic boolean getOrEnabled()
public void setOrEnabled(boolean orEnabled)
orEnabled
- true if or is enabled, otherwise false.public java.lang.String getIcon()
getIcon
in class CxComponent
public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange
in interface java.beans.PropertyChangeListener
public XSet getSchema()
public void docReceived(CxEvent evt)
public int getDbType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |