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.CFBamJavaFXInt16DefPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamInt16DefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//w w w . jav a 2 s . c o m observableListOfInt16Def = null; if (javafxDataCollection != null) { observableListOfInt16Def = FXCollections.observableArrayList(javafxDataCollection); observableListOfInt16Def.sort(compareInt16DefByQualName); } else { observableListOfInt16Def = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfInt16Def); // 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.CFBamJavaFXDateDefPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamDateDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/* w ww . ja v a2s . com*/ observableListOfDateDef = null; if (javafxDataCollection != null) { observableListOfDateDef = FXCollections.observableArrayList(javafxDataCollection); observableListOfDateDef.sort(compareDateDefByQualName); } else { observableListOfDateDef = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfDateDef); // 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.CFBamJavaFXNmTokensTypePickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamNmTokensTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from ww w . j a v a 2 s . co m*/ observableListOfNmTokensType = null; if (javafxDataCollection != null) { observableListOfNmTokensType = FXCollections.observableArrayList(javafxDataCollection); observableListOfNmTokensType.sort(compareNmTokensTypeByQualName); } else { observableListOfNmTokensType = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfNmTokensType); // 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.CFBamJavaFXInt32DefPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamInt32DefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;// w ww .j a va 2 s.co m observableListOfInt32Def = null; if (javafxDataCollection != null) { observableListOfInt32Def = FXCollections.observableArrayList(javafxDataCollection); observableListOfInt32Def.sort(compareInt32DefByQualName); } else { observableListOfInt32Def = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfInt32Def); // 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.CFBamJavaFXTimestampColPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamTimestampColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//w w w . j av a 2s .co m observableListOfTimestampCol = null; if (javafxDataCollection != null) { observableListOfTimestampCol = FXCollections.observableArrayList(javafxDataCollection); observableListOfTimestampCol.sort(compareTimestampColByQualName); } else { observableListOfTimestampCol = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfTimestampCol); // 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.CFBamJavaFXTokenDefPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamTokenDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from w w w . j av a2 s . c o m*/ observableListOfTokenDef = null; if (javafxDataCollection != null) { observableListOfTokenDef = FXCollections.observableArrayList(javafxDataCollection); observableListOfTokenDef.sort(compareTokenDefByQualName); } else { observableListOfTokenDef = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfTokenDef); // 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.CFBamJavaFXInt64TypePickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamInt64TypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/* ww w .j a va 2 s . c om*/ observableListOfInt64Type = null; if (javafxDataCollection != null) { observableListOfInt64Type = FXCollections.observableArrayList(javafxDataCollection); observableListOfInt64Type.sort(compareInt64TypeByQualName); } else { observableListOfInt64Type = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfInt64Type); // 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.CFBamJavaFXUInt32DefPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamUInt32DefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from w w w . ja v a2 s . co m observableListOfUInt32Def = null; if (javafxDataCollection != null) { observableListOfUInt32Def = FXCollections.observableArrayList(javafxDataCollection); observableListOfUInt32Def.sort(compareUInt32DefByQualName); } else { observableListOfUInt32Def = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfUInt32Def); // 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.CFBamJavaFXInt16TypePickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamInt16TypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/* w ww . j a v a 2 s .c o m*/ observableListOfInt16Type = null; if (javafxDataCollection != null) { observableListOfInt16Type = FXCollections.observableArrayList(javafxDataCollection); observableListOfInt16Type.sort(compareInt16TypeByQualName); } else { observableListOfInt16Type = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfInt16Type); // 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.CFBamJavaFXDoubleDefPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamDoubleDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from www . j ava2 s. c o m observableListOfDoubleDef = null; if (javafxDataCollection != null) { observableListOfDoubleDef = FXCollections.observableArrayList(javafxDataCollection); observableListOfDoubleDef.sort(compareDoubleDefByQualName); } else { observableListOfDoubleDef = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfDoubleDef); // Hack from stackoverflow to fix JavaFX TableView refresh issue ((TableColumn) dataTable.getColumns().get(0)).setVisible(false); ((TableColumn) dataTable.getColumns().get(0)).setVisible(true); } }