You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've a problem trying to set a String value in polygons, circles and Objects extending MVCObject.
I'd like to use
polygon.set("myVar", "myValue"); or polygon.set("myVar", myNumber);
and
String myString = polygon.get("myVar); or Number myNumber = polygon.get("myVar");
but I only can use
polygon.set("myVar", otherPolygon);
and
Polygon p = polygon.get("myVar");
this has no sense for me because I'd generate a hyerarchy of nested polygons but I cannot set a simple variable in none of them.
I tried to use
polygon.setValues(HashMap<String, String> map),
but the getter method doesn't get any value.
The text was updated successfully, but these errors were encountered:
The code at the link below fix the issue: #188 (comment)
Is it possible ti merge the code in the master?
This is the main side of the comment:
The signature of set(String, T) should probably be changed to set(String, Object)
The signature of T get(String) should maybe be something like public final native U get(String), but I'll admit my grasp of generics is not 100% and I'm not so confident on this one.
setValues(HashMap<String,String>) should probably become setValues(Map<String,?>).
Hi, I've a problem trying to set a String value in polygons, circles and Objects extending MVCObject.
I'd like to use
polygon.set("myVar", "myValue"); or polygon.set("myVar", myNumber);
and
String myString = polygon.get("myVar); or Number myNumber = polygon.get("myVar");
but I only can use
polygon.set("myVar", otherPolygon);
and
Polygon p = polygon.get("myVar");
this has no sense for me because I'd generate a hyerarchy of nested polygons but I cannot set a simple variable in none of them.
I tried to use
polygon.setValues(HashMap<String, String> map),
but the getter method doesn't get any value.
The text was updated successfully, but these errors were encountered: