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 ...

Get Ext GWT 2.0 Beginner's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.