Commit f889fdd4 authored by Bart Mathijssen's avatar Bart Mathijssen Committed by Jeffrey Schiller

Use PROPERTY_TYPE_TEXTAREA instead of PROPERTY_TYPE_STRING

parent 7487f28f
......@@ -39,7 +39,7 @@ public class FeatureCollection extends MapFeatureContainerBase implements MapFea
}
@SuppressWarnings("squid:S00100")
@DesignerProperty
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_TEXTAREA)
@SimpleProperty(description = "Loads a collection of features from the given string. If the " +
"string is not valid GeoJSON, the ErrorLoadingFeatureCollection error will be run with " +
"url = <string>.")
......
......@@ -356,7 +356,7 @@ private void setLabelMargins(boolean hasMargins) {
*
* @param text new caption for label
*/
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_STRING,
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_TEXTAREA,
defaultValue = "")
@SimpleProperty
public void Text(String text) {
......
......@@ -140,7 +140,7 @@ public class LineString extends MapFeatureBase implements MapLineString {
*
* @param points String containing a sequence of points for the LineString.
*/
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_STRING)
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_TEXTAREA)
@SimpleProperty
public void PointsFromString(String points) {
final String functionName = "PointsFromString";
......
......@@ -220,7 +220,7 @@ public class ListPicker extends Picker implements ActivityResultListener, Delete
* @param itemstring - a string containing a comma-separated list of the
* strings to be picked from
*/
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_STRING,
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_TEXTAREA,
defaultValue = "")
// TODO(sharon): it might be nice to have a list editorType where the developer
// could directly enter a list of strings (e.g. one per row) and we could
......
......@@ -244,7 +244,7 @@ public final class ListView extends AndroidViewComponent implements AdapterView.
* Specifies the text elements of the ListView.
* @param itemstring a string containing a comma-separated list of the strings to be picked from
*/
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_STRING, defaultValue = "")
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_TEXTAREA, defaultValue = "")
@SimpleProperty(description="The TextView elements specified as a string with the " +
"items separated by commas " +
"such as: Cheese,Fruit,Bacon,Radish. Each word before the comma will be an element in the " +
......
......@@ -159,7 +159,7 @@ public class Polygon extends PolygonBase implements MapPolygon {
}
@SuppressWarnings("squid:S00100")
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_STRING)
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_TEXTAREA)
@SimpleProperty(description = "Constructs a polygon from the given list of coordinates.")
public void PointsFromString(String pointString) {
if (TextUtils.isEmpty(pointString)) {
......@@ -233,7 +233,7 @@ public class Polygon extends PolygonBase implements MapPolygon {
}
@SuppressWarnings("squid:S00100")
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_STRING)
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_TEXTAREA)
@SimpleProperty(description = "Constructs holes in a polygon from a given list of coordinates per hole.")
public void HolePointsFromString(String pointString) {
if (TextUtils.isEmpty(pointString)) {
......
......@@ -147,7 +147,7 @@ public final class Spinner extends AndroidViewComponent implements OnItemSelecte
/**
* ElementsFromString property setter method
*/
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_STRING, defaultValue = "")
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_TEXTAREA, defaultValue = "")
@SimpleProperty(description = "sets the Spinner list to the elements passed in the " +
"comma-separated string", category = PropertyCategory.BEHAVIOR)
public void ElementsFromString(String itemstring){
......
......@@ -405,7 +405,7 @@ public abstract class TextBoxBase extends AndroidViewComponent
*
* @param text new text in text box
*/
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_STRING,
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_TEXTAREA,
defaultValue = "")
@SimpleProperty(
// This kind of breaks the appearance/behavior dichotomy
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment