@Documented
@Target(value=METHOD)
public @interface StudioProperty
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
caption |
java.lang.String |
category |
java.lang.String |
defaultValue |
java.lang.String |
description |
java.lang.String |
initialValue |
java.lang.String |
name |
java.lang.String[] |
options
Context dependent list of options for the component property.
|
boolean |
required |
PropertyType |
type |
java.lang.String |
typeParameter
Specifies name of the type parameter for the generic UI component or Facet that is provided by the property.
The actual class for the type parameter can be resolved for the following property types: PropertyType.JAVA_CLASS_NAME , PropertyType.ENTITY_CLASS , PropertyType.SCREEN_CLASS_NAME ,
PropertyType.DATACONTAINER_REF , PropertyType.COLLECTION_DATACONTAINER_REF , PropertyType.DATASOURCE_REF ,
PropertyType.COLLECTION_DATASOURCE_REF , PropertyType.COMPONENT_REF |
java.lang.String |
xmlAttribute |
java.lang.String |
xmlElement |
public abstract PropertyType type
public abstract java.lang.String caption
public abstract java.lang.String description
public abstract java.lang.String category
public abstract boolean required
public abstract java.lang.String defaultValue
public abstract java.lang.String initialValue
public abstract java.lang.String[] options
PropertyType.ENUMERATION
: enumeration options.
PropertyType.OPTIONS
: non-strict list of possible options.
For the property types above: qualified name of the enum class can be specified
with the "@link " prefix as a single option.
In case it can't be inferred from method's parameter or return type. Example:
options = {"@link java.time.DayOfWeek"}
PropertyType.BEAN_REF
: list of the allowed Spring bean base classes.
PropertyType.COMPONENT_REF
: list of the allowed component base classes.
PropertyType.PROPERTY_PATH_REF
: list of the allowed types for the property.
Use registered Datatype
names for the datatype properties
or "to_one" and "to_many" for the association properties.public abstract java.lang.String xmlAttribute
public abstract java.lang.String typeParameter
PropertyType.JAVA_CLASS_NAME
, PropertyType.ENTITY_CLASS
, PropertyType.SCREEN_CLASS_NAME
,
PropertyType.DATACONTAINER_REF
, PropertyType.COLLECTION_DATACONTAINER_REF
, PropertyType.DATASOURCE_REF
,
PropertyType.COLLECTION_DATASOURCE_REF
, PropertyType.COMPONENT_REF