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.CFBamJavaFXTableColPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamTableColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;// ww w . j ava 2 s . c om observableListOfTableCol = null; if (javafxDataCollection != null) { observableListOfTableCol = FXCollections.observableArrayList(javafxDataCollection); observableListOfTableCol.sort(compareTableColByQualName); } else { observableListOfTableCol = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfTableCol); // 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.CFBamJavaFXServerProcPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamServerProcObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;// w w w. j a va 2 s .co m observableListOfServerProc = null; if (javafxDataCollection != null) { observableListOfServerProc = FXCollections.observableArrayList(javafxDataCollection); observableListOfServerProc.sort(compareServerProcByQualName); } else { observableListOfServerProc = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfServerProc); // 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.CFBamJavaFXServerMethodPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamServerMethodObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/* www .ja v a 2 s . c o m*/ observableListOfServerMethod = null; if (javafxDataCollection != null) { observableListOfServerMethod = FXCollections.observableArrayList(javafxDataCollection); observableListOfServerMethod.sort(compareServerMethodByQualName); } else { observableListOfServerMethod = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfServerMethod); // 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.CFBamJavaFXBlobDefPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamBlobDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/* w ww. j av a 2 s . com*/ observableListOfBlobDef = null; if (javafxDataCollection != null) { observableListOfBlobDef = FXCollections.observableArrayList(javafxDataCollection); observableListOfBlobDef.sort(compareBlobDefByQualName); } else { observableListOfBlobDef = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfBlobDef); // 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.CFBamJavaFXServerObjFuncPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamServerObjFuncObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from w w w .j a v a 2s . c om*/ observableListOfServerObjFunc = null; if (javafxDataCollection != null) { observableListOfServerObjFunc = FXCollections.observableArrayList(javafxDataCollection); observableListOfServerObjFunc.sort(compareServerObjFuncByQualName); } else { observableListOfServerObjFunc = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfServerObjFunc); // 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.CFBamJavaFXServerListFuncPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamServerListFuncObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from w w w . j a v a 2 s . co m observableListOfServerListFunc = null; if (javafxDataCollection != null) { observableListOfServerListFunc = FXCollections.observableArrayList(javafxDataCollection); observableListOfServerListFunc.sort(compareServerListFuncByQualName); } else { observableListOfServerListFunc = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfServerListFunc); // 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.CFBamJavaFXUuidColPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamUuidColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from ww w . ja v a2 s. c om*/ observableListOfUuidCol = null; if (javafxDataCollection != null) { observableListOfUuidCol = FXCollections.observableArrayList(javafxDataCollection); observableListOfUuidCol.sort(compareUuidColByQualName); } else { observableListOfUuidCol = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfUuidCol); // 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.CFBamJavaFXTimeColPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamTimeColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//w w w . j a v a 2s.c o m observableListOfTimeCol = null; if (javafxDataCollection != null) { observableListOfTimeCol = FXCollections.observableArrayList(javafxDataCollection); observableListOfTimeCol.sort(compareTimeColByQualName); } else { observableListOfTimeCol = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfTimeCol); // 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.CFBamJavaFXTimeTypePickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamTimeTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from w w w . ja v a 2 s . com observableListOfTimeType = null; if (javafxDataCollection != null) { observableListOfTimeType = FXCollections.observableArrayList(javafxDataCollection); observableListOfTimeType.sort(compareTimeTypeByQualName); } else { observableListOfTimeType = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfTimeType); // 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.CFBamJavaFXTZTimeColPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamTZTimeColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from w w w. java2 s. co m observableListOfTZTimeCol = null; if (javafxDataCollection != null) { observableListOfTZTimeCol = FXCollections.observableArrayList(javafxDataCollection); observableListOfTZTimeCol.sort(compareTZTimeColByQualName); } else { observableListOfTZTimeCol = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfTZTimeCol); // Hack from stackoverflow to fix JavaFX TableView refresh issue ((TableColumn) dataTable.getColumns().get(0)).setVisible(false); ((TableColumn) dataTable.getColumns().get(0)).setVisible(true); } }