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.CFBamJavaFXStringTypePickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamStringTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;// w w w .ja va2 s . co m observableListOfStringType = null; if (javafxDataCollection != null) { observableListOfStringType = FXCollections.observableArrayList(javafxDataCollection); observableListOfStringType.sort(compareStringTypeByQualName); } else { observableListOfStringType = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfStringType); // 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.CFBamJavaFXNmTokenColPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamNmTokenColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from www .ja va 2s . c o m*/ observableListOfNmTokenCol = null; if (javafxDataCollection != null) { observableListOfNmTokenCol = FXCollections.observableArrayList(javafxDataCollection); observableListOfNmTokenCol.sort(compareNmTokenColByQualName); } else { observableListOfNmTokenCol = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfNmTokenCol); // 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.CFBamJavaFXTZDateTypePickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamTZDateTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from w ww .j a v a 2 s .c o m observableListOfTZDateType = null; if (javafxDataCollection != null) { observableListOfTZDateType = FXCollections.observableArrayList(javafxDataCollection); observableListOfTZDateType.sort(compareTZDateTypeByQualName); } else { observableListOfTZDateType = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfTZDateType); // 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.CFBamJavaFXUInt64TypePickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamUInt64TypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from ww w . j ava2 s . c o m observableListOfUInt64Type = null; if (javafxDataCollection != null) { observableListOfUInt64Type = FXCollections.observableArrayList(javafxDataCollection); observableListOfUInt64Type.sort(compareUInt64TypeByQualName); } else { observableListOfUInt64Type = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfUInt64Type); // 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.CFBamJavaFXEnumDefPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamEnumDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from ww w. j av a2 s. c o m observableListOfEnumDef = null; if (javafxDataCollection != null) { observableListOfEnumDef = FXCollections.observableArrayList(javafxDataCollection); observableListOfEnumDef.sort(compareEnumDefByQualName); } else { observableListOfEnumDef = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfEnumDef); // 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.CFBamJavaFXNmTokenTypePickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamNmTokenTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from w w w. j a v a 2 s.c om*/ observableListOfNmTokenType = null; if (javafxDataCollection != null) { observableListOfNmTokenType = FXCollections.observableArrayList(javafxDataCollection); observableListOfNmTokenType.sort(compareNmTokenTypeByQualName); } else { observableListOfNmTokenType = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfNmTokenType); // 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.CFBamJavaFXNmTokensColPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamNmTokensColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from w w w .j a v a 2 s. c o m*/ observableListOfNmTokensCol = null; if (javafxDataCollection != null) { observableListOfNmTokensCol = FXCollections.observableArrayList(javafxDataCollection); observableListOfNmTokensCol.sort(compareNmTokensColByQualName); } else { observableListOfNmTokensCol = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfNmTokensCol); // 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.CFBamJavaFXInt64DefPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamInt64DefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from w w w . j a v a 2 s .c om observableListOfInt64Def = null; if (javafxDataCollection != null) { observableListOfInt64Def = FXCollections.observableArrayList(javafxDataCollection); observableListOfInt64Def.sort(compareInt64DefByQualName); } else { observableListOfInt64Def = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfInt64Def); // 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.CFBamJavaFXTextDefPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamTextDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from w ww . j av a2 s .c o m*/ observableListOfTextDef = null; if (javafxDataCollection != null) { observableListOfTextDef = FXCollections.observableArrayList(javafxDataCollection); observableListOfTextDef.sort(compareTextDefByQualName); } else { observableListOfTextDef = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfTextDef); // 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.CFBamJavaFXFloatDefPickerPane.java
public void setJavaFXDataCollection(Collection<ICFBamFloatDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from w ww . j a va2 s. c om observableListOfFloatDef = null; if (javafxDataCollection != null) { observableListOfFloatDef = FXCollections.observableArrayList(javafxDataCollection); observableListOfFloatDef.sort(compareFloatDefByQualName); } else { observableListOfFloatDef = FXCollections.observableArrayList(); } if (dataTable != null) { dataTable.setItems(observableListOfFloatDef); // Hack from stackoverflow to fix JavaFX TableView refresh issue ((TableColumn) dataTable.getColumns().get(0)).setVisible(false); ((TableColumn) dataTable.getColumns().get(0)).setVisible(true); } }