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.CFBamJavaFXTimestampTypePickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamTimestampTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/* w ww .jav a 2 s . c om*/ observableListOfTimestampType = null; if (javafxDataCollection != null) { observableListOfTimestampType = FXCollections.observableArrayList(javafxDataCollection); observableListOfTimestampType.sort(compareTimestampTypeByQualName); } else { observableListOfTimestampType = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfTimestampType); // 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.CFBamJavaFXStringDefPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamStringDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;// www . jav a 2 s .co m observableListOfStringDef = null; if (javafxDataCollection != null) { observableListOfStringDef = FXCollections.observableArrayList(javafxDataCollection); observableListOfStringDef.sort(compareStringDefByQualName); } else { observableListOfStringDef = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfStringDef); // 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.CFBamJavaFXTZTimestampColPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamTZTimestampColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from w w w . j a v a 2 s .c o m observableListOfTZTimestampCol = null; if (javafxDataCollection != null) { observableListOfTZTimestampCol = FXCollections.observableArrayList(javafxDataCollection); observableListOfTZTimestampCol.sort(compareTZTimestampColByQualName); } else { observableListOfTZTimestampCol = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfTZTimestampCol); // 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.CFBamJavaFXInt32TypePickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamInt32TypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from ww w . j a v a2 s . com observableListOfInt32Type = null; if (javafxDataCollection != null) { observableListOfInt32Type = FXCollections.observableArrayList(javafxDataCollection); observableListOfInt32Type.sort(compareInt32TypeByQualName); } else { observableListOfInt32Type = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfInt32Type); // 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.CFBamJavaFXUInt16DefPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamUInt16DefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from www . j a v a 2 s . c o m observableListOfUInt16Def = null; if (javafxDataCollection != null) { observableListOfUInt16Def = FXCollections.observableArrayList(javafxDataCollection); observableListOfUInt16Def.sort(compareUInt16DefByQualName); } else { observableListOfUInt16Def = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfUInt16Def); // 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.CFBamJavaFXTZDateDefPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamTZDateDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from w ww. j a v a 2s. c o m*/ observableListOfTZDateDef = null; if (javafxDataCollection != null) { observableListOfTZDateDef = FXCollections.observableArrayList(javafxDataCollection); observableListOfTZDateDef.sort(compareTZDateDefByQualName); } else { observableListOfTZDateDef = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfTZDateDef); // 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.CFBamJavaFXTZTimestampTypePickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamTZTimestampTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from w w w . j av a 2s. c om observableListOfTZTimestampType = null; if (javafxDataCollection != null) { observableListOfTZTimestampType = FXCollections.observableArrayList(javafxDataCollection); observableListOfTZTimestampType.sort(compareTZTimestampTypeByQualName); } else { observableListOfTZTimestampType = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfTZTimestampType); // 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.CFBamJavaFXUInt64DefPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamUInt64DefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//w w w .ja v a 2 s .co m observableListOfUInt64Def = null; if (javafxDataCollection != null) { observableListOfUInt64Def = FXCollections.observableArrayList(javafxDataCollection); observableListOfUInt64Def.sort(compareUInt64DefByQualName); } else { observableListOfUInt64Def = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfUInt64Def); // 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.CFBamJavaFXNmTokenDefPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamNmTokenDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from w ww . j a v a 2 s . com*/ observableListOfNmTokenDef = null; if (javafxDataCollection != null) { observableListOfNmTokenDef = FXCollections.observableArrayList(javafxDataCollection); observableListOfNmTokenDef.sort(compareNmTokenDefByQualName); } else { observableListOfNmTokenDef = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfNmTokenDef); // 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.CFBamJavaFXNmTokensDefPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamNmTokensDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from w w w.j a va 2 s . c o m*/ observableListOfNmTokensDef = null; if (javafxDataCollection != null) { observableListOfNmTokensDef = FXCollections.observableArrayList(javafxDataCollection); observableListOfNmTokensDef.sort(compareNmTokensDefByQualName); } else { observableListOfNmTokensDef = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfNmTokensDef); // Hack from stackoverflow to fix JavaFX TableView refresh issue ((TableColumn) dataTable.getColumns().get(0)).setVisible(false); ((TableColumn) dataTable.getColumns().get(0)).setVisible(true); } }