Example usage for javafx.collections FXCollections observableArrayList

List of usage examples for javafx.collections FXCollections observableArrayList

Introduction

In this page you can find the example usage for javafx.collections FXCollections observableArrayList.

Prototype

@SuppressWarnings("unchecked")
public static <E> ObservableList<E> observableArrayList() 

Source Link

Document

Creates a new empty observable list that is backed by an arraylist.

Usage

From source file:net.sourceforge.msscodefactory.cfbam.v2_7.CFBamJavaFX.CFBamJavaFXChainListPane.java

public void setJavaFXDataCollection(Collection<ICFBamChainObj> value) {
    final String S_ProcName = "setJavaFXDataCollection";
    javafxDataCollection = value;/*from ww w. java  2s . c om*/
    observableListOfChain = FXCollections.observableArrayList();
    if (javafxDataCollection != null) {
        Iterator<ICFBamChainObj> iter = javafxDataCollection.iterator();
        while (iter.hasNext()) {
            observableListOfChain.add(iter.next());
        }
        observableListOfChain.sort(compareChainByQualName);
    }
    if (dataTable != null) {
        dataTable.setItems(observableListOfChain);
        // 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.CFBamJavaFXIndexListPane.java

public void setJavaFXDataCollection(Collection<ICFBamIndexObj> value) {
    final String S_ProcName = "setJavaFXDataCollection";
    javafxDataCollection = value;/*  w  w  w  .j  a va  2 s.  co m*/
    observableListOfIndex = FXCollections.observableArrayList();
    if (javafxDataCollection != null) {
        Iterator<ICFBamIndexObj> iter = javafxDataCollection.iterator();
        while (iter.hasNext()) {
            observableListOfIndex.add(iter.next());
        }
        observableListOfIndex.sort(compareIndexByQualName);
    }
    if (dataTable != null) {
        dataTable.setItems(observableListOfIndex);
        // 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.CFBamJavaFXBlobColListPane.java

public void setJavaFXDataCollection(Collection<ICFBamBlobColObj> value) {
    final String S_ProcName = "setJavaFXDataCollection";
    javafxDataCollection = value;/* www.j ava 2s  .c o  m*/
    observableListOfBlobCol = FXCollections.observableArrayList();
    if (javafxDataCollection != null) {
        Iterator<ICFBamBlobColObj> iter = javafxDataCollection.iterator();
        while (iter.hasNext()) {
            observableListOfBlobCol.add(iter.next());
        }
        observableListOfBlobCol.sort(compareBlobColByQualName);
    }
    if (dataTable != null) {
        dataTable.setItems(observableListOfBlobCol);
        // 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.CFBamJavaFXBlobTypeListPane.java

public void setJavaFXDataCollection(Collection<ICFBamBlobTypeObj> value) {
    final String S_ProcName = "setJavaFXDataCollection";
    javafxDataCollection = value;/* w  w  w . j  av  a 2 s  .c o  m*/
    observableListOfBlobType = FXCollections.observableArrayList();
    if (javafxDataCollection != null) {
        Iterator<ICFBamBlobTypeObj> iter = javafxDataCollection.iterator();
        while (iter.hasNext()) {
            observableListOfBlobType.add(iter.next());
        }
        observableListOfBlobType.sort(compareBlobTypeByQualName);
    }
    if (dataTable != null) {
        dataTable.setItems(observableListOfBlobType);
        // 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.CFBamJavaFXTableColListPane.java

public void setJavaFXDataCollection(Collection<ICFBamTableColObj> value) {
    final String S_ProcName = "setJavaFXDataCollection";
    javafxDataCollection = value;//from  w w  w  .  j  a  va 2s . c  om
    observableListOfTableCol = FXCollections.observableArrayList();
    if (javafxDataCollection != null) {
        Iterator<ICFBamTableColObj> iter = javafxDataCollection.iterator();
        while (iter.hasNext()) {
            observableListOfTableCol.add(iter.next());
        }
        observableListOfTableCol.sort(compareTableColByQualName);
    }
    if (dataTable != null) {
        dataTable.setItems(observableListOfTableCol);
        // 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.CFBamJavaFXServerProcListPane.java

public void setJavaFXDataCollection(Collection<ICFBamServerProcObj> value) {
    final String S_ProcName = "setJavaFXDataCollection";
    javafxDataCollection = value;//from   w  ww  .j  a v  a2  s.  c  om
    observableListOfServerProc = FXCollections.observableArrayList();
    if (javafxDataCollection != null) {
        Iterator<ICFBamServerProcObj> iter = javafxDataCollection.iterator();
        while (iter.hasNext()) {
            observableListOfServerProc.add(iter.next());
        }
        observableListOfServerProc.sort(compareServerProcByQualName);
    }
    if (dataTable != null) {
        dataTable.setItems(observableListOfServerProc);
        // 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.CFBamJavaFXServerObjFuncListPane.java

public void setJavaFXDataCollection(Collection<ICFBamServerObjFuncObj> value) {
    final String S_ProcName = "setJavaFXDataCollection";
    javafxDataCollection = value;/*from   w  w  w . j av  a2s .  c o  m*/
    observableListOfServerObjFunc = FXCollections.observableArrayList();
    if (javafxDataCollection != null) {
        Iterator<ICFBamServerObjFuncObj> iter = javafxDataCollection.iterator();
        while (iter.hasNext()) {
            observableListOfServerObjFunc.add(iter.next());
        }
        observableListOfServerObjFunc.sort(compareServerObjFuncByQualName);
    }
    if (dataTable != null) {
        dataTable.setItems(observableListOfServerObjFunc);
        // 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.CFBamJavaFXServerListFuncListPane.java

public void setJavaFXDataCollection(Collection<ICFBamServerListFuncObj> value) {
    final String S_ProcName = "setJavaFXDataCollection";
    javafxDataCollection = value;//  w  w  w . j  av  a2s.co m
    observableListOfServerListFunc = FXCollections.observableArrayList();
    if (javafxDataCollection != null) {
        Iterator<ICFBamServerListFuncObj> iter = javafxDataCollection.iterator();
        while (iter.hasNext()) {
            observableListOfServerListFunc.add(iter.next());
        }
        observableListOfServerListFunc.sort(compareServerListFuncByQualName);
    }
    if (dataTable != null) {
        dataTable.setItems(observableListOfServerListFunc);
        // 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.CFBamJavaFXServerMethodListPane.java

public void setJavaFXDataCollection(Collection<ICFBamServerMethodObj> value) {
    final String S_ProcName = "setJavaFXDataCollection";
    javafxDataCollection = value;/*from w w w  . ja v a  2 s.  c  o m*/
    observableListOfServerMethod = FXCollections.observableArrayList();
    if (javafxDataCollection != null) {
        Iterator<ICFBamServerMethodObj> iter = javafxDataCollection.iterator();
        while (iter.hasNext()) {
            observableListOfServerMethod.add(iter.next());
        }
        observableListOfServerMethod.sort(compareServerMethodByQualName);
    }
    if (dataTable != null) {
        dataTable.setItems(observableListOfServerMethod);
        // 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.CFBamJavaFXBlobDefListPane.java

public void setJavaFXDataCollection(Collection<ICFBamBlobDefObj> value) {
    final String S_ProcName = "setJavaFXDataCollection";
    javafxDataCollection = value;// w w  w  .  jav  a  2 s .  c o  m
    observableListOfBlobDef = FXCollections.observableArrayList();
    if (javafxDataCollection != null) {
        Iterator<ICFBamBlobDefObj> iter = javafxDataCollection.iterator();
        while (iter.hasNext()) {
            observableListOfBlobDef.add(iter.next());
        }
        observableListOfBlobDef.sort(compareBlobDefByQualName);
    }
    if (dataTable != null) {
        dataTable.setItems(observableListOfBlobDef);
        // Hack from stackoverflow to fix JavaFX TableView refresh issue
        ((TableColumn) dataTable.getColumns().get(0)).setVisible(false);
        ((TableColumn) dataTable.getColumns().get(0)).setVisible(true);
    }
}