Search in sources :

Example 1 with BestPracticesTab

use of com.att.aro.ui.view.bestpracticestab.BestPracticesTab in project VideoOptimzer by attdevsupport.

the class AROSwingWorker method refreshLocationMap.

/**
 * refresh bpItem location in best practices tab after loading the trace
 */
private void refreshLocationMap() {
    Container container = parent.getContentPane();
    Component[] components = container.getComponents();
    if (components != null && components.length > 0) {
        Component bpComponent = components[0];
        try {
            BestPracticesTab bpTab = (BestPracticesTab) bpComponent;
            bpTab.setScrollLocationMap();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
Also used : Container(java.awt.Container) Component(java.awt.Component) BestPracticesTab(com.att.aro.ui.view.bestpracticestab.BestPracticesTab) ExecutionException(java.util.concurrent.ExecutionException)

Example 2 with BestPracticesTab

use of com.att.aro.ui.view.bestpracticestab.BestPracticesTab in project VideoOptimzer by attdevsupport.

the class MainFrame method setLocationMap.

/**
 * set up test conducted title to the location of related session
 */
public static void setLocationMap() {
    Container container = window.frmApplicationResourceOptimizer.getContentPane();
    Component[] components = container.getComponents();
    if (components != null && components.length > 0) {
        Component bpComponent = components[0];
        try {
            BestPracticesTab bpTab = (BestPracticesTab) bpComponent;
            bpTab.setScrollLocationMap();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
Also used : Container(java.awt.Container) Component(java.awt.Component) BestPracticesTab(com.att.aro.ui.view.bestpracticestab.BestPracticesTab) IOException(java.io.IOException)

Example 3 with BestPracticesTab

use of com.att.aro.ui.view.bestpracticestab.BestPracticesTab 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;
}
Also used : ARODiagnosticsOverviewRouteImpl(com.att.aro.ui.commonui.ARODiagnosticsOverviewRouteImpl) VideoTab(com.att.aro.ui.view.videotab.VideoTab) Insets(java.awt.Insets) ChangeEvent(javax.swing.event.ChangeEvent) JTabbedPane(javax.swing.JTabbedPane) StatisticsTab(com.att.aro.ui.view.statistics.StatisticsTab) OverviewTab(com.att.aro.ui.view.overviewtab.OverviewTab) WaterfallTab(com.att.aro.ui.view.waterfalltab.WaterfallTab) ChangeListener(javax.swing.event.ChangeListener) PropertyChangeListener(java.beans.PropertyChangeListener) BestPracticesTab(com.att.aro.ui.view.bestpracticestab.BestPracticesTab) DiagnosticsTab(com.att.aro.ui.view.diagnostictab.DiagnosticsTab)

Aggregations

BestPracticesTab (com.att.aro.ui.view.bestpracticestab.BestPracticesTab)3 Component (java.awt.Component)2 Container (java.awt.Container)2 ARODiagnosticsOverviewRouteImpl (com.att.aro.ui.commonui.ARODiagnosticsOverviewRouteImpl)1 DiagnosticsTab (com.att.aro.ui.view.diagnostictab.DiagnosticsTab)1 OverviewTab (com.att.aro.ui.view.overviewtab.OverviewTab)1 StatisticsTab (com.att.aro.ui.view.statistics.StatisticsTab)1 VideoTab (com.att.aro.ui.view.videotab.VideoTab)1 WaterfallTab (com.att.aro.ui.view.waterfalltab.WaterfallTab)1 Insets (java.awt.Insets)1 PropertyChangeListener (java.beans.PropertyChangeListener)1 IOException (java.io.IOException)1 ExecutionException (java.util.concurrent.ExecutionException)1 JTabbedPane (javax.swing.JTabbedPane)1 ChangeEvent (javax.swing.event.ChangeEvent)1 ChangeListener (javax.swing.event.ChangeListener)1