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.CFBamJavaFXStringTypeListPane.java
public void setJavaFXDataCollection(Collection<ICFBamStringTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from w w w. j a v a2s. c o m*/ observableListOfStringType = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamStringTypeObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfStringType.add(iter.next()); } observableListOfStringType.sort(compareStringTypeByQualName); } 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.CFBamJavaFXNmTokenColListPane.java
public void setJavaFXDataCollection(Collection<ICFBamNmTokenColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//ww w . ja v a 2s. c o m observableListOfNmTokenCol = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamNmTokenColObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfNmTokenCol.add(iter.next()); } observableListOfNmTokenCol.sort(compareNmTokenColByQualName); } 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.CFBamJavaFXTZDateTypeListPane.java
public void setJavaFXDataCollection(Collection<ICFBamTZDateTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//w w w .j a va2 s . c o m observableListOfTZDateType = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamTZDateTypeObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfTZDateType.add(iter.next()); } observableListOfTZDateType.sort(compareTZDateTypeByQualName); } 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.CFBamJavaFXUInt64TypeListPane.java
public void setJavaFXDataCollection(Collection<ICFBamUInt64TypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;// w w w. j a va 2 s. c o m observableListOfUInt64Type = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamUInt64TypeObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfUInt64Type.add(iter.next()); } observableListOfUInt64Type.sort(compareUInt64TypeByQualName); } 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.CFBamJavaFXNmTokenTypeListPane.java
public void setJavaFXDataCollection(Collection<ICFBamNmTokenTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from w w w . ja v a2 s .c o m*/ observableListOfNmTokenType = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamNmTokenTypeObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfNmTokenType.add(iter.next()); } observableListOfNmTokenType.sort(compareNmTokenTypeByQualName); } 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.CFBamJavaFXNmTokensColListPane.java
public void setJavaFXDataCollection(Collection<ICFBamNmTokensColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;// w ww. j ava 2 s . c o m observableListOfNmTokensCol = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamNmTokensColObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfNmTokensCol.add(iter.next()); } observableListOfNmTokensCol.sort(compareNmTokensColByQualName); } 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.CFBamJavaFXEnumDefListPane.java
public void setJavaFXDataCollection(Collection<ICFBamEnumDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;// www . j a va 2s . c om observableListOfEnumDef = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamEnumDefObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfEnumDef.add(iter.next()); } observableListOfEnumDef.sort(compareEnumDefByQualName); } 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.CFBamJavaFXNmTokensTypeListPane.java
public void setJavaFXDataCollection(Collection<ICFBamNmTokensTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from www .ja v a2 s . com*/ observableListOfNmTokensType = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamNmTokensTypeObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfNmTokensType.add(iter.next()); } observableListOfNmTokensType.sort(compareNmTokensTypeByQualName); } 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.CFBamJavaFXTimestampColListPane.java
public void setJavaFXDataCollection(Collection<ICFBamTimestampColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from w ww .jav a 2 s. c o m observableListOfTimestampCol = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamTimestampColObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfTimestampCol.add(iter.next()); } observableListOfTimestampCol.sort(compareTimestampColByQualName); } 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.CFBamJavaFXTimestampTypeListPane.java
public void setJavaFXDataCollection(Collection<ICFBamTimestampTypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from ww w . ja v a2 s . c o m observableListOfTimestampType = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamTimestampTypeObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfTimestampType.add(iter.next()); } observableListOfTimestampType.sort(compareTimestampTypeByQualName); } 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); } }