Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
f889fdd4
Commit
f889fdd4
authored
Nov 26, 2019
by
Bart Mathijssen
Committed by
Jeffrey Schiller
Dec 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use PROPERTY_TYPE_TEXTAREA instead of PROPERTY_TYPE_STRING
parent
7487f28f
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
9 deletions
+9
-9
appinventor/components/src/com/google/appinventor/components/runtime/FeatureCollection.java
...gle/appinventor/components/runtime/FeatureCollection.java
+1
-1
appinventor/components/src/com/google/appinventor/components/runtime/Label.java
.../src/com/google/appinventor/components/runtime/Label.java
+1
-1
appinventor/components/src/com/google/appinventor/components/runtime/LineString.java
...com/google/appinventor/components/runtime/LineString.java
+1
-1
appinventor/components/src/com/google/appinventor/components/runtime/ListPicker.java
...com/google/appinventor/components/runtime/ListPicker.java
+1
-1
appinventor/components/src/com/google/appinventor/components/runtime/ListView.java
...c/com/google/appinventor/components/runtime/ListView.java
+1
-1
appinventor/components/src/com/google/appinventor/components/runtime/Polygon.java
...rc/com/google/appinventor/components/runtime/Polygon.java
+2
-2
appinventor/components/src/com/google/appinventor/components/runtime/Spinner.java
...rc/com/google/appinventor/components/runtime/Spinner.java
+1
-1
appinventor/components/src/com/google/appinventor/components/runtime/TextBoxBase.java
...om/google/appinventor/components/runtime/TextBoxBase.java
+1
-1
No files found.
appinventor/components/src/com/google/appinventor/components/runtime/FeatureCollection.java
View file @
f889fdd4
...
@@ -39,7 +39,7 @@ public class FeatureCollection extends MapFeatureContainerBase implements MapFea
...
@@ -39,7 +39,7 @@ public class FeatureCollection extends MapFeatureContainerBase implements MapFea
}
}
@SuppressWarnings
(
"squid:S00100"
)
@SuppressWarnings
(
"squid:S00100"
)
@DesignerProperty
@DesignerProperty
(
editorType
=
PropertyTypeConstants
.
PROPERTY_TYPE_TEXTAREA
)
@SimpleProperty
(
description
=
"Loads a collection of features from the given string. If the "
+
@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 "
+
"string is not valid GeoJSON, the ErrorLoadingFeatureCollection error will be run with "
+
"url = <string>."
)
"url = <string>."
)
...
...
appinventor/components/src/com/google/appinventor/components/runtime/Label.java
View file @
f889fdd4
...
@@ -356,7 +356,7 @@ private void setLabelMargins(boolean hasMargins) {
...
@@ -356,7 +356,7 @@ private void setLabelMargins(boolean hasMargins) {
*
*
* @param text new caption for label
* @param text new caption for label
*/
*/
@DesignerProperty
(
editorType
=
PropertyTypeConstants
.
PROPERTY_TYPE_
STRING
,
@DesignerProperty
(
editorType
=
PropertyTypeConstants
.
PROPERTY_TYPE_
TEXTAREA
,
defaultValue
=
""
)
defaultValue
=
""
)
@SimpleProperty
@SimpleProperty
public
void
Text
(
String
text
)
{
public
void
Text
(
String
text
)
{
...
...
appinventor/components/src/com/google/appinventor/components/runtime/LineString.java
View file @
f889fdd4
...
@@ -140,7 +140,7 @@ public class LineString extends MapFeatureBase implements MapLineString {
...
@@ -140,7 +140,7 @@ public class LineString extends MapFeatureBase implements MapLineString {
*
*
* @param points String containing a sequence of points for the LineString.
* @param points String containing a sequence of points for the LineString.
*/
*/
@DesignerProperty
(
editorType
=
PropertyTypeConstants
.
PROPERTY_TYPE_
STRING
)
@DesignerProperty
(
editorType
=
PropertyTypeConstants
.
PROPERTY_TYPE_
TEXTAREA
)
@SimpleProperty
@SimpleProperty
public
void
PointsFromString
(
String
points
)
{
public
void
PointsFromString
(
String
points
)
{
final
String
functionName
=
"PointsFromString"
;
final
String
functionName
=
"PointsFromString"
;
...
...
appinventor/components/src/com/google/appinventor/components/runtime/ListPicker.java
View file @
f889fdd4
...
@@ -220,7 +220,7 @@ public class ListPicker extends Picker implements ActivityResultListener, Delete
...
@@ -220,7 +220,7 @@ public class ListPicker extends Picker implements ActivityResultListener, Delete
* @param itemstring - a string containing a comma-separated list of the
* @param itemstring - a string containing a comma-separated list of the
* strings to be picked from
* strings to be picked from
*/
*/
@DesignerProperty
(
editorType
=
PropertyTypeConstants
.
PROPERTY_TYPE_
STRING
,
@DesignerProperty
(
editorType
=
PropertyTypeConstants
.
PROPERTY_TYPE_
TEXTAREA
,
defaultValue
=
""
)
defaultValue
=
""
)
// TODO(sharon): it might be nice to have a list editorType where the developer
// 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
// could directly enter a list of strings (e.g. one per row) and we could
...
...
appinventor/components/src/com/google/appinventor/components/runtime/ListView.java
View file @
f889fdd4
...
@@ -244,7 +244,7 @@ public final class ListView extends AndroidViewComponent implements AdapterView.
...
@@ -244,7 +244,7 @@ public final class ListView extends AndroidViewComponent implements AdapterView.
* Specifies the text elements of the ListView.
* Specifies the text elements of the ListView.
* @param itemstring a string containing a comma-separated list of the strings to be picked from
* @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 "
+
@SimpleProperty
(
description
=
"The TextView elements specified as a string with the "
+
"items separated by commas "
+
"items separated by commas "
+
"such as: Cheese,Fruit,Bacon,Radish. Each word before the comma will be an element in the "
+
"such as: Cheese,Fruit,Bacon,Radish. Each word before the comma will be an element in the "
+
...
...
appinventor/components/src/com/google/appinventor/components/runtime/Polygon.java
View file @
f889fdd4
...
@@ -159,7 +159,7 @@ public class Polygon extends PolygonBase implements MapPolygon {
...
@@ -159,7 +159,7 @@ public class Polygon extends PolygonBase implements MapPolygon {
}
}
@SuppressWarnings
(
"squid:S00100"
)
@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."
)
@SimpleProperty
(
description
=
"Constructs a polygon from the given list of coordinates."
)
public
void
PointsFromString
(
String
pointString
)
{
public
void
PointsFromString
(
String
pointString
)
{
if
(
TextUtils
.
isEmpty
(
pointString
))
{
if
(
TextUtils
.
isEmpty
(
pointString
))
{
...
@@ -233,7 +233,7 @@ public class Polygon extends PolygonBase implements MapPolygon {
...
@@ -233,7 +233,7 @@ public class Polygon extends PolygonBase implements MapPolygon {
}
}
@SuppressWarnings
(
"squid:S00100"
)
@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."
)
@SimpleProperty
(
description
=
"Constructs holes in a polygon from a given list of coordinates per hole."
)
public
void
HolePointsFromString
(
String
pointString
)
{
public
void
HolePointsFromString
(
String
pointString
)
{
if
(
TextUtils
.
isEmpty
(
pointString
))
{
if
(
TextUtils
.
isEmpty
(
pointString
))
{
...
...
appinventor/components/src/com/google/appinventor/components/runtime/Spinner.java
View file @
f889fdd4
...
@@ -147,7 +147,7 @@ public final class Spinner extends AndroidViewComponent implements OnItemSelecte
...
@@ -147,7 +147,7 @@ public final class Spinner extends AndroidViewComponent implements OnItemSelecte
/**
/**
* ElementsFromString property setter method
* 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 "
+
@SimpleProperty
(
description
=
"sets the Spinner list to the elements passed in the "
+
"comma-separated string"
,
category
=
PropertyCategory
.
BEHAVIOR
)
"comma-separated string"
,
category
=
PropertyCategory
.
BEHAVIOR
)
public
void
ElementsFromString
(
String
itemstring
){
public
void
ElementsFromString
(
String
itemstring
){
...
...
appinventor/components/src/com/google/appinventor/components/runtime/TextBoxBase.java
View file @
f889fdd4
...
@@ -405,7 +405,7 @@ public abstract class TextBoxBase extends AndroidViewComponent
...
@@ -405,7 +405,7 @@ public abstract class TextBoxBase extends AndroidViewComponent
*
*
* @param text new text in text box
* @param text new text in text box
*/
*/
@DesignerProperty
(
editorType
=
PropertyTypeConstants
.
PROPERTY_TYPE_
STRING
,
@DesignerProperty
(
editorType
=
PropertyTypeConstants
.
PROPERTY_TYPE_
TEXTAREA
,
defaultValue
=
""
)
defaultValue
=
""
)
@SimpleProperty
(
@SimpleProperty
(
// This kind of breaks the appearance/behavior dichotomy
// This kind of breaks the appearance/behavior dichotomy
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment