Example #1
0
 public void showTabsCaption() {
   Iterator<Component> iter = navigatorContainer.iterator();
   while (iter.hasNext()) {
     ButtonTabImpl comp = (ButtonTabImpl) iter.next();
     comp.showCaption();
   }
 }
Example #2
0
 public void setNavigatorWidth(String width) {
   navigatorContainer.setWidth(width);
   Iterator<Component> i = navigatorContainer.iterator();
   while (i.hasNext()) {
     Component childComponent = i.next();
     childComponent.setWidth(width);
   }
 }
Example #3
0
  private void toggleMaximized(final Component panel, final boolean maximized) {
    for (Iterator<Component> it = root.iterator(); it.hasNext(); ) {
      it.next().setVisible(!maximized);
    }
    dashboardPanels.setVisible(true);

    for (Iterator<Component> it = dashboardPanels.iterator(); it.hasNext(); ) {
      Component c = it.next();
      c.setVisible(!maximized);
    }

    if (maximized) {
      panel.setVisible(true);
      panel.addStyleName("max");
    } else {
      panel.removeStyleName("max");
    }
  }
Example #4
0
 private void clearTabSelection(boolean setDefaultIcon) {
   Iterator<Component> iterator = navigatorContainer.iterator();
   if (setDefaultIcon) {
     while (iterator.hasNext()) {
       Component btn = iterator.next();
       if (btn.getStyleName().contains(TAB_SELECTED_STYLENAME)) {
         btn.removeStyleName(TAB_SELECTED_STYLENAME);
         setDefaulButtonIcon(btn, false);
       }
     }
   } else {
     while (iterator.hasNext()) {
       Component btn = iterator.next();
       if (btn.getStyleName().contains(TAB_SELECTED_STYLENAME)) {
         btn.removeStyleName(TAB_SELECTED_STYLENAME);
       }
     }
   }
 }