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.CFBamJavaFXDoubleColPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamDoubleColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from w ww.ja v a 2 s .c o m*/ observableListOfDoubleCol = null; if (javafxDataCollection != null) { observableListOfDoubleCol = FXCollections.observableArrayList(javafxDataCollection); observableListOfDoubleCol.sort(compareDoubleColByQualName); } else { observableListOfDoubleCol = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfDoubleCol); // 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.CFBamJavaFXDateTypePickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamDateTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from www . j a v a 2 s . c om observableListOfDateType = null; if (javafxDataCollection != null) { observableListOfDateType = FXCollections.observableArrayList(javafxDataCollection); observableListOfDateType.sort(compareDateTypeByQualName); } else { observableListOfDateType = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfDateType); // 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.CFBamJavaFXTokenTypePickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamTokenTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*w w w .j ava2s.c o m*/ observableListOfTokenType = null; if (javafxDataCollection != null) { observableListOfTokenType = FXCollections.observableArrayList(javafxDataCollection); observableListOfTokenType.sort(compareTokenTypeByQualName); } else { observableListOfTokenType = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfTokenType); // 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.CFBamJavaFXStringColPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamStringColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from ww w . j av a 2 s.com*/ observableListOfStringCol = null; if (javafxDataCollection != null) { observableListOfStringCol = FXCollections.observableArrayList(javafxDataCollection); observableListOfStringCol.sort(compareStringColByQualName); } else { observableListOfStringCol = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfStringCol); // 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.CFBamJavaFXUInt32TypePickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamUInt32TypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from w ww. j ava2 s . c om observableListOfUInt32Type = null; if (javafxDataCollection != null) { observableListOfUInt32Type = FXCollections.observableArrayList(javafxDataCollection); observableListOfUInt32Type.sort(compareUInt32TypeByQualName); } else { observableListOfUInt32Type = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfUInt32Type); // 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.CFBamJavaFXUInt16ColPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamUInt16ColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from w w w . jav a 2s . c o m*/ observableListOfUInt16Col = null; if (javafxDataCollection != null) { observableListOfUInt16Col = FXCollections.observableArrayList(javafxDataCollection); observableListOfUInt16Col.sort(compareUInt16ColByQualName); } else { observableListOfUInt16Col = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfUInt16Col); // 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.CFBamJavaFXTZDateColPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamTZDateColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//ww w . ja va 2 s.c o m observableListOfTZDateCol = null; if (javafxDataCollection != null) { observableListOfTZDateCol = FXCollections.observableArrayList(javafxDataCollection); observableListOfTZDateCol.sort(compareTZDateColByQualName); } else { observableListOfTZDateCol = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfTZDateCol); // 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.CFBamJavaFXUInt64ColPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamUInt64ColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;// w ww .j a va2 s . com observableListOfUInt64Col = null; if (javafxDataCollection != null) { observableListOfUInt64Col = FXCollections.observableArrayList(javafxDataCollection); observableListOfUInt64Col.sort(compareUInt64ColByQualName); } else { observableListOfUInt64Col = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfUInt64Col); // 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.CFBamJavaFXDoubleTypePickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamDoubleTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//w w w . j av a 2s .c o m observableListOfDoubleType = null; if (javafxDataCollection != null) { observableListOfDoubleType = FXCollections.observableArrayList(javafxDataCollection); observableListOfDoubleType.sort(compareDoubleTypeByQualName); } else { observableListOfDoubleType = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfDoubleType); // 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.CFBamJavaFXUInt16TypePickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamUInt16TypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;// w w w .j a v a 2 s. com observableListOfUInt16Type = null; if (javafxDataCollection != null) { observableListOfUInt16Type = FXCollections.observableArrayList(javafxDataCollection); observableListOfUInt16Type.sort(compareUInt16TypeByQualName); } else { observableListOfUInt16Type = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfUInt16Type); // Hack from stackoverflow to fix JavaFX TableView refresh issue ((TableColumn) dataTable.getColumns().get(0)).setVisible(false); ((TableColumn) dataTable.getColumns().get(0)).setVisible(true); } }