private void updateDisplay() {
   startedCB.setSelected(parser.isStarted());
   // UI is disabled when started
   monitoredPathTB.setEnabled(!parser.isStarted());
   getPathButton.setEnabled(!parser.isStarted());
   parsedValuesLabel.setText("Parsed Values:" + Long.toString(parser.getCountParsed()));
   monitoredPathTB.setText(parser.getMonitoredPath());
 }
  public void handleEvent(DataParserGLEONCentral.events e) {

    if (e == DataParserGLEONCentral.events.stopped || e == DataParserGLEONCentral.events.started) {

      startedCB.setSelected(parser.isStarted());
      // UI is disabled when started
      monitoredPathTB.setEnabled(!parser.isStarted());
      getPathButton.setEnabled(!parser.isStarted());

    } else if (e == DataParserGLEONCentral.events.valParsed) {
      parsedValuesLabel.setText("Parsed Values:" + Long.toString(parser.getCountParsed()));
    } else if (e == DataParserGLEONCentral.events.reconfigured) {
      monitoredPathTB.setText(parser.getMonitoredPath());
    }
  }