Package javafx.scene.control

Examples of javafx.scene.control.TableView


    public SnapshotTable(ObservableList<Snapshot> snapshots) {
        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


            EffectFX.colorAdjustProg(prog_bk_total);

            //----------------------------------------------------------------//
            //----------------------------------------------------------------//
            //----------------------------------------------------------------//
            table = new TableView();
            table.setEditable(false);

            initializeColumns(
                    Arrays.asList(col_names),
                    table,
View Full Code Here

            LooB.get().loadJFXUI("plugins/gui/TableAccount.fxml");

            tab_border_pane = (BorderPane) Utility.getFromCacheNode("tab_border_pane");
            first_tab.setContent(tab_border_pane);

            __table = new TableView();
            __table.setEditable(false);

            initializeColumns(
                    Arrays.asList(col_names),
                    __table,
View Full Code Here

            MakiDI.get().loadJFXUI("plugins/gui/TableAccount.fxml");

            tab_border_pane = (BorderPane) UtilityFX.getFromCacheNode("tab_border_pane");
            first_tab.setContent(tab_border_pane);

            __table = new TableView();
            __table.setEditable(false);

            initializeColumns(
                    Arrays.asList(col_names),
                    __table,
View Full Code Here

            EffectFX.colorAdjustProg(prog_bk_total);

            //----------------------------------------------------------------//
            //----------------------------------------------------------------//
            //----------------------------------------------------------------//
            table = new TableView();
            table.setEditable(false);

            initializeColumns(
                    Arrays.asList(col_names),
                    table,
View Full Code Here

            MakiDI.get().loadJFXUI("plugins/gui/TableAccount.fxml");

            tab_border_pane = (BorderPane) UtilityFX.getFromCacheNode("tab_border_pane");
            first_tab.setContent(tab_border_pane);

            __table = new TableView();
            __table.setEditable(false);

            initializeColumns(
                    Arrays.asList(col_names),
                    __table,
View Full Code Here

            EffectFX.colorAdjustProg(prog_bk_total);

            //----------------------------------------------------------------//
            //----------------------------------------------------------------//
            //----------------------------------------------------------------//
            table = new TableView();
            table.setEditable(false);

            initializeColumns(
                    Arrays.asList(col_names),
                    table,
View Full Code Here

                if (valueToMatch instanceof Predicate)
                    return TableViews.containsCell(getTableView(query), (Predicate) valueToMatch);
                return TableViews.containsCell(getTableView(query), valueToMatch);
            }
            else if (o instanceof TableView) {
                TableView tableView = (TableView) o;
                if (valueToMatch instanceof Predicate)
                    return TableViews.containsCell(tableView, (Predicate) valueToMatch);
                return TableViews.containsCell(tableView, valueToMatch);
            }
            return false;
View Full Code Here

public class TableViewFactory implements Callback<Void, FXFormNode> {


    @Override
    public FXFormNode call(Void aVoid) {
        final TableView tableView = new FXFormTableView();

        return new FXFormNodeWrapper(tableView, new TableViewProperty(tableView)) {
            @Override
            public void init(Element element) {
                Class wrappedType = element.getWrappedType();
                List<Field> fields = ReflectionUtils.listFields(wrappedType);
                for (Field field : fields) {
                    TableColumn col = new TableColumn(field.getName());
                    col.setCellValueFactory(new PropertyValueFactory(field.getName()));
                    tableView.getColumns().add(col);
                }
            }
        };
    }
View Full Code Here

TOP

Related Classes of javafx.scene.control.TableView

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.