|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.generic.description.DescriptionObjectImpl
org.openbp.common.generic.description.DisplayObjectImpl
org.openbp.common.generic.propertybrowser.PropertyDescriptor
public class PropertyDescriptor
Property description for the standard property browser. The 'name' member of the super class specifies the name of the property. If no getter/setter methods are specified, the member name will be used to generate the access method names (getName/isName and setName). The 'group' specification may be used to group properties in a tree table-like representation.
| Field Summary |
|---|
| Fields inherited from interface org.openbp.common.generic.Copyable |
|---|
COPY_DEEP, COPY_FIRST_LEVEL, COPY_SHALLOW |
| Constructor Summary | |
|---|---|
PropertyDescriptor()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
copyFrom(java.lang.Object source,
int copyMode)
Copies the values of the source object to this object. |
protected void |
copyNonNull(PropertyDescriptor source)
Copies all attributes of a property descriptor that are not yet present in this descriptor. |
CollectionDescriptor |
getCollectionDescriptor()
Gets the collection descriptor. |
ObjectDescriptor |
getComplexProperty()
Gets the object descriptor describing a complex type property. |
java.lang.String |
getComplexPropertyType()
Gets the type of the complex type property value. |
java.lang.Class |
getEditorClass()
Gets the editor class. |
java.lang.String |
getEditorClassName()
Gets the editor class. |
java.lang.Object |
getEditorParam()
Gets the optional editor parameters. |
java.lang.String |
getEditorParamString()
Gets the optional editor parameter string. |
java.lang.String |
getGroup()
Gets the group specification or null. |
java.lang.Class |
getValidatorClass()
Gets the validator class. |
java.lang.String |
getValidatorClassName()
Gets the validator class name. |
boolean |
hasReadOnly()
Determines if the flag if the property is read only is set. |
boolean |
hasRequired()
Determines if the flag if the property is required is set. |
boolean |
isExpanded()
Gets the flag if the property is expanded, i\. e\. visible in the property tree by default. |
boolean |
isReadOnly()
Gets the flag if the property is read only. |
boolean |
isRequired()
Gets the flag if the property is required. |
void |
setCollectionDescriptor(CollectionDescriptor collectionDescriptor)
Sets the collection descriptor. |
void |
setComplexProperty(ObjectDescriptor complexProperty)
Sets the object descriptor describing a complex type property. |
void |
setComplexPropertyType(java.lang.String complexPropertyType)
Sets the type of the complex type property value. |
void |
setEditorClass(java.lang.Class editorClass)
Sets the editor class. |
void |
setEditorClassName(java.lang.String editorClassName)
Sets the editor class. |
void |
setEditorParam(java.lang.Object editorParam)
Sets the optional editor parameters. |
void |
setEditorParamString(java.lang.String editorParamString)
Sets the optional editor parameter string. |
void |
setExpanded(boolean expanded)
Sets the flag if the property is expanded, i\. e\. visible in the property tree by default. |
void |
setGroup(java.lang.String group)
Sets the group specification or null. |
void |
setReadOnly(boolean readOnly)
Sets the flag if the property is read only. |
void |
setRequired(boolean required)
Sets the flag if the property is required. |
void |
setValidatorClass(java.lang.Class validatorClass)
Sets the validator class. |
void |
setValidatorClassName(java.lang.String validatorClassName)
Sets the validator class name. |
| Methods inherited from class org.openbp.common.generic.description.DisplayObjectImpl |
|---|
getDisplayName, getDisplayText, setDisplayName |
| Methods inherited from class org.openbp.common.generic.description.DescriptionObjectImpl |
|---|
clone, compareTo, getDescription, getDescriptionEscape, getDescriptionText, getName, setDescription, setDescriptionEscape, setName, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openbp.common.generic.description.DescriptionObject |
|---|
clone, getDescription, getDescriptionText, getName, setDescription, setName |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public PropertyDescriptor()
| Method Detail |
|---|
public void copyFrom(java.lang.Object source,
int copyMode)
throws java.lang.CloneNotSupportedException
copyFrom in interface CopyablecopyFrom in class DisplayObjectImplsource - The source object. Must be of the same type as this object.copyMode - Determines if a deep copy, a first level copy or a shallow copy is to be
performed. See the constants of the org.openbp.common.generic.description.Copyable class.
java.lang.CloneNotSupportedException - If the cloning of one of the contained objects failedprotected void copyNonNull(PropertyDescriptor source)
source - Source descriptorpublic java.lang.String getGroup()
public void setGroup(java.lang.String group)
public boolean isRequired()
public boolean hasRequired()
public void setRequired(boolean required)
public boolean isReadOnly()
public boolean hasReadOnly()
public void setReadOnly(boolean readOnly)
public boolean isExpanded()
public void setExpanded(boolean expanded)
public java.lang.String getValidatorClassName()
public void setValidatorClassName(java.lang.String validatorClassName)
validatorClassName - Specifies a class that implements the PropertyValidator interfacepublic java.lang.String getEditorClassName()
public void setEditorClassName(java.lang.String editorClassName)
editorClassName - Specifies a class that implements the PropertyEditor interfacepublic java.lang.String getEditorParamString()
public void setEditorParamString(java.lang.String editorParamString)
public java.lang.Class getValidatorClass()
public void setValidatorClass(java.lang.Class validatorClass)
validatorClass - A class that implements the PropertyValidator interfacepublic java.lang.Class getEditorClass()
public void setEditorClass(java.lang.Class editorClass)
editorClass - A class that implements the PropertyEditor interfacepublic java.lang.Object getEditorParam()
public void setEditorParam(java.lang.Object editorParam)
public java.lang.String getComplexPropertyType()
public void setComplexPropertyType(java.lang.String complexPropertyType)
public ObjectDescriptor getComplexProperty()
public void setComplexProperty(ObjectDescriptor complexProperty)
public CollectionDescriptor getCollectionDescriptor()
public void setCollectionDescriptor(CollectionDescriptor collectionDescriptor)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||