package library;

import java.io.IOException;

import javafx.fxml.FXMLLoader;
import javafx.scene.layout.AnchorPane;

public class LibraryEntry extends AnchorPane {

    public LibraryEntry() {
	FXMLLoader loader = new FXMLLoader(getClass().getResource("LibraryEntry.fxml"));
	loader.setRoot(this);
	loader.setController(this);

	try {
	    loader.load();
	} catch (IOException e) {
	    e.printStackTrace();
	}
    }

}

@@ -40,24 +40,109 @@
 ception;%0D%0A%0D%0A
+import entity.Creature;%0D%0Aimport javafx.event.ActionEvent;%0D%0Aimport javafx.fxml.FXML;%0D%0A
 import javaf
@@ -161,16 +161,16 @@
 oader;%0D%0A
-
 import j
@@ -200,16 +200,48 @@
 orPane;%0D
+%0Aimport javafx.scene.text.Text;%0D
 %0A%0D%0Apubli
@@ -294,30 +294,150 @@
    p
-ublic LibraryEntry() %7B
+rivate Creature creature;%0D%0A%0D%0A    @FXML%0D%0A    private Text nameText;%0D%0A%0D%0A    public LibraryEntry(Creature creature) %7B%0D%0A%09this.creature = creature;
 %0D%0A%09F
@@ -657,16 +657,16 @@
 ace();%0D%0A
-
 %09%7D%0D%0A    
@@ -670,11 +670,196 @@
    %7D%0D%0A%0D%0A
+    @FXML%0D%0A    private void initialize() %7B%0D%0A%09nameText.setText(creature.getName());%0D%0A    %7D%0D%0A%0D%0A    @FXML%0D%0A    protected void openImage(ActionEvent event) %7B%0D%0A%09// TODO open Image%0D%0A    %7D%0D%0A%0D%0A
 %7D%0D%0A

add name setting to libraryentry