/**
 * 
 */
package authoring.panel;

import engine.Entity;
import javafx.beans.property.SimpleStringProperty;

/**
 * @author Elliott Bolzan
 *
 */
public class EntityWrapper {
	
	private SimpleStringProperty name;
	private SimpleStringProperty imagePath;
	private Entity entity;

	/**
	 * PROERTIES ARE SET BUT NOT ENTITIES
	 */
	public EntityWrapper(Entity entity) {
		this.entity = entity;
		name = new SimpleStringProperty(entity.getName());
		imagePath = new SimpleStringProperty(entity.getImagePath());
	}
	
	public SimpleStringProperty getName() {
		return name;
	}

	public void setName(SimpleStringProperty name) {
		this.name = name;
		//entity.setName(name.get());
	}

	public SimpleStringProperty getImagePath() {
		return imagePath;
	}

	public void setImagePath(SimpleStringProperty imagePath) {
		this.imagePath = imagePath;
		//entity.setImagePath(imagePath.get());
	}

	public Entity getEntity() {
		return entity;
	}

	public void setEntity(Entity entity) {
		this.entity = entity;
	}

}

@@ -171,17 +171,16 @@
 apper %7B%0A
-%09
 %0A%09privat
@@ -287,42 +287,8 @@
 %09 * 
-PROERTIES ARE SET BUT NOT ENTITIES
 %0A%09 *
@@ -472,12 +472,195 @@
 ));%0A
+%09%09name.addListener((observable, oldValue, newValue) -%3E this.entity.setName(newValue));%0A%09%09imagePath.addListener((observable, oldValue, newValue) -%3E this.entity.setImagePath(newValue));%0A
 %09%7D%0A
-%09
 %0A%09pu
@@ -728,417 +728,108 @@
 lic 
-void setName(SimpleStringProperty name) %7B%0A%09%09this.name = name;%0A%09%09//entity.setName(name.get());%0A%09%7D%0A%0A%09public SimpleStringProperty getImagePath() %7B%0A%09%09return imagePath;%0A%09%7D%0A%0A%09public void setImagePath(SimpleStringProperty imagePath) %7B%0A%09%09this.imagePath = imagePath;%0A%09%09//entity.setImagePath(imagePath.get());%0A%09%7D%0A%0A%09public Entity getEntity() %7B%0A%09%09return entity;%0A%09%7D%0A%0A%09public void setEntity(Entity entity) %7B%0A%09%09this.entity =
+SimpleStringProperty getImagePath() %7B%0A%09%09return imagePath;%0A%09%7D%0A%09%0A%09public Entity getEntity() %7B%0A%09%09return
  ent

Update the Entity when it's Wrapper is updated.