code: void recalcAlerts() {
          if (!View.isInitialised()) {
              return;
      	}
      	// Must only be called when View is initialised
      	int totalInfo = 0;
      	int totalLow = 0;
      	int totalMedium = 0;
      	int totalHigh = 0;
  
      	AlertNode parent = (AlertNode) getAlertPanel().getTreeAlert().getModel().getRoot();
      	if (parent != null) {
              for (int i=0; i<parent.getChildCount(); i++) {
                  AlertNode child = parent.getChildAt(i);
              	switch (child.getRisk()) {
              	case Alert.RISK_INFO:	totalInfo++;	break;
              	case Alert.RISK_LOW:	totalLow++;		break;
              	case Alert.RISK_MEDIUM:	totalMedium++;	break;
              	case Alert.RISK_HIGH:	totalHigh++;	break;
              	}
              }
      	}
      	MainFooterPanel footer = View.getSingleton().getMainFrame().getMainFooterPanel();
          footer.setAlertInfo(totalInfo);
          footer.setAlertLow(totalLow);
          footer.setAlertMedium(totalMedium);
          footer.setAlertHigh(totalHigh);
      }
docs: Recalculates the total number of alerts by alert's risk contained in the "Alerts" tree and updates the alert's risks
  footer status labels with the new values.
  <p>
  The method has no effect if the view is not initialised.
  </p>
  
  @see AlertPanel#getTreeAlert()
  @see MainFooterPanel#setAlertHigh(int)
  @see MainFooterPanel#setAlertInfo(int)
  @see MainFooterPanel#setAlertLow(int)
  @see MainFooterPanel#setAlertMedium(int)
  @see View#isInitialised()