Details

      Description

      final Accordion accordion = new Accordion ();
              TableView configTableView = new TableView();
              ListView<String> historyList = new ListView<String>();
              TitledPane configTitledPane=new TitledPane("Computer",configTableView);
              TitledPane historyTitledPane=new TitledPane("History",historyList);
              TableColumn idTableColumn = new TableColumn("id");
              TableColumn nameTableColumn = new TableColumn("name");
              TableColumn ipTableColumn = new TableColumn("ip");
              configTableView.getColumns().addAll(idTableColumn, nameTableColumn,ipTableColumn);
              final ObservableList<Configuration> data = FXCollections.observableArrayList(
                  new Configuration("1", "pc1", "192.168.1.1"),
                  new Configuration("2", "pc2", "192.168.1.2"),
                  new Configuration("3", "pc3", "192.168.1.3")
              );
              idTableColumn.setCellValueFactory(
                  new PropertyValueFactory<Configuration,String>("configurationId")
              );
              nameTableColumn.setCellValueFactory(
                  new PropertyValueFactory<Configuration,String>("configurationName")
              );
              ipTableColumn.setCellValueFactory(
                  new PropertyValueFactory<Configuration,String>("configurationIp")
              );
              configTableView.setItems(data);

      ObservableList<String> historyItems =FXCollections.observableArrayList ("1", "2");
              historyList.setItems(historyItems);
              final TitledPane[] tps = new TitledPane[]{configTitledPane,historyTitledPane};
              accordion.getPanes().addAll(tps);

        Attachments

          Activity

            People

            • Assignee:
              jgiles Jonathan Giles
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: