Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void resultsRefreshEvent(){
- int probeID = -1;
- char type = 'Z';
- // Receber os dados dos resultados do Coordinator e colocar no Map
- Object probeOpt = probingChoiceBox.getSelectionModel().getSelectedItem();
- if(probeOpt.toString().equals("All"))
- probeID = -1;
- else
- probeID = (int) probingChoiceBox.getSelectionModel().getSelectedItem();
- Object measurementOpt = measurementChoiceBox.getSelectionModel().getSelectedItem();
- if(measurementOpt.toString().equals("All")) {
- type = 'Z';
- }
- else{
- if(measurementOpt.toString().equals("RoutePath"))
- type = 'r';
- else
- type = measurementOpt.toString().charAt(0);
- }
- Pair<String, String> p = refreshResults(probeID, type);
- if(this.measurementList.contains(type)) {
- // Key == RESULT
- if(p.getKey().isEmpty())
- probingTextArea.setText("There Are No Probe Results Available!");
- else
- probingTextArea.setText(p.getKey());
- // Value == ALARM
- if(p.getValue().isEmpty())
- alarmTextArea.setText("No Alarms Fired Yet!");
- else
- alarmTextArea.setText(p.getValue());
- }
- else{
- // Key == RESULT
- probingTextArea.setText("There Are No Probe Results Available!");
- // Value == ALARM
- alarmTextArea.setText("No Alarms Fired Yet!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement