How to create custom widgets in GWT?
Submitted by: AdministratorCreate a class that should extends Composite class of GWT.
Inside the constructor you can write you logic to create a widget and call the initWidget method().
Then you can use this class in anywhere in the application and add this widget in any panels.
private static class OptionalTextBox extends Composite implements
ClickHandler {
private TextBox textBox = new TextBox();
private CheckBox checkBox = new CheckBox();
--------
initWidget(panel);
-------
}
Submitted by: Administrator
Inside the constructor you can write you logic to create a widget and call the initWidget method().
Then you can use this class in anywhere in the application and add this widget in any panels.
private static class OptionalTextBox extends Composite implements
ClickHandler {
private TextBox textBox = new TextBox();
private CheckBox checkBox = new CheckBox();
--------
initWidget(panel);
-------
}
Submitted by: Administrator
Read Online EXT-GWT Job Interview Questions And Answers
Top EXT-GWT Questions
☺ | What is EXT GWT (Google Web Toolkit)? |
☺ | Explain GWT components? |
☺ | Tell me how to make GWT Custom Event Handler? |
☺ | Basic GWT questions: |
☺ | Explain how GWT Navigation works? |
Top Scripting language Categories
☺ | AngularJS Interview Questions. |
☺ | Ext-JS Interview Questions. |
☺ | Dojo Interview Questions. |
☺ | Expert Developer JavaScript Interview Questions. |
☺ | jQuery Mobile Interview Questions. |