IObjectTab getTabIfSelected(String title) { IObjectTab tab = getSelectedTab(); if ((tab != null) && (tab.getTitle().equals(title))) { return tab; } return null; }
void selectCurrentTab() { if (_tabPnl.getParent() != null) { int idx = _tabPnl.getSelectedIndex(); if (idx != -1 && idx < _tabs.size()) { IObjectTab tab = _tabs.get(idx); if (tab != null) { tab.select(); } } } }
void setDatabaseObjectInfo(IDatabaseObjectInfo dboInfo) { Iterator<IObjectTab> it = _tabs.iterator(); while (it.hasNext()) { IObjectTab tab = it.next(); tab.setDatabaseObjectInfo(dboInfo); } }
"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()); _tabs.add(tab);
/** * Rebuild the tabs. This usually means that some kind of configuration * data has changed (I.E. the output type has changed from text to table). */ synchronized void rebuild() { final int curTabIdx = _tabPnl.getSelectedIndex(); final List<IObjectTab> oldTabs = new ArrayList<IObjectTab>(); oldTabs.addAll(_tabs); _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); } }
"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()); _tabs.add(tab);
/** * Rebuild the tabs. This usually means that some kind of configuration * data has changed (I.E. the output type has changed from text to table). */ synchronized void rebuild() { final int curTabIdx = _tabPnl.getSelectedIndex(); final List<IObjectTab> oldTabs = new ArrayList<IObjectTab>(); oldTabs.addAll(_tabs); _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); } }
void setDatabaseObjectInfo(IDatabaseObjectInfo dboInfo) { Iterator<IObjectTab> it = _tabs.iterator(); while (it.hasNext()) { IObjectTab tab = it.next(); tab.setDatabaseObjectInfo(dboInfo); } }
IObjectTab getTabIfSelected(String title) { IObjectTab tab = getSelectedTab(); if ((tab != null) && (tab.getTitle().equals(title))) { return tab; } return null; }
void selectCurrentTab() { if (_tabPnl.getParent() != null) { int idx = _tabPnl.getSelectedIndex(); if (idx != -1 && idx < _tabs.size()) { IObjectTab tab = _tabs.get(idx); if (tab != null) { tab.select(); } } } }