|
@@ -47,6 +47,18 @@ public class Model {
|
|
|
this.categories = categories;
|
|
|
}
|
|
|
|
|
|
+ public String toStringCat() {
|
|
|
+ String text = "";
|
|
|
+ for (int i = 0; i < categories.size(); i++) {
|
|
|
+ if (text == "") {
|
|
|
+ text = categories.get(i).getName();
|
|
|
+ } else {
|
|
|
+ text = text + ", " + categories.get(i).getName();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return text;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
* @return the objectsOnCanvas
|
|
|
*/
|