Example #1
0
  @Override
  public void onModuleLoad() {

    //		PagePanel page = new PagePanel();
    //		page.getElement().setId("xxx");
    //		page.add(new LayerPanel(DataRole.header, "sdsds"));
    //		page.add(new LayerPanel(DataRole.content, "sdsds"));
    //		page.add(new LayerPanel(DataRole.footer, "sd"));
    //		page.getElement();
    // RootPanel.get().add(page);
    Utils.console("initialising module");
    JQueryMobile.init();

    Page page = new Page();
    page.setDataTheme(DataTheme.e);
    HeaderBar header = new HeaderBar("HEader app");
    page.add(header);
    Content content = new Content();
    content.add(new Label("sdfsdfsdf"));
    Button but = new Button("try me");
    but.addClickHandler(
        new ClickHandler() {

          @Override
          public void onClick(ClickEvent event) {
            // TODO Auto-generated method stub
            Utils.console("try me");
          }
        });
    header.add(but);

    //	new TestPage();

    RootPanel.get().add(new TestPage());
  }
Example #2
0
 @Override
 protected void onAttach() {
   if (!initialized) {
     initialized = true;
     JQueryMobile.initWidget(this);
   }
   onStaticStyleNameChange(true);
   super.onAttach();
 }