Esempio n. 1
0
  public DeviceUc(SimplePanel wrapperPanel, HeaderUc headerUc) {
    initWidget(uiBinder.createAndBindUi(this));
    this.headerUc = headerUc;
    this.wrapperPanel = wrapperPanel;

    androidSectiondiv.getElement().setId("pnlAndroidSectiondiv");
    ipadSectiondiv.getElement().setId("pnlIpadSectiondiv");

    msglinkPanel.getElement().setId("pnlMsglinkPanel");
    msgPanel.getElement().setId("pnlMsgPanel");
    closeAndriodBtn.getElement().setId("imgCloseAndriodBtn");

    closeIpadBtn.getElement().setId("imgCloseIpadBtn");
    gooruPanel.getElement().setId("pnlGooruPanel");
    ednovoPanel.getElement().setId("pnlEdnovoPanel");
    appstorePanel.getElement().setId("pnlAppstorePanel");
    viewAnchor.getElement().setId("lnkViewAnchor");

    setUiText();

    if (isIpad && !StringUtil.IPAD_MESSAGE_Close_Click) {
      ipadSectiondiv.setVisible(true);
      androidSectiondiv.setVisible(false);
      ipadSectiondiv.getElement().setAttribute("style", "margin-top:-20px;");
      wrapperPanel.getElement().setAttribute("style", "margin-top:0px;");
      headerUc.getElement().getFirstChildElement().setAttribute("style", "position:relative;");
    } else if (isAndriod && !StringUtil.IPAD_MESSAGE_Close_Click) {
      ipadSectiondiv.setVisible(false);
      androidSectiondiv.setVisible(true);
      androidSectiondiv.getElement().setAttribute("style", "margin-top:-20px;");
      wrapperPanel.getElement().setAttribute("style", "margin-top:0px;");
      headerUc.getElement().getFirstChildElement().setAttribute("style", "position:relative;");
    }
  }
Esempio n. 2
0
 @UiHandler("closeAndriodBtn")
 public void onAndriodCloseClick(ClickEvent clickEvent) {
   ipadSectiondiv.setVisible(false);
   StringUtil.IPAD_MESSAGE_Close_Click = true;
   androidSectiondiv.setVisible(false);
   wrapperPanel.getElement().setAttribute("style", "margin-top:36px;");
   headerUc.getElement().getFirstChildElement().setAttribute("style", "position:fixed;");
   LibraryView.onClosingAndriodorIpaddiv();
   ShelfListView.onClosingAndriodorIpaddiv();
   ShelfView.onClosingAndriodorIpaddiv();
   DiscoverToolTip.onclickOfAndriodorIpadcloseDiv();
 }