202203204205206207208209
public void fireErrorMessage(String error) { ErrorListener[] listeners = (ErrorListener[]) errorListeners.getListeners(ErrorListener.class); for (ErrorListener l : listeners) { l.displayError(new ErrorMessageEvent(this, error)); } }