1.

How Can You Create A Custom Gwt Widget?

Answer»

GWT provides THREE ways to create custom user interface elements. There are three general strategies to FOLLOW

  • Create a widget by extending COMPOSITE Class − This is the most COMMON and easiest way to create custom widgets. Here you can use existing widgets to create composite view with custom properties.
  • Create a widget using GWT DOM API in JAVA − GWT basic widgets are created in this way. Still its a very complicated way to create custom widget and should be used cautiously.
  • Use JavaScript and wrap it in a widget using JSNI − This should generally only be done as a last resort. Considering the cross-browser implications of the native methods, it becomes very complicated and also becomes more DIFFICULT to debug.

GWT provides three ways to create custom user interface elements. There are three general strategies to follow −



Discussion

No Comment Found