Пример #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);
   }
 }
Пример #2
0
 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);
 }
Пример #3
0
  /**
   * 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);
  }
Пример #4
0
  /**
   * 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);
  }
Пример #5
0
  /**
   * 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);
  }
Пример #6
0
  /**
   * 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);
  }
Пример #7
0
 public void selectStatistiche() {
   maliceDisplayContainer.selectTab(STATISTICHE_TAB);
 }
Пример #8
0
 public void selectChiusure() {
   maliceDisplayContainer.selectTab(CHIUSURE_TAB);
 }
Пример #9
0
 public void selectIncassi() {
   maliceDisplayContainer.selectTab(INCASSI_TAB);
 }
Пример #10
0
 public void selectTitoli() {
   maliceDisplayContainer.selectTab(TITOLI_TAB);
 }
Пример #11
0
 public void selectBenvenuto() {
   maliceDisplayContainer.selectTab(BENVENUTO_TAB);
 }
Пример #12
0
 @Override
 public void selectTab(int index) {
   super.selectTab(index);
   ensureSelectedTabIsVisible(true);
 }