Exemple #1
0
 private void displayMessage(final String message) {
   if (message != null && !message.isEmpty()) {
     messageDisplay.setHTML(wrapDisplayMessage(message));
     messageDisplay.setVisible(true);
   } else {
     messageDisplay.setVisible(false);
   }
 }
Exemple #2
0
 private void initMessage(final String message) {
   final RootPanel messagePanel = RootPanel.get("messagePlaceholder");
   messageDisplay.setVisible(false);
   messagePanel.add(messageDisplay);
   displayMessage(message);
 }