Giter Club home page Giter Club logo

gwt-helloworld-mvp's Introduction

A "Hello, World!" MVP for GWT

After going through multiple documents online for GWT and reading upon the recommended MVP pattern for GWT, I found out that setting up the amount of classes and interfaces needed to bootstrap a simple GWT application that follows the pattern is quite tedious everytime. So I wrote some boilerplate code that can help me with creating new applications.

The program consists of a simple textbox that takes any non-zero length input and then echos back the string in the next page with a "Hello," prepended to that text.

Features provided by the sample "Hello, World!"

  1. Implements a simple Application controller in AppController.java.
  2. Implements an eventBus using the internal GWT eventBus.
  3. Implements the basic Presenter interface, and a couple of Presenters for PageOne and PageTwo.
  4. Implements the Views for PageOne and PageTwo using the UIBinder interface.
  5. Implements a basic Event handler Interface for PageOne which is captured in Application Controller.
  6. Demonstrates the usage of "History" to browse the pages.

Notes

The application leaves "shared" and "server" packages empty since the focus of the example is to demonstrate the MVP, but the packages are kept empty for consistency purposes, especially when creating example applications using webAppCreator

Also there is no GWT RPC class implemented in any of the classes, which will be required incase this boilerplate code is planned to be used with a RPC backend.

gwt-helloworld-mvp's People

Contributors

fraggerfox avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.