Esempio n. 1
0
  @Override
  public void start(AcceptsOneWidget panel, final EventBus eventBus) {
    super.start(panel, eventBus);
    AboutView aboutView = clientFactory.getAboutView();

    aboutView.getBackbuttonText().setText("Home");

    aboutView.getHeader().setText("About");

    aboutView.getMainButtonText().setText("Nav");

    addHandlerRegistration(
        aboutView
            .getBackbutton()
            .addTapHandler(
                new TapHandler() {

                  @Override
                  public void onTap(TapEvent event) {
                    ActionEvent.fire(eventBus, ActionNames.BACK);
                  }
                }));

    panel.setWidget(aboutView);
  }
Esempio n. 2
0
 public AboutActivity(ClientFactory clientFactory) {
   super(clientFactory.getAboutView(), "nav");
   this.clientFactory = clientFactory;
 }