package app.lsgui.gui.streamList;

import java.io.IOException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

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

public class StreamList extends AnchorPane {
    private static final Logger LOGGER = LoggerFactory.getLogger(StreamList.class);
    private static FXMLLoader loader;

    public StreamList() {
        LOGGER.debug("Construct StreamList");
        loader = new FXMLLoader(getClass().getResource("/StreamList.fxml"));
        loader.setRoot(this);
        loader.setController(this);
        try {
            loader.load();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
@@ -58,16 +58,40 @@
 eption;%0D
+%0Aimport java.util.List;%0D
 %0A%0D%0Aimpor
@@ -164,23 +164,224 @@
 afx.
-fxml.FXMLLoader
+beans.property.ListProperty;%0D%0Aimport javafx.beans.property.SimpleListProperty;%0D%0Aimport javafx.collections.FXCollections;%0D%0Aimport javafx.fxml.FXML;%0D%0Aimport javafx.fxml.FXMLLoader;%0D%0Aimport javafx.scene.control.ListView
 ;%0D%0Ai
@@ -593,16 +593,123 @@
 der;%0D%0A%0D%0A
+    private ListProperty%3CString%3E streamProperty;%0D%0A%0D%0A    @FXML%0D%0A    private ListView%3CString%3E streamList;%0D%0A%0D%0A
     publ
@@ -1043,16 +1043,477 @@
      %7D%0D%0A
+        streamProperty = new SimpleListProperty%3CString%3E();%0D%0A        streamList.itemsProperty().bind(streamProperty);%0D%0A    %7D%0D%0A%0D%0A    /**%0D%0A     * @return the streams%0D%0A     */%0D%0A    public ListProperty%3CString%3E getStreams() %7B%0D%0A        return streamProperty;%0D%0A    %7D%0D%0A%0D%0A    /**%0D%0A     * @param streams%0D%0A     *            the streams to set%0D%0A     */%0D%0A    public void setStreams(List%3CString%3E streams) %7B%0D%0A        streamProperty.set(FXCollections.observableList(streams));%0D%0A
     %7D%0D%0A%7D

add some functionality