GWT%20Interview%20Questions%20and%20Answers
Question: How to create custom widgets in GWT?Answer: Create 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); ------- } |
Is it helpful?
Yes
No
Most helpful rated by users:
- What is Google Web Toolkit (GWT)?
- How many modes are provided by GWT to execute application?
- What are Modules, Entry Points and HTML Pages in GWT?
- How can you set Browser targeted Compilation in GWT?
- How can we run GWT application?