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