|
|||||||||
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.CxAttribute
CxAttribute provides semantics for an XML attribute component.
Fields inherited from class com.dat.cx.CxComponent |
compactDisplay, noHatDisplay, standardDisplay |
Constructor Summary | |
CxAttribute()
Default contstuctor |
|
CxAttribute(java.lang.String name,
int type,
java.lang.String list,
int constraint,
java.lang.String constraintValue)
Constructor |
Method Summary | |
XSet |
export(XSet doc,
CxProject project)
Export the definition of this attribute. |
boolean |
exportChildren()
|
int |
getAttributeConstraint()
Get the constraint of this attribute |
CxProperty |
getAttributeConstraintProperty()
Get the constraint property of this attribute |
int |
getAttributeType()
Get the type of this attribute |
CxAttributeType |
getAttributeTypeProperty()
Get the type property of this attribute |
java.lang.String |
getConstraintValue()
Get the constraint value for fixed and default constraints |
CxProperty |
getConstraintValueProperty()
|
com.dat.cx.studio.CxCompDisplay |
getDisplay()
Get the display peer for this attribute. |
com.dat.cx.studio.CxInternalFrame |
getEditFrame(com.dat.cx.studio.CxStudio studio)
Get at edit frame for editing this component. |
CxProperty |
getEnumerationProperty()
|
java.lang.String |
getIcon()
Get the icon file name for this component |
java.lang.String |
getList()
Get the list for list attributes |
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 |
isAttribute()
Determines if the component is an attribute |
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 |
setAttributeConstraint(int constraint)
Set the constraint of the attribute. |
void |
setAttributeType(int attributeType)
Set the type of the attribute. |
void |
setConstraintValue(java.lang.String constraintValue)
Set the constraint value for fixed and default constraints |
void |
setList(java.lang.String list)
Set the list of list attributes. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CxAttribute()
public CxAttribute(java.lang.String name, int type, java.lang.String list, int constraint, java.lang.String constraintValue)
name
- the name of the typetype
- the content type for the typeMethod Detail |
public boolean isAttribute()
isAttribute
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 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 hasOverride()
CxComponent
hasOverride
in class CxComponent
com.dat.cx.CxComponent
public boolean exportChildren()
public CxAttributeType getAttributeTypeProperty()
public int getAttributeType()
public void setAttributeType(int attributeType)
type
- the new attribute typepublic java.lang.String getList()
public void setList(java.lang.String list)
list
- the new listpublic CxProperty getEnumerationProperty()
public CxProperty getAttributeConstraintProperty()
public int getAttributeConstraint()
public void setAttributeConstraint(int constraint)
type
- the new constraintpublic java.lang.String getConstraintValue()
public void setConstraintValue(java.lang.String constraintValue)
constraintValue
- the new constraint valuepublic CxProperty getConstraintValueProperty()
public java.lang.String getIcon()
getIcon
in class CxComponent
public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange
in interface java.beans.PropertyChangeListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |