@Override
 public void setStyleName(String styleName) {
   super.setStyleName(styleName);
   for (int i = 0; i < tabs.getNumTabs(); i++) {
     getRibbonBar(i).asWidget().setStyleName(getStyleName());
   }
 }
Esempio n. 2
0
 private void createExportMenu() {
   exportMenu = new VLayout();
   exportMenu.setLeft(exportButton.getAbsoluteLeft());
   exportMenu.setTop(30);
   exportMenu.setStyleName("n52_sensorweb_client_interactionmenu");
   exportMenu.setAutoHeight();
   exportMenu.setZIndex(1000000);
   exportMenu.addMember(createPDFLabel());
   exportMenu.addMember(createCSVLabel());
   exportMenu.setVisible(false);
 }
  private void initLayout() {
    headerView = new HeaderView();
    actionMenubarView = new ActionMenubarView();
    navigationView = new NavigationView();
    baseContainerView = BaseContainerView.getContainer();

    VLayout mainLayout = new VLayout();
    mainLayout.setCanSelectText(true);
    mainLayout.setStyleName("mainLayout");
    mainLayout.setWidth100();
    mainLayout.setHeight100();

    HLayout headerLayout = new HLayout();
    headerLayout.setWidth100();
    headerLayout.setHeight(UIConstants.HEADER_HEIGHT);
    headerLayout.addMember(headerView);
    mainLayout.addMember(headerLayout);

    HLayout centerLayout = new HLayout();

    navigationView.setShowResizeBar(true);
    centerLayout.addMember(navigationView);

    VLayout containerLayout = new VLayout();
    containerLayout.setBorder("1px solid #a1a1a1");
    containerLayout.setLayoutMargin(2);
    // containerLayout.addMember(actionMenubarView);
    containerLayout.addMember(baseContainerView);
    centerLayout.addMember(containerLayout);
    mainLayout.addMember(centerLayout);

    HLayout southLayout = new HLayout();
    southLayout.setWidth100();
    southLayout.setHeight(30);
    mainLayout.addMember(southLayout);

    initWidget(mainLayout);
  }