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