How gwtmaterialdesign/gwt-material-demo works
This repository is primarily a GWT Material demo application: users browse examples of the library’s components, add-ins, animations, charts, and applications. Its Java tree organizes these examples into sections, but the sampled source does not show the application’s routing or presenter-to-view wiring, so those relationships are not asserted. Separately, the repository includes a service-worker generator and template, plus a GWT UiBinder XML element helper. The generator-to-template relationship is visible; other links between these distinct areas are not shown in the excerpts.
Main entry points: ApplicationModule.java Application section · sw-template.js Worker template · Application.java Demo shell · sw-builder.js Cache-file scanner
Components 17
Demo application
- Demo shell
src/main/java/gwt/material/design/demo/client/Application.java - Application section
src/main/java/gwt/material/design/demo/client/application/ApplicationModule.java - About section
src/main/java/gwt/material/design/demo/client/application/about/AboutPresenter.java - Theme control
src/main/java/gwt/material/design/demo/client/ThemeManager.java
Feature examples
- UI components
src/main/java/gwt/material/design/demo/client/application/components - Add-in demos
src/main/java/gwt/material/design/demo/client/application/addins - Animations
src/main/java/gwt/material/design/demo/client/application/animations - Charts
src/main/java/gwt/material/design/demo/client/application/charts/ChartsPresenter.java - App demos
src/main/java/gwt/material/design/demo/client/application/apps/AppsPresenter.java
Service worker
- Cache-file scanner
bin/sw-builder.js - Worker template
bin/sw-template.js - Browser cache
- Network fetch
- Push events
- Browser notifications
UiBinder support
- XML element parser
src/main/java/com/google/gwt/uibinder/rebind/XMLElement.java
Other components
- Demo visitor
Connections 14
- Demo visitor → Demo shell: browses demo
README.md - Demo shell → Application section: opens section
- Application section → About section: offers about
- Application section → UI components: offers examples
- Application section → Add-in demos: offers examples
- Application section → Animations: offers examples
- Application section → Charts: offers examples
- Application section → App demos: offers examples
- Cache-file scanner → Worker template: renders template
bin/sw-builder.js - Worker template → Browser cache: caches assets
bin/sw-template.js - Worker template → Browser cache: serves cache match
bin/sw-template.js - Worker template → Network fetch: fetches on miss
bin/sw-template.js - Push events → Worker template: dispatches push
bin/sw-template.js - Worker template → Browser notifications: shows notification
bin/sw-template.js