O'Reilly logo

Ext GWT 2.0 Beginner's Guide by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - creating the FeedPanel Controller and View

  1. In the AppEvents class, define a new EventType named FeedPanelReady.
    public static final EventType FeedPanelReady = new EventType();
    
  2. Create a new class named FeedController that extends Controller in the package client.mvc.controllers.
    public class FeedController extends Controller {}
    
  3. Create a new class named FeedView that extends View in the package client.mvc.views. This view should have a constructor that takes a FeedController instance as a parameter.
    public FeedView(FeedController feedController) {
    super(feedController);
    }
    
  4. In the FeedController constructor, register the Init EventType.
    public FeedController() {
    registerEventTypes(AppEvents.Init);
    }
    
  5. Define a field for a FeedView instance ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required