onModuleLoad()
.
+ */
+public class Google_web_toolkit implements EntryPoint {
+ private final MessageServiceAsync messageServiceAsync = GWT.create(MessageService.class);
+
+ public void onModuleLoad() {
+ Button sendButton = new Button("Submit");
+ TextBox nameField = new TextBox();
+ nameField.setText("Hi there");
+
+ Label warningLabel = new Label();
+
+ sendButton.addStyleName("sendButton");
+
+ RootPanel.get("nameFieldContainer").add(nameField);
+ RootPanel.get("sendButtonContainer").add(sendButton);
+ RootPanel.get("errorLabelContainer").add(warningLabel);
+
+ Button closeButton = new Button("Thanks");
+ closeButton.getElement().setId("closeButton");
+
+ Label textToServerLabel = new Label();
+ HTML serverResponseLabel = new HTML();
+ VerticalPanel vPanel = new VerticalPanel();
+ vPanel.addStyleName("vPanel");
+ vPanel.add(new HTML("Sending message to the server:"));
+ vPanel.add(textToServerLabel);
+ vPanel.add(new HTML("MessageService
.
+ */
+public interface MessageServiceAsync {
+ void sendMessage(String input, AsyncCallbackPlease enter your message: | +|
+ | + |
+ | |
+ |