AI2 Component  (Version nb184)
com.google.appinventor.components.annotations.DesignerProperty Interface Reference

Public Member Functions

String editorType () default PropertyTypeConstants.PROPERTY_TYPE_TEXT
 
String defaultValue () default ""
 
boolean alwaysSend () default false
 
String[] editorArgs () default
 

Detailed Description

Annotation to mark properties to be visible in the ODE visual designer.

Only the setter method of the property must be marked with this annotation.

Definition at line 25 of file DesignerProperty.java.

Member Function Documentation

◆ alwaysSend()

boolean com.google.appinventor.components.annotations.DesignerProperty.alwaysSend ( )

If true, always send the property even if it is the default value. This can be used for backward compatibility with older companions when the default changes from one value to another.

Returns
true if the property should always been sent in code generation, false if the default value needn't be sent.

◆ defaultValue()

String com.google.appinventor.components.annotations.DesignerProperty.defaultValue ( )

Default value of property.

Returns
default property value

◆ editorArgs()

String [] com.google.appinventor.components.annotations.DesignerProperty.editorArgs ( )

Arguments passed to editor class.

Returns
editor arguments

Definition at line 55 of file DesignerProperty.java.

◆ editorType()

String com.google.appinventor.components.annotations.DesignerProperty.editorType ( )

Determines the property editor used in the designer.

Returns
property type

The documentation for this interface was generated from the following file: