Package net.sourceforge.squirrel_sql.client.session.mainpanel.objecttree.tabs

Examples of net.sourceforge.squirrel_sql.client.session.mainpanel.objecttree.tabs.IObjectTab


    return _tabPnl;
  }

  IObjectTab getTabIfSelected(String title)
  {
    IObjectTab tab = getSelectedTab();
    if ((tab != null) && (tab.getTitle().equals(title)))
    {
      return tab;
    }
    return null;
  }
View Full Code Here


    }
    return null;
  }

    IObjectTab getSelectedTab() {
        IObjectTab tab = _tabs.get(_tabPnl.getSelectedIndex());
        return tab;
    }
View Full Code Here

    if (_tabs.size() == 1 && _tabPnl.getTabCount() == 0) {
            log.debug(
                "addObjectPanelTab: _tabs.size() == 1, but " +
                "_tabPnl.getTabCount() == 0 - adding first tab component to " +
                "the tabbed page");
            IObjectTab firstTab = _tabs.get(0);
            _tabPnl.addTab(firstTab.getTitle(),
                           null,
                           firstTab.getComponent(),
                           firstTab.getHint());
        }
       
        tab.setSession(_app.getSessionManager().getSession(_sessionId));
        final String title = tab.getTitle();
        _tabPnl.addTab(title, null, tab.getComponent(), tab.getHint());
View Full Code Here

    if (_tabPnl.getParent() != null)
    {
      int idx = _tabPnl.getSelectedIndex();
      if (idx != -1 && idx < _tabs.size())
      {
        IObjectTab tab = _tabs.get(idx);
        if (tab != null)
        {
          tab.select();
        }
      }
    }
  }
View Full Code Here

  void setDatabaseObjectInfo(IDatabaseObjectInfo dboInfo)
  {
    Iterator<IObjectTab> it = _tabs.iterator();
    while (it.hasNext())
    {
      IObjectTab tab = it.next();
      tab.setDatabaseObjectInfo(dboInfo);
    }
  }
View Full Code Here

    _tabPnl.removeAll();
    _tabs.clear();
    Iterator<IObjectTab> it = oldTabs.iterator();
    while (it.hasNext())
    {
      final IObjectTab tab = it.next();
      tab.rebuild();
      addObjectPanelTab(tab);
    }
    if (curTabIdx >= 0 && curTabIdx < _tabPnl.getTabCount())
    {
      _tabPnl.setSelectedIndex(curTabIdx);
View Full Code Here

     * @throws DataSetException if there was a problem refreshing the component.
     */
    public void refreshSelectedTab() throws DataSetException
    {
        if (_selectedObjTreeTabbedPane != null) {
            IObjectTab tab= _selectedObjTreeTabbedPane.getSelectedTab();
            if (tab != null) {
                if (tab instanceof BaseDataSetTab) {
                    BaseDataSetTab btab = (BaseDataSetTab) tab;
                    btab.refreshComponent();
                }
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.client.session.mainpanel.objecttree.tabs.IObjectTab

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.