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()));
}
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());
}
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());
}
Aggregations