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.CFBamJavaFXTextDefListPane.java
public void setJavaFXDataCollection(Collection<ICFBamTextDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from w w w .java2s . c om*/ observableListOfTextDef = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamTextDefObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfTextDef.add(iter.next()); } observableListOfTextDef.sort(compareTextDefByQualName); } 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.CFBamJavaFXFloatDefListPane.java
public void setJavaFXDataCollection(Collection<ICFBamFloatDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;//from w w w .j av a 2s .c om observableListOfFloatDef = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamFloatDefObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfFloatDef.add(iter.next()); } observableListOfFloatDef.sort(compareFloatDefByQualName); } 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); } }
From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamJavaFX.CFBamJavaFXDateDefListPane.java
public void setJavaFXDataCollection(Collection<ICFBamDateDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/* w ww . ja v a 2 s . co m*/ observableListOfDateDef = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamDateDefObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfDateDef.add(iter.next()); } observableListOfDateDef.sort(compareDateDefByQualName); } 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.CFBamJavaFXInt64DefListPane.java
public void setJavaFXDataCollection(Collection<ICFBamInt64DefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/* w w w. j a v a 2 s. c o m*/ observableListOfInt64Def = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamInt64DefObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfInt64Def.add(iter.next()); } observableListOfInt64Def.sort(compareInt64DefByQualName); } 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.CFBamJavaFXTZTimestampColListPane.java
public void setJavaFXDataCollection(Collection<ICFBamTZTimestampColObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from ww w. j av a 2 s.com*/ observableListOfTZTimestampCol = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamTZTimestampColObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfTZTimestampCol.add(iter.next()); } observableListOfTZTimestampCol.sort(compareTZTimestampColByQualName); } 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.CFBamJavaFXTokenDefListPane.java
public void setJavaFXDataCollection(Collection<ICFBamTokenDefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;// w w w . ja v a 2 s . c o m observableListOfTokenDef = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamTokenDefObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfTokenDef.add(iter.next()); } observableListOfTokenDef.sort(compareTokenDefByQualName); } 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.CFBamJavaFXInt64TypeListPane.java
public void setJavaFXDataCollection(Collection<ICFBamInt64TypeObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*from w w w .j ava 2 s . c o m*/ observableListOfInt64Type = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamInt64TypeObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfInt64Type.add(iter.next()); } observableListOfInt64Type.sort(compareInt64TypeByQualName); } 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.CFBamJavaFXUInt32DefListPane.java
public void setJavaFXDataCollection(Collection<ICFBamUInt32DefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/* www . j ava 2 s.co m*/ observableListOfUInt32Def = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamUInt32DefObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfUInt32Def.add(iter.next()); } observableListOfUInt32Def.sort(compareUInt32DefByQualName); } 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.CFBamJavaFXInt16DefListPane.java
public void setJavaFXDataCollection(Collection<ICFBamInt16DefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;/*www . ja v a 2s.co m*/ observableListOfInt16Def = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamInt16DefObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfInt16Def.add(iter.next()); } observableListOfInt16Def.sort(compareInt16DefByQualName); } 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.CFBamJavaFXInt32DefListPane.java
public void setJavaFXDataCollection(Collection<ICFBamInt32DefObj> value) { final String S_ProcName = "setJavaFXDataCollection"; javafxDataCollection = value;// w ww . j a v a 2s . c o m observableListOfInt32Def = FXCollections.observableArrayList(); if (javafxDataCollection != null) { Iterator<ICFBamInt32DefObj> iter = javafxDataCollection.iterator(); while (iter.hasNext()) { observableListOfInt32Def.add(iter.next()); } observableListOfInt32Def.sort(compareInt32DefByQualName); } 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); } }