List of usage examples for javafx.collections FXCollections observableArrayList
public static <E> ObservableList<E> observableArrayList(Collection<? extends E> col)
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamJavaFX.CFBamJavaFXTZTimeTypePickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamTZTimeTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from w w w . j a v a 2 s . co m observableListOfTZTimeType = null; if (javafxDataCollection != null) { observableListOfTZTimeType = FXCollections.observableArrayList(javafxDataCollection); observableListOfTZTimeType.sort(compareTZTimeTypeByQualName); } else { observableListOfTZTimeType = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfTZTimeType); // 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.CFBamJavaFXUuidDefPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamUuidDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from w w w . j a v a2 s . com observableListOfUuidDef = null; if (javafxDataCollection != null) { observableListOfUuidDef = FXCollections.observableArrayList(javafxDataCollection); observableListOfUuidDef.sort(compareUuidDefByQualName); } else { observableListOfUuidDef = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfUuidDef); // 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.CFBamJavaFXBoolColPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamBoolColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*w w w. j a v a 2 s .c om*/ observableListOfBoolCol = null; if (javafxDataCollection != null) { observableListOfBoolCol = FXCollections.observableArrayList(javafxDataCollection); observableListOfBoolCol.sort(compareBoolColByQualName); } else { observableListOfBoolCol = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfBoolCol); // 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.CFBamJavaFXUuidTypePickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamUuidTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/* ww w . j ava2 s .c o m*/ observableListOfUuidType = null; if (javafxDataCollection != null) { observableListOfUuidType = FXCollections.observableArrayList(javafxDataCollection); observableListOfUuidType.sort(compareUuidTypeByQualName); } else { observableListOfUuidType = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfUuidType); // 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.CFBamJavaFXTimeDefPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamTimeDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;// w ww.ja va 2s .c o m observableListOfTimeDef = null; if (javafxDataCollection != null) { observableListOfTimeDef = FXCollections.observableArrayList(javafxDataCollection); observableListOfTimeDef.sort(compareTimeDefByQualName); } else { observableListOfTimeDef = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfTimeDef); // 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.CFBamJavaFXBoolTypePickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamBoolTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/* ww w. j av a 2 s . co m*/ observableListOfBoolType = null; if (javafxDataCollection != null) { observableListOfBoolType = FXCollections.observableArrayList(javafxDataCollection); observableListOfBoolType.sort(compareBoolTypeByQualName); } else { observableListOfBoolType = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfBoolType); // 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.CFBamJavaFXTZTimeDefPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamTZTimeDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from www. j a v a2 s. co m*/ observableListOfTZTimeDef = null; if (javafxDataCollection != null) { observableListOfTZTimeDef = FXCollections.observableArrayList(javafxDataCollection); observableListOfTZTimeDef.sort(compareTZTimeDefByQualName); } else { observableListOfTZTimeDef = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfTZTimeDef); // 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.CFBamJavaFXUuidGenPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamUuidGenObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//w w w.jav a 2 s. c o m observableListOfUuidGen = null; if (javafxDataCollection != null) { observableListOfUuidGen = FXCollections.observableArrayList(javafxDataCollection); observableListOfUuidGen.sort(compareUuidGenByQualName); } else { observableListOfUuidGen = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfUuidGen); // 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.CFBamJavaFXInt64ColPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamInt64ColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//w w w .ja va2 s . c om observableListOfInt64Col = null; if (javafxDataCollection != null) { observableListOfInt64Col = FXCollections.observableArrayList(javafxDataCollection); observableListOfInt64Col.sort(compareInt64ColByQualName); } else { observableListOfInt64Col = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfInt64Col); // 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.CFBamJavaFXBoolDefPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamBoolDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from ww w .j a v a 2 s . co m observableListOfBoolDef = null; if (javafxDataCollection != null) { observableListOfBoolDef = FXCollections.observableArrayList(javafxDataCollection); observableListOfBoolDef.sort(compareBoolDefByQualName); } else { observableListOfBoolDef = FXCollections.observableArrayList(); } 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); } }