Search in sources :

Example 1 with PortsManager

use of com.exalttech.trex.ui.PortsManager in project trex-stateless-gui by cisco-system-traffic-generator.

the class PortsController method buildPortStatTable.

private void buildPortStatTable() {
    final PortsManager portsManager = PortsManager.getInstance();
    statTableContainer.getChildren().clear();
    statTableContainer.getChildren().add(statsTableGenerator.getPortStatTable(StatsLoader.getInstance().getShadowStatsList(), portsManager.getPortIndexes(), true, 150, portsSelector.getSelectedPortIndexes()));
}
Also used : PortsManager(com.exalttech.trex.ui.PortsManager)

Example 2 with PortsManager

use of com.exalttech.trex.ui.PortsManager in project trex-stateless-gui by cisco-system-traffic-generator.

the class DashboardPortsSelector method getPortIndexes.

private Set<Integer> getPortIndexes() {
    final String val = portFilterSelector.getSelectionModel().getSelectedItem();
    final PortsManager portsManager = PortsManager.getInstance();
    if (val.equals("All")) {
        return new HashSet<>(portsManager.getPortIndexes());
    }
    return new HashSet<>(PortsManager.getInstance().getOwnedPortIndexes());
}
Also used : PortsManager(com.exalttech.trex.ui.PortsManager) HashSet(java.util.HashSet)

Example 3 with PortsManager

use of com.exalttech.trex.ui.PortsManager in project trex-stateless-gui by cisco-system-traffic-generator.

the class PortsSelectorController method getPortIndexes.

private Set<Integer> getPortIndexes() {
    final String val = portFilterSelector.getSelectionModel().getSelectedItem();
    final PortsManager portsManager = PortsManager.getInstance();
    if (val.equals("All")) {
        return new HashSet<>(portsManager.getPortIndexes());
    }
    return new HashSet<>(PortsManager.getInstance().getOwnedPortIndexes());
}
Also used : PortsManager(com.exalttech.trex.ui.PortsManager) HashSet(java.util.HashSet)

Aggregations

PortsManager (com.exalttech.trex.ui.PortsManager)3 HashSet (java.util.HashSet)2