List of usage examples for javafx.beans.property SimpleListProperty SimpleListProperty
public SimpleListProperty(ObservableList<E> initialValue)
From source file:com.github.drbookings.model.data.manager.MainManager.java
MainManager() { roomProvider = new RoomProvider(); guestProvider = new GuestProvider(); cleaningProvider = new CleaningProvider(); bookingOriginProvider = new BookingOriginProvider(); bookings = new ArrayList<>(); cleaningEntries = ArrayListMultimap.create(); bookingEntries = ArrayListMultimap.create(); uiData = new SimpleListProperty<>(FXCollections.observableArrayList(DateBean.extractor())); uiDataMap = new LinkedHashMap<>(); }
From source file:co.anarquianegra.rockolappServidor.mundo.ListaReproductor.java
/** * Constructor de la clase ListaReproductor *///from ww w. j av a 2 s . c o m public ListaReproductor(Main interfaz) { playing = false; ObservableList<Cancion> ol = FXCollections.observableList(new LinkedList<Cancion>()); listaReproduccion = new SimpleListProperty<Cancion>(ol); listaReproduccion.addListener(interfaz); rutasCanciones = new Properties(); cant = 0; }
From source file:poe.trade.assist.SearchPane.java
public SearchPane(List<Search> searchList) { data = new SimpleListProperty<>(FXCollections.observableArrayList(searchList)); website.setOnAction(e -> SwingUtil.openUrlViaBrowser(website.getText())); setupSearchTable();//from w w w . j a v a2s . c om setupFilterTextField(); info.setWrapText(true); // setupColumns(); setupAddFields(); setupTableClickListener(); addButton.setOnAction((ActionEvent e) -> { data.add(new Search(addName.getText(), addTags.getText(), addURL.getText(), addAuto.isSelected(), "price_in_chaos")); addName.clear(); addTags.clear(); addURL.clear(); addAuto.setSelected(false); }); remButton.setOnAction((ActionEvent e) -> { int index = searchTable.getSelectionModel().getSelectedIndex(); // if (index != -1) { // searchTable.getItems().remove(index); // } searchTable.remove(index); }); final HBox hb = new HBox(3); hb.getChildren().addAll(addAuto, addButton, remButton); final VBox vb = new VBox(3, addName, addTags, addURL, hb); setSpacing(5); setPadding(new Insets(10, 0, 0, 10)); getChildren().addAll(tagFilterField, nameFilterField, showOnlyNew, searchTable, vb, info); VBox.setVgrow(searchTable, Priority.ALWAYS); setMaxWidth(Double.MAX_VALUE); }