List of usage examples for javafx.collections FXCollections observableArrayList
@SuppressWarnings("unchecked") public static <E> ObservableList<E> observableArrayList()
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamJavaFX.CFBamJavaFXRelationListPane.java
public void setJavaFXDataCollection(Collection<ICFBamRelationObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from ww w . j av a 2 s .c o m*/ observableListOfRelation = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamRelationObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfRelation.add(iter.next()); } observableListOfRelation.sort(compareRelationByQualName); } if (dataTable != null) { dataTable.setItems(observableListOfRelation); // 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.CFBamJavaFXNmTokensDefListPane.java
public void setJavaFXDataCollection(Collection<ICFBamNmTokensDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from w ww .java 2s . c o m observableListOfNmTokensDef = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamNmTokensDefObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfNmTokensDef.add(iter.next()); } observableListOfNmTokensDef.sort(compareNmTokensDefByQualName); } 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); } }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamJavaFX.CFBamJavaFXTimestampDefListPane.java
public void setJavaFXDataCollection(Collection<ICFBamTimestampDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from w ww. j a v a 2s. com*/ observableListOfTimestampDef = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamTimestampDefObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfTimestampDef.add(iter.next()); } observableListOfTimestampDef.sort(compareTimestampDefByQualName); } if (dataTable != null) { dataTable.setItems(observableListOfTimestampDef); // 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.CFBamJavaFXNumberColListPane.java
public void setJavaFXDataCollection(Collection<ICFBamNumberColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from w w w . j a v a2 s .c om observableListOfNumberCol = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamNumberColObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfNumberCol.add(iter.next()); } observableListOfNumberCol.sort(compareNumberColByQualName); } if (dataTable != null) { dataTable.setItems(observableListOfNumberCol); // 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.CFBamJavaFXTZTimestampDefListPane.java
public void setJavaFXDataCollection(Collection<ICFBamTZTimestampDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*ww w . j a va 2s. co m*/ observableListOfTZTimestampDef = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamTZTimestampDefObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfTZTimestampDef.add(iter.next()); } observableListOfTZTimestampDef.sort(compareTZTimestampDefByQualName); } if (dataTable != null) { dataTable.setItems(observableListOfTZTimestampDef); // 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.CFBamJavaFXNumberTypeListPane.java
public void setJavaFXDataCollection(Collection<ICFBamNumberTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from w w w .j a va 2 s. c om*/ observableListOfNumberType = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamNumberTypeObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfNumberType.add(iter.next()); } observableListOfNumberType.sort(compareNumberTypeByQualName); } if (dataTable != null) { dataTable.setItems(observableListOfNumberType); // 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.CFBamJavaFXId64GenListPane.java
public void setJavaFXDataCollection(Collection<ICFBamId64GenObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from w ww . j a v a 2 s. c o m observableListOfId64Gen = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamId64GenObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfId64Gen.add(iter.next()); } observableListOfId64Gen.sort(compareId64GenByQualName); } if (dataTable != null) { dataTable.setItems(observableListOfId64Gen); // 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.CFBamJavaFXId16GenListPane.java
public void setJavaFXDataCollection(Collection<ICFBamId16GenObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from w w w . ja va2s . co m*/ observableListOfId16Gen = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamId16GenObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfId16Gen.add(iter.next()); } observableListOfId16Gen.sort(compareId16GenByQualName); } if (dataTable != null) { dataTable.setItems(observableListOfId16Gen); // 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.CFBamJavaFXId32GenListPane.java
public void setJavaFXDataCollection(Collection<ICFBamId32GenObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*w ww . j av a2 s.c o m*/ observableListOfId32Gen = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamId32GenObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfId32Gen.add(iter.next()); } observableListOfId32Gen.sort(compareId32GenByQualName); } if (dataTable != null) { dataTable.setItems(observableListOfId32Gen); // 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.CFBamJavaFXNumberDefListPane.java
public void setJavaFXDataCollection(Collection<ICFBamNumberDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from w w w .j a v a 2s . c om*/ observableListOfNumberDef = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamNumberDefObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfNumberDef.add(iter.next()); } observableListOfNumberDef.sort(compareNumberDefByQualName); } if (dataTable != null) { dataTable.setItems(observableListOfNumberDef); // Hack from stackoverflow to fix JavaFX TableView refresh issue ((TableColumn) dataTable.getColumns().get(0)).setVisible(false); ((TableColumn) dataTable.getColumns().get(0)).setVisible(true); } }