|
|||||||||
| 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.CxProperty
CxProperty provides semantics for a property component. A property hold a configuration value which is used by a parent component.
| Fields inherited from class com.dat.cx.CxComponent |
compactDisplay, noHatDisplay, standardDisplay |
| Constructor Summary | |
CxProperty()
Default contstuctor |
|
CxProperty(java.lang.String name,
java.lang.String value)
Constructor |
|
CxProperty(java.lang.String name,
java.lang.String value,
boolean significant)
Constructor |
|
CxProperty(java.lang.String name,
java.lang.String value,
boolean significant,
boolean editable)
Constructor |
|
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a property change listener to the list of listeners. |
XSet |
export(XSet doc,
CxProject project)
Export the definition of thisproperty. |
void |
exportInfo(com.dat.cx.exec.CxExecComponentInfo info)
Export the definition of the component into a java serializable object. |
java.lang.String |
getCompiledValue()
Get the value of the property. |
com.dat.cx.studio.CxCompDisplay |
getDisplay()
Get the display peer for this property. |
com.dat.cx.studio.CxInternalFrame |
getEditFrame(com.dat.cx.studio.CxStudio studio)
Get at edit frame for editing this component. |
java.lang.String |
getEditorClassName()
Get the property editor class name |
java.lang.String |
getIcon()
Get the icon file name for this component |
java.lang.String |
getLiteralValue()
Get the value of the property. |
com.dat.cx.studio.CxPropertyEditor |
getPropertyEditor()
Get the property editor for this property. |
int |
getXmlType()
Get the xml type of this component |
void |
importInfo(com.dat.cx.exec.CxExecComponentInfo info)
Import the definition of the component from a java serializable object. |
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 property from another property. |
boolean |
isEditable()
Test if the property is editable, |
boolean |
isProperty()
Determines if the component is a property |
boolean |
isSignificant()
Test if the property is significant, |
com.dat.cx.exec.CxExecComponentInfo |
makeInfo()
Make an empty serializable object to hold the components definition. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a property change listener to the list of listeners. |
void |
setEditorClassName(java.lang.String editorClassName)
Set the property editor class name |
void |
setIsEditable(boolean editable)
Set the editable property |
void |
setSignificant(boolean significant)
Set the significant |
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CxProperty()
public CxProperty(java.lang.String name,
java.lang.String value)
name - the name of the propertyvalue - the intial value for the property
public CxProperty(java.lang.String name,
java.lang.String value,
boolean significant)
name - the name of the propertyvalue - the intial value for the propertysignificant - indicates that the property is significant and should show up on the
component use rendering.
public CxProperty(java.lang.String name,
java.lang.String value,
boolean significant,
boolean editable)
name - the name of the propertyvalue - the intial value for the propertysignificant - indicates that the property is significant and should show up on the
component use rendering.editable - indicates that the property is editable;| Method Detail |
public boolean isProperty()
isProperty in class CxComponentpublic com.dat.cx.studio.CxInternalFrame getEditFrame(com.dat.cx.studio.CxStudio studio)
getEditFrame in class CxComponentpublic com.dat.cx.studio.CxCompDisplay getDisplay()
getDisplay in class CxComponentpublic com.dat.cx.studio.CxPropertyEditor getPropertyEditor()
public void importTemplate(CxComponent from,
boolean copy,
boolean inherit,
boolean inverse)
importTemplate in class CxComponentfrom - 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 CxComponentspec - the xml element containing the specification
public XSet export(XSet doc,
CxProject project)
export in class CxComponentdoc - the XSet docuement being constructed. The definition is added to this document.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - the property change listener to addpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - the property change listener to removepublic java.lang.String getLiteralValue()
public java.lang.String getCompiledValue()
public void setValueNoUndo(java.lang.String value)
value - the new property valuepublic void setValue(java.lang.String value)
value - the new property valuepublic void setSignificant(boolean significant)
significant - the new significant state of the the component.public boolean isSignificant()
public java.lang.String getEditorClassName()
public void setEditorClassName(java.lang.String editorClassName)
editorClassName - the new property editor class namepublic java.lang.String getIcon()
getIcon in class CxComponentpublic int getXmlType()
CxComponentgetXmlType in class CxComponentcom.dat.cx.CxComponentpublic boolean isEditable()
public void setIsEditable(boolean editable)
editable - the new editable state of the the component.public com.dat.cx.exec.CxExecComponentInfo makeInfo()
CxComponentmakeInfo in class CxComponentcom.dat.cx.CxComponentpublic void exportInfo(com.dat.cx.exec.CxExecComponentInfo info)
CxComponentexportInfo in class CxComponentcom.dat.cx.CxComponentinfo - the serializable object in which the definition of this component is to be stored.public void importInfo(com.dat.cx.exec.CxExecComponentInfo info)
CxComponentimportInfo in class CxComponentcom.dat.cx.CxComponentinfo - the serializable object in which the definition of this component is stored.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||