List of usage examples for javafx.collections FXCollections observableArrayList
@SuppressWarnings("unchecked") public static <E> ObservableList<E> observableArrayList()
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamJavaFX.CFBamJavaFXInt16ColListPane.java
public void setJavaFXDataCollection(Collection<ICFBamInt16ColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from ww w .ja v a2 s .com*/ observableListOfInt16Col = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamInt16ColObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfInt16Col.add(iter.next()); } observableListOfInt16Col.sort(compareInt16ColByQualName); } if (dataTable != null) { dataTable.setItems(observableListOfInt16Col); // Hack from stackoverflow to fix JavaFX TableView refresh issue ((TableColumn) dataTable.getColumns().get(0)).setVisible(false); ((TableColumn) dataTable.getColumns().get(0)).setVisible(true); } }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamJavaFX.CFBamJavaFXEnumTypeListPane.java
public void setJavaFXDataCollection(Collection<ICFBamEnumTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from w w w . j a v a 2s.c o m*/ observableListOfEnumType = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamEnumTypeObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfEnumType.add(iter.next()); } observableListOfEnumType.sort(compareEnumTypeByQualName); } if (dataTable != null) { dataTable.setItems(observableListOfEnumType); // Hack from stackoverflow to fix JavaFX TableView refresh issue ((TableColumn) dataTable.getColumns().get(0)).setVisible(false); ((TableColumn) dataTable.getColumns().get(0)).setVisible(true); } }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamJavaFX.CFBamJavaFXDateColListPane.java
public void setJavaFXDataCollection(Collection<ICFBamDateColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from ww w . j a v a 2s . c o m observableListOfDateCol = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamDateColObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfDateCol.add(iter.next()); } observableListOfDateCol.sort(compareDateColByQualName); } if (dataTable != null) { dataTable.setItems(observableListOfDateCol); // Hack from stackoverflow to fix JavaFX TableView refresh issue ((TableColumn) dataTable.getColumns().get(0)).setVisible(false); ((TableColumn) dataTable.getColumns().get(0)).setVisible(true); } }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamJavaFX.CFBamJavaFXInt32ColListPane.java
public void setJavaFXDataCollection(Collection<ICFBamInt32ColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from w w w . j a va 2 s . com*/ observableListOfInt32Col = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamInt32ColObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfInt32Col.add(iter.next()); } observableListOfInt32Col.sort(compareInt32ColByQualName); } if (dataTable != null) { dataTable.setItems(observableListOfInt32Col); // Hack from stackoverflow to fix JavaFX TableView refresh issue ((TableColumn) dataTable.getColumns().get(0)).setVisible(false); ((TableColumn) dataTable.getColumns().get(0)).setVisible(true); } }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamJavaFX.CFBamJavaFXTextTypeListPane.java
public void setJavaFXDataCollection(Collection<ICFBamTextTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//www.j a v a 2 s . co m observableListOfTextType = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamTextTypeObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfTextType.add(iter.next()); } observableListOfTextType.sort(compareTextTypeByQualName); } if (dataTable != null) { dataTable.setItems(observableListOfTextType); // Hack from stackoverflow to fix JavaFX TableView refresh issue ((TableColumn) dataTable.getColumns().get(0)).setVisible(false); ((TableColumn) dataTable.getColumns().get(0)).setVisible(true); } }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamJavaFX.CFBamJavaFXTokenColListPane.java
public void setJavaFXDataCollection(Collection<ICFBamTokenColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/* w w w . j a v a 2 s . c om*/ observableListOfTokenCol = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamTokenColObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfTokenCol.add(iter.next()); } observableListOfTokenCol.sort(compareTokenColByQualName); } if (dataTable != null) { dataTable.setItems(observableListOfTokenCol); // Hack from stackoverflow to fix JavaFX TableView refresh issue ((TableColumn) dataTable.getColumns().get(0)).setVisible(false); ((TableColumn) dataTable.getColumns().get(0)).setVisible(true); } }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamJavaFX.CFBamJavaFXUInt32ColListPane.java
public void setJavaFXDataCollection(Collection<ICFBamUInt32ColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/* w w w . j a v a2 s . co m*/ observableListOfUInt32Col = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamUInt32ColObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfUInt32Col.add(iter.next()); } observableListOfUInt32Col.sort(compareUInt32ColByQualName); } if (dataTable != null) { dataTable.setItems(observableListOfUInt32Col); // Hack from stackoverflow to fix JavaFX TableView refresh issue ((TableColumn) dataTable.getColumns().get(0)).setVisible(false); ((TableColumn) dataTable.getColumns().get(0)).setVisible(true); } }
From source file:pl.betoncraft.betonquest.editor.model.QuestPackage.java
/** * @return all PlayerOptions from loaded conversations in this package, the ones from current conversation first *//*from www. j av a 2s.co m*/ public ObservableList<PlayerOption> getAllPlayerOptions() { ObservableList<PlayerOption> list = FXCollections.observableArrayList(); list.addAll(ConversationController.getDisplayedConversation().getPlayerOptions()); conversations.forEach(conv -> { if (!conv.equals(ConversationController.getDisplayedConversation())) { list.addAll(conv.getPlayerOptions()); } }); return list; }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamJavaFX.CFBamJavaFXFloatTypeListPane.java
public void setJavaFXDataCollection(Collection<ICFBamFloatTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from w w w . ja v a 2 s. c o m observableListOfFloatType = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamFloatTypeObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfFloatType.add(iter.next()); } observableListOfFloatType.sort(compareFloatTypeByQualName); } if (dataTable != null) { dataTable.setItems(observableListOfFloatType); // Hack from stackoverflow to fix JavaFX TableView refresh issue ((TableColumn) dataTable.getColumns().get(0)).setVisible(false); ((TableColumn) dataTable.getColumns().get(0)).setVisible(true); } }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamJavaFX.CFBamJavaFXBoolDefListPane.java
public void setJavaFXDataCollection(Collection<ICFBamBoolDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from w w w .ja v a 2s .com observableListOfBoolDef = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamBoolDefObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfBoolDef.add(iter.next()); } observableListOfBoolDef.sort(compareBoolDefByQualName); } if (dataTable != null) { dataTable.setItems(observableListOfBoolDef); // Hack from stackoverflow to fix JavaFX TableView refresh issue ((TableColumn) dataTable.getColumns().get(0)).setVisible(false); ((TableColumn) dataTable.getColumns().get(0)).setVisible(true); } }