setText(??????);
button.setEnabled(true);
}
} catch (Exception e) {
}
}
});
button.addClickListener(new ClickListener() {
public void onClick(Widget sender) {
String catalogId = textBox1.getText();
arrayList = new ArrayList();
arrayList.add(0, catalogId);
arrayList.add(1, textBox2.getText());
arrayList.add(2, textBox3.getText());
arrayList.add(3, textBox4.getText());
arrayList.add(4, textBox5.getText());
arrayList.add(5, textBox6.getText());
catalogHashMap.put(catalogId, arrayList);
82 4 Ajax with Java-GWT
}});
RootPanel.get(???label1???).add(label1);
RootPanel.get(???label2???).add(label2);
RootPanel.get(???label3???).add(label3);
RootPanel.get(???label4???).add(label4);
RootPanel.get(???label5???).add(label5);
RootPanel.get(???label6???).add(label6);
RootPanel.get(???textBox1???).add(textBox1);
RootPanel.get(???textBox2???).add(textBox2);
RootPanel.get(???textBox3???).add(textBox3);
RootPanel.get(???textBox4???).add(textBox4);
RootPanel.get(???textBox5???).add(textBox5);
RootPanel.get(???textBox6???).add(textBox6);
RootPanel.get(???button???).add(button);
RootPanel.get(???label7???).add(label7);}}
Copy the CatalogForm.java listing to the CatalogForm.java class in
JDeveloper. Next, we shall run the GWT application in hosted mode. We
need to set the runtime configuration to the hosted mode as shown in Fig.
4.16.
Fig. 4.16 Setting Run Configuration to Hosted Mode
Right-click on the GWT Web Project in the Application Navigator
and select Run as shown in Fig.
Pages:
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90