Package org.pentaho.gwt.widgets.client.tabs

Examples of org.pentaho.gwt.widgets.client.tabs.PentahoTab


  }-*/;

  // used via JSNI
  private void doTabRename() {
    if ( tabName != null ) { // Save-As does not modify the name of the tab.
      PentahoTab tab = SolutionBrowserPanel.getInstance().getContentTabPanel().getSelectedTab();
      tab.setLabelText( tabName );
      tab.setLabelTooltip( tabName );
    }
  }
View Full Code Here


      // and then remove
      if ( curpos >= 0 && getTabCount() > 0 ) {
        closeTab( curpos, true );
      }
    }
    PentahoTab pt = getTab( curpos );
    if ( pt != null && pt.getContent() != null ) {
      IFrameTabPanel curPanel = (IFrameTabPanel) getTab( curpos ).getContent();
      if ( url.contains( curPanel.getUrl() ) ) {
        closeTab( curpos, true );
      }
View Full Code Here

  }

  public void selectTab( final PentahoTab selectedTab ) {

    // Save previous tab's solution browser panel navigator state
    PentahoTab prevTab = getSelectedTab();
    if ( prevTab != null && prevTab instanceof MantleTab ) {
      MantleTab mantlePrevTab = (MantleTab) prevTab;
      boolean prevState = SolutionBrowserPanel.getInstance().isNavigatorShowing();
      if ( mantlePrevTab != null ) {
        mantlePrevTab.setSolutionBrowserShowing( prevState );
      }
    }
    super.selectTab( selectedTab );

    if ( selectedTab == null ) {
      return;
    }
    if ( selectedTab instanceof MantleTab ) {
      // restore previous state of solution browser panel navigator
      MantleTab mantleTab = (MantleTab) selectedTab;
      SolutionBrowserPanel.getInstance().setNavigatorShowing( mantleTab.isSolutionBrowserShowing() );
    }
    Widget selectTabContent = null;
    if ( getTab( getSelectedTabIndex() ) != null ) {
      selectTabContent = getTab( getSelectedTabIndex() ).getContent();
    }
    List<FileItem> selectedItems = SolutionBrowserPanel.getInstance().getFilesListPanel().getSelectedFileItems();
    EventBusUtil.EVENT_BUS.fireEvent( new SolutionBrowserSelectEvent( selectTabContent, selectedItems ) );

    Window.setTitle( Messages.getString( "productName" ) + " - " + selectedTab.getLabelText() ); //$NON-NLS-1$ //$NON-NLS-2$

    // first turn off all tabs that should be
    for ( int i = 0; i < getTabCount(); i++ ) {
      final PentahoTab tab = getTab( i );
      if ( tab.getContent() instanceof IFrameTabPanel ) {
        if ( tab.getContent() != selectedTab.getContent() ) {
          FrameUtils.setEmbedVisibility( ( (IFrameTabPanel) tab.getContent() ).getFrame(), false );
        }
      }
    }

    // now turn on the select tab
View Full Code Here

  /**
   * @param tab
   */
  public void showTab( Tabs tab ) {
    for ( int i = 0; i < propertyTabs.getTabCount(); i++ ) {
      PentahoTab pTab = propertyTabs.getTab( i );
      switch ( tab ) {
        case GENERAL:
          if ( pTab.getContent() == generalTab ) {
            propertyTabs.selectTab( pTab );
          }
          break;
        case PERMISSION:
          if ( canManageAcls && pTab.getContent() == permissionsTab ) {
            propertyTabs.selectTab( pTab );
          }
          break;
        default:
          break;
View Full Code Here

TOP

Related Classes of org.pentaho.gwt.widgets.client.tabs.PentahoTab

Copyright © 2018 www.massapicom. 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.