Beispiel #1
0
 private void chooseTab(String token) {
   if (NameTokens.SUMMARY.equals(token)) {
     mainTabPanel.selectTab(0);
   } else if (NameTokens.TRENDS.equals(token)) {
     mainTabPanel.selectTab(1);
   } else {
     mainTabPanel.selectTab(2);
   }
 }
 public MainAgenteLayout() {
   setStylePrimaryName(MaliceResources.INSTANCE.main().agenteLayout());
   add(toolbarsContainerPanel);
   add(maliceDisplayContainer);
   // MALICEDISPLAYCONTAINER
   maliceDisplayContainer.setAnimationDuration(0); // in millisec
   maliceDisplayContainer.add(benvenutoScrollPanel);
   maliceDisplayContainer.add(titoliScrollPanel);
   maliceDisplayContainer.add(incassiScrollPanel);
   maliceDisplayContainer.add(chiusureScrollPanel);
   maliceDisplayContainer.add(statisticheScrollPanel);
   maliceDisplayContainer.selectTab(BENVENUTO_TAB);
   setVisible(false);
 }
  /**
   * Delegate method.
   *
   * <p>
   *
   * @see com.google.gwt.user.client.ui.TabLayoutPanel#selectTab(int index)
   * @param tabIndex the index of the tab to be selected
   * @param fireEvent <code>true</code> to fire the tab event
   */
  public void selectTab(int tabIndex, boolean fireEvent) {

    m_tabPanel.selectTab(tabIndex, fireEvent);
  }
  /**
   * Delegate method.
   *
   * <p>
   *
   * @see com.google.gwt.user.client.ui.TabLayoutPanel#selectTab(int index)
   * @param tabIndex the index of the tab to be selected
   */
  public void selectTab(int tabIndex) {

    m_tabPanel.selectTab(tabIndex);
  }
  /**
   * Delegate method.
   *
   * <p>
   *
   * @see com.google.gwt.user.client.ui.TabLayoutPanel#selectTab(Widget index)
   * @param tabWidget the tab widget to select
   * @param fireEvent <code>true</code> to fire the tab event
   */
  public void selectTab(E tabWidget, boolean fireEvent) {

    m_tabPanel.selectTab(tabWidget, fireEvent);
  }
  /**
   * Delegate method.
   *
   * <p>
   *
   * @see com.google.gwt.user.client.ui.TabLayoutPanel#selectTab(Widget index)
   * @param tabWidget the tab widget to select
   */
  public void selectTab(E tabWidget) {

    m_tabPanel.selectTab(tabWidget);
  }
 public void selectStatistiche() {
   maliceDisplayContainer.selectTab(STATISTICHE_TAB);
 }
 public void selectChiusure() {
   maliceDisplayContainer.selectTab(CHIUSURE_TAB);
 }
 public void selectIncassi() {
   maliceDisplayContainer.selectTab(INCASSI_TAB);
 }
 public void selectTitoli() {
   maliceDisplayContainer.selectTab(TITOLI_TAB);
 }
 public void selectBenvenuto() {
   maliceDisplayContainer.selectTab(BENVENUTO_TAB);
 }
 @Override
 public void selectTab(int index) {
   super.selectTab(index);
   ensureSelectedTabIsVisible(true);
 }