コード例 #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);
  }
コード例 #2
0
 public AboutActivity(ClientFactory clientFactory) {
   super(clientFactory.getAboutView(), "nav");
   this.clientFactory = clientFactory;
 }