use of com.att.aro.ui.view.overviewtab.OverviewTab in project VideoOptimzer by attdevsupport.
the class ARODiagnosticsOverviewRouteImpl method updateOverviewTab.
public void updateOverviewTab(Object routeInfo) {
int oldPanelIndex = jtabbedPane.getSelectedIndex();
jtabbedPane.setSelectedIndex(OVERVIEW_INDEX);
OverviewTab overviewTab = (OverviewTab) jtabbedPane.getSelectedComponent();
if (routeInfo == null) {
jtabbedPane.setSelectedIndex(oldPanelIndex);
LOG.error("Overview Tab needs a type for updating");
return;
}
LOG.debug("Type used to route to Overview Tab: " + routeInfo.getClass().getSimpleName());
if (routeInfo instanceof CacheEntry) {
overviewTab.setHighlightedDuplicate((CacheEntry) routeInfo);
} else {
jtabbedPane.setSelectedIndex(oldPanelIndex);
LOG.error("Overview Tab cannot handle a type of " + routeInfo.getClass().getSimpleName() + " for updating");
}
}
use of com.att.aro.ui.view.overviewtab.OverviewTab in project VideoOptimzer by attdevsupport.
the class MainFrame method getJTabbedPane.
private JTabbedPane getJTabbedPane() {
if (jMainTabbedPane == null) {
UIManager.getDefaults().put("TabbedPane.contentBorderInsets", new Insets(0, 0, 0, 0));
UIManager.getDefaults().put("TabbedPane.tabsOverlapBorder", true);
jMainTabbedPane = new JTabbedPane();
route = new ARODiagnosticsOverviewRouteImpl(jMainTabbedPane);
bestPracticesTab = new BestPracticesTab(this, route);
jMainTabbedPane.add(BUNDLE.getString("aro.tab.bestpractices"), bestPracticesTab);
modelObserver.registerObserver(bestPracticesTab);
overviewTab = new OverviewTab(route);
jMainTabbedPane.add(BUNDLE.getString("aro.tab.overview"), overviewTab.layoutDataPanel());
modelObserver.registerObserver(overviewTab);
diagnosticsTab = new DiagnosticsTab(this, route);
jMainTabbedPane.add(BUNDLE.getString("aro.tab.advanced"), diagnosticsTab);
modelObserver.registerObserver(diagnosticsTab);
videoTab = new VideoTab(this, route);
jMainTabbedPane.add(BUNDLE.getString("aro.tab.video"), videoTab);
modelObserver.registerObserver(videoTab);
statisticsTab = new StatisticsTab(this);
jMainTabbedPane.add(BUNDLE.getString("aro.tab.statistics"), statisticsTab);
modelObserver.registerObserver(statisticsTab);
waterfallTab = new WaterfallTab(route);
jMainTabbedPane.add(BUNDLE.getString("aro.tab.waterfall"), waterfallTab.layoutDataPanel());
modelObserver.registerObserver(waterfallTab);
jMainTabbedPane.addChangeListener(new ChangeListener() {
@Override
public void stateChanged(ChangeEvent event) {
onTabChanged(event);
}
});
}
return jMainTabbedPane;
}
Aggregations