Package javafx.collections

Examples of javafx.collections.ObservableList


        this.snapshots = snapshots;
    }

    public Node createTable() {
        TableView tableView = new TableView();
        ObservableList columns = tableView.getColumns();
        columns.add(createColumn("monitoringTime", "Monitoring Time"));
        columns.add(createColumn("usedHeapSizeInMB", "Heap Size"));
        columns.add(createColumn("threadCount", "Thread Count"));
        columns.add(createColumn("peakThreadCount", "Peak Thread Count"));
        columns.add(createColumn("totalErrors", "Total Errors"));
        columns.add(createColumn("currentThreadBusy", "Busy Threads"));
        columns.add(createColumn("committedTX", "Commits"));
        columns.add(createColumn("rolledBackTX", "Rollbacks"));
        columns.add(createColumn("queuedConnections", "Queued Connections"));
        columns.add(createColumn("totalErrors", "Total Errors"));
        columns.add(createColumn("activeSessions", "Active Sessions"));
        columns.add(createColumn("expiredSessions", "Expired Sessions"));
        tableView.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
        tableView.setItems(this.snapshots);
        return tableView;
    }
View Full Code Here


            try {

                List<Double> prefWidth = new ArrayList<>();

                try {
                    ObservableList cl = table.getColumns();
                    cl.stream().forEach((cl1) -> {
                        prefWidth.add(((TableColumn) cl1).getWidth());
                    });
                } catch (Exception ex) {
                    ex.printStackTrace();
                }

                table.getColumns().clear();
                initializeColumns(columns, table, pvfValue, listCalls, prefWidth);

                ObservableList cl = table.getColumns();
                for (int i = 0; i < cl.size(); i++) {
                    ((TableColumn) cl.get(i)).setVisible(false);
                    ((TableColumn) cl.get(i)).setVisible(true);
                }
            } catch (Exception ex) {
                ex.printStackTrace();
            }
        });
View Full Code Here

            try {

                List<Double> prefWidth = new ArrayList<>();

                try {
                    ObservableList cl = table.getColumns();
                    cl.stream().forEach((cl1) -> {
                        prefWidth.add(((TableColumn) cl1).getWidth());
                    });
                } catch (Exception ex) {
                    ex.printStackTrace();
                }

                table.getColumns().clear();
                initializeColumns(columns, table, pvfValue, listCalls, prefWidth);

                ObservableList cl = table.getColumns();
                for (int i = 0; i < cl.size(); i++) {
                    ((TableColumn) cl.get(i)).setVisible(false);
                    ((TableColumn) cl.get(i)).setVisible(true);
                }
            } catch (Exception ex) {
                ex.printStackTrace();
            }
        });
View Full Code Here

            try {

                List<Double> prefWidth = new ArrayList<>();

                try {
                    ObservableList cl = table.getColumns();
                    cl.stream().forEach((cl1) -> {
                        prefWidth.add(((TableColumn) cl1).getWidth());
                    });
                } catch (Exception ex) {
                    ex.printStackTrace();
                }

                table.getColumns().clear();
                initializeColumns(columns, table, pvfValue, listCalls, prefWidth);

                ObservableList cl = table.getColumns();
                for (int i = 0; i < cl.size(); i++) {
                    ((TableColumn) cl.get(i)).setVisible(false);
                    ((TableColumn) cl.get(i)).setVisible(true);
                }
            } catch (Exception ex) {
                ex.printStackTrace();
            }
        });
View Full Code Here

TOP

Related Classes of javafx.collections.ObservableList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.