Tags : Browse Projects

Select a tag to browse associated projects and drill deeper into the tag cloud.

gwtprogressiveenhancement

Compare

  No analysis available

A GWT library to aid in injection of widget into an otherwise non-gwt page. Add ModuleRegistering Widgets Enhancer.getInstance().registerEnhancer("myWidgetId", new WidgetBuilder() { @Override public Widget createInstance(AttributeProvider attributes) { SimplePanel widget = new ... [More] SimplePanel(); widget.add(new Label("Hello World")); return widget; } }); Define Entry PointsThere are several ways you can direct the enhancer to populate your page with widgets The simplest way is to use the widgetId as the div's elementId: if an element needs enhancing after a page has loaded you can invoke a single load enhanceElementById('myWidgetId'); if you want to reuse a single widget in different divs enhanceElementByTag('myUnmatchedTagId', 'myWidgetId'); Define Config AttributesYou can define some parameters to be passed into a widget Enhancer.getInstance().registerEnhancer("myWidgetId", new WidgetBuilder() { @Override public Widget createInstance(AttributeProvider attributes) { SimplePanel widget = new SimplePanel(); widget.add(new Label("Hello World :: " + attributes.getAttribute("AttrName", "DefaultValue"))); return widget; } });By specifying a nested tag set within the element to be enhanced enhanceElementById('myWidgetId'); [Less]

0 lines of code

0 current contributors

0 since last commit

0 users on Open Hub

Activity Not Available
0.0
 
I Use This
Mostly written in language not available
Licenses: lgpl