Examples of Tab


Examples of com.citytechinc.cq.component.dialog.tab.Tab

    wcp.setContainedElements(tab.getElements());
    WidgetCollection widgetCollection = new WidgetCollection(wcp);
    TabParameters tabParams = new TabParameters();
    tabParams.setTitle(tab.getTitle());
    tabParams.setContainedElements(Arrays.asList(new DialogElement[] { widgetCollection }));
    return new Tab(tabParams);
  }
View Full Code Here

Examples of com.github.gwtbootstrap.client.ui.Tab

        multiPage.selectTab(0);
        generalTab.load();
    }

    private void addPage(final String text) {
        Tab tab = new Tab();
        tab.setHeading(text);
        tab.add(new Empty(text));
        multiPage.add(tab);
    }
View Full Code Here

Examples of com.google.gwt.chrome.crx.client.Tabs.Tab

        new RequestEvent.Listener() {
          public void onRequest(JavaScriptObject request, Sender sender,
              SendResponse sendResponse) {
            if (DataBag.getBooleanProperty(request, "autoOpen")) {
              // Open Speed Tracer.
              Tab tab = sender.getTab();
              monitorTabClickListener.onClicked(tab);
              // The Monitor coming alive and calling back should be
              // asynchronous. We should be able to stick in the SendResponse
              // callback in before the Monitor calls back, and then notify the
              // content script after we know the monitor is opened and ready.
              BrowserConnectionState browserConnection = browserConnectionMap.get(CHROME_BROWSER_ID);
              browserConnection.tabMap.get(tab.getId()).monitorOpenedCallback = sendResponse.cast();
            }
          }
        });
  }
View Full Code Here

Examples of com.google.gwt.topspin.desktop.client.TabBar.Tab

    panel = new Panel(getCompositeContainer());

    tabBar = new TabBar(panel.getContainer());
    tabBar.addTabSelectedListener(new TabBar.TabSelectedListener() {
      public void onTabSelected(TabSelectedEvent event) {
        Tab tab = event.getTab();
        int index = tabs.indexOf(tab);
        selectTab(index);
      }
    });

    deckPanel = new DeckPanel(panel.getContainer());
    deckContainer = new WrapperContainer(deckPanel.getContainer()) {
      public void add(Widget widget) {
        super.add(widget);

        widgets.add(widget);
        tabs.add(new TabBar.Tab(tabBar));
      }

      public void remove(Widget widget) {
        super.remove(widget);

        int tabIndex = getTabIndexForWidget(widget);
        assert (tabIndex != -1);

        Tab tab = tabs.get(tabIndex);
        tab.destroy();

        // TODO(jgw): Deal with the selected widget being removed.

        widgets.remove(tabIndex);
        tabs.remove(tabIndex);
View Full Code Here

Examples of com.gwtplatform.mvp.client.Tab

    super();
  }

  @Override
  public Tab addTab(TabData tabData, String historyToken) {
    Tab newTab = createNewTab(tabData.getPriority());
    int beforeIndex;
    for (beforeIndex = 0; beforeIndex < tabList.size(); ++beforeIndex) {
      if (newTab.getPriority() < tabList.get(beforeIndex).getPriority()) {
        break;
      }
    }
    tabPanel.insert(newTab.asWidget(), beforeIndex);
    tabList.add(beforeIndex, newTab);
    newTab.setText(tabData.getLabel());
    newTab.setTargetHistoryToken(historyToken);
    return newTab;
  }
View Full Code Here

Examples of com.liferay.faces.alloy.component.tab.Tab

            clientId + TabViewRenderer.SELECTED_INDEX));

      // If iterating over a data model, then determine the row data and tab associated with the data model
      // iteration.
      Object rowData = null;
      Tab tab = null;
      String var = getVar();

      if (var != null) {
        setRowIndex(selectedIndex);
        rowData = getRowData();
View Full Code Here

Examples of com.smartgwt.client.widgets.tab.Tab

    banner.setBackgroundRepeat(BkgndRepeat.NO_REPEAT);
    main.addMember(banner);

    TabSet tabs = new TabSet();

    Tab tab1 = new Tab("Default Ribbon");
    tab1.setPane(getExample1());
    tabs.addTab(tab1);

    Tab tab2 = new Tab("Tabbed Ribbon");
    tab2.setPane(getExample2());
    tabs.addTab(tab2);

    Tab tab3 = new Tab("Custom Ribbon Widgets");
    tab3.setPane(getExample3());
    tabs.addTab(tab3);

    Tab tab4 = new Tab("Custom Ribbon Style");
    tab4.setPane(getExample4());
    tabs.addTab(tab4);

    main.addMember(tabs);
    main.draw();
  }
View Full Code Here

Examples of com.smartgwt.client.widgets.tab.Tab

      public void execute(GetClientUserDataResponse response) {
        RibbonInfo info = (RibbonInfo) response.getInformation();
        for (RibbonBarInfo tabInfo : info.getTabs()) {
          RibbonBarLayout ribbon = new RibbonBarLayout(tabInfo, mapWidget);
          ribbon.setBorder("0px");
          Tab tab = new Tab(tabInfo.getTitle());
          tab.setPane(ribbon);
          tabs.addTab(tab);
        }
      }
    });
  }
View Full Code Here

Examples of com.smartgwt.client.widgets.tab.Tab

    }
  }

  private void showSample(SamplePanel panel, String name, String icon) {
    String tabId = panel.getId() + "_tab";
    Tab tab = mainTabSet.getTab(tabId);
    if (tab == null) {
      tab = new Tab();
      tab.setID(tabId);
      String imgHTML = Canvas.imgHTML(icon, 16, 16);
      tab.setTitle("<span>" + imgHTML + "&nbsp;" + name + "</span>");
      tab.setPane(panel);
      tab.setCanClose(true);
      mainTabSet.addTab(tab);
    }
    mainTabSet.selectTab(tab);
  }
View Full Code Here

Examples of com.smartgwt.client.widgets.tab.Tab

    mainTabSet.selectTab(tab);
  }

  private void showIntroductionTab() {
    IntroductionTab sample = new IntroductionTab();
    Tab tab = new Tab();
    tab.setID(sample.getId() + "_tab");
    String imgHTML = Canvas.imgHTML("[ISOMORPHIC]/geomajas/geomajas_desktopicon_small.png", 16, 16);
    tab.setTitle("<span>" + imgHTML + "&nbsp;" + I18nProvider.getSampleMessages().introductionTitle() + "</span>");
    tab.setPane(sample.getViewPanel());
    mainTabSet.addTab(tab);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.