Kaynağa Gözat

Merge branch 'Ohne_Drag_and_Drop' of
https://git.tk.informatik.tu-darmstadt.de/carlos.garcia/praktikum-holons.git
into Ohne_Drag_and_Drop

Conflicts:
bin/ui/model/Model.class
bin/ui/view/GUI$3.class
bin/ui/view/GUI$4.class
bin/ui/view/GUI$5.class
bin/ui/view/GUI$6.class
bin/ui/view/GUI.class

Kevin Trometer 8 yıl önce
ebeveyn
işleme
a27a6e54de

BIN
bin/ui/model/Model.class


BIN
bin/ui/view/GUI$3.class


BIN
bin/ui/view/GUI$4.class


BIN
bin/ui/view/GUI$5.class


BIN
bin/ui/view/GUI$6.class


BIN
bin/ui/view/GUI.class


+ 12 - 0
src/ui/model/Model.java

@@ -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
 	 */

+ 0 - 1
src/ui/view/GUI.java

@@ -255,7 +255,6 @@ public class GUI implements CategoryListener {
 		panel.add(toolBar);
 		toolBar.add(comboBox);
 		comboBox.setModel(new DefaultComboBoxModel(new String[] { "Category", "Object", "Transformer", "Switch" }));
-
 		// Add Button
 		btnAdd.addActionListener(new ActionListener() {
 			public void actionPerformed(ActionEvent arg0) {