Search in sources :

Example 1 with DateTraceAppDetailPanel

use of com.att.aro.ui.view.statistics.DateTraceAppDetailPanel in project VideoOptimzer by attdevsupport.

the class AbstractBpDetailPanel method initialize.

public void initialize(String title) {
    fullPanel = new JPanel(new BorderLayout());
    fullPanel.setOpaque(false);
    // setBorder(new RoundedBorder(new Insets(0, 0, 0, 0), Color.WHITE)); // bcn
    // Create the header bar
    header = new BpHeaderPanel(ResourceBundleHelper.getMessageString(title));
    String desc = ResourceBundleHelper.getMessageString(title + "Description");
    fullPanel.add(header, BorderLayout.NORTH);
    // Create the data panel
    JPanel dataPanel = new JPanel(new BorderLayout());
    dataPanel.setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20));
    dataPanel.setOpaque(false);
    dateTraceAppDetailPanel = new DateTraceAppDetailPanel();
    dataPanel.add(dateTraceAppDetailPanel, BorderLayout.NORTH);
    // Create the group overview panel
    JPanel textPanel = new JPanel(new BorderLayout(10, 10));
    textPanel.setOpaque(false);
    JScrollPane scroll = new JScrollPane(createJTextArea(desc, null));
    // scroll.setBackground(Color.RED); // bcn
    scroll.setBorder(BorderFactory.createEmptyBorder());
    removeMouseWheelListeners(scroll);
    textPanel.add(scroll, BorderLayout.CENTER);
    JPanel separator = new ImagePanel(Images.DIVIDER.getImage(), true, Color.WHITE);
    textPanel.add(separator, BorderLayout.SOUTH);
    // Create the best practices detail panel
    JPanel detailPanel = new JPanel(new GridBagLayout());
    detailPanel.setOpaque(true);
    detailPanel = new JPanel();
    JPanel panel = new JPanel(new BorderLayout());
    panel.setOpaque(false);
    panel.add(textPanel, BorderLayout.NORTH);
    panel.add(detailPanel, BorderLayout.CENTER);
    dataPanel.add(panel);
    fullPanel.add(dataPanel);
}
Also used : JScrollPane(javax.swing.JScrollPane) TabPanelJScrollPane(com.att.aro.ui.commonui.TabPanelJScrollPane) JPanel(javax.swing.JPanel) BorderLayout(java.awt.BorderLayout) GridBagLayout(java.awt.GridBagLayout) DateTraceAppDetailPanel(com.att.aro.ui.view.statistics.DateTraceAppDetailPanel) ImagePanel(com.att.aro.ui.commonui.ImagePanel)

Example 2 with DateTraceAppDetailPanel

use of com.att.aro.ui.view.statistics.DateTraceAppDetailPanel in project VideoOptimzer by attdevsupport.

the class BestPracticesTab method buildTopGroup.

/**
 */
private JPanel buildTopGroup() {
    JPanel topPanel;
    topPanel = new JPanel(new GridBagLayout());
    topPanel.setOpaque(false);
    topPanel.setBorder(new RoundedBorder(new Insets(20, 20, 20, 20), Color.WHITE));
    int section = 0;
    // top summary
    JPanel topLeftPanel;
    topLeftPanel = new JPanel(new GridBagLayout());
    topLeftPanel.setOpaque(false);
    dateTraceAppDetailPanel = new DateTraceAppDetailPanel();
    topLeftPanel.add(dateTraceAppDetailPanel, new GridBagConstraints(0, section++, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, insets, 0, 0));
    bpObservable.registerObserver(dateTraceAppDetailPanel);
    // BP Overall -aka- AROBpOverallResulsPanel
    BpTestStatisticsPanel testStatisticsPanel = new BpTestStatisticsPanel();
    topLeftPanel.add(testStatisticsPanel, new GridBagConstraints(0, section++, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, insets, 0, 0));
    bpObservable.registerObserver(testStatisticsPanel);
    MetadataPanel metadataPanel = new MetadataPanel(aroView);
    metadataPanel.setMinimumSize(metadataPanel.getPreferredSize());
    bpObservable.registerObserver(metadataPanel);
    JSplitPane topSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, topLeftPanel, metadataPanel);
    topSplitPane.setResizeWeight(0);
    topSplitPane.setOpaque(false);
    topPanel.add(topSplitPane, new GridBagConstraints(0, section++, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, insets, 0, 0));
    // Separator
    topPanel.add(UIComponent.getInstance().getSeparator(), new GridBagConstraints(0, section++, 1, 1, 1.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 10, 0), 0, 0));
    // BP Overall -aka- AROBpOverallResulsPanel
    BpTestsConductedPanel bpTestsConductedPanel = new BpTestsConductedPanel(this);
    topPanel.add(bpTestsConductedPanel, new GridBagConstraints(// int gridx, int gridy
    0, // int gridx, int gridy
    section++, // , int gridwidth,  int gridheight
    1, // , int gridwidth,  int gridheight
    1, // , double weightx, double weighty
    0.0, // , double weightx, double weighty
    0.0, // , int anchor
    GridBagConstraints.CENTER, // , int fill
    GridBagConstraints.HORIZONTAL, // , Insets insets
    new Insets(0, 0, 0, 0), 0, // , int ipadx, int ipady
    0));
    bpObservable.registerObserver(bpTestsConductedPanel);
    return topPanel;
}
Also used : JPanel(javax.swing.JPanel) GridBagConstraints(java.awt.GridBagConstraints) Insets(java.awt.Insets) GridBagLayout(java.awt.GridBagLayout) DateTraceAppDetailPanel(com.att.aro.ui.view.statistics.DateTraceAppDetailPanel) RoundedBorder(com.att.aro.ui.commonui.RoundedBorder) JSplitPane(javax.swing.JSplitPane) Point(java.awt.Point)

Aggregations

DateTraceAppDetailPanel (com.att.aro.ui.view.statistics.DateTraceAppDetailPanel)2 GridBagLayout (java.awt.GridBagLayout)2 JPanel (javax.swing.JPanel)2 ImagePanel (com.att.aro.ui.commonui.ImagePanel)1 RoundedBorder (com.att.aro.ui.commonui.RoundedBorder)1 TabPanelJScrollPane (com.att.aro.ui.commonui.TabPanelJScrollPane)1 BorderLayout (java.awt.BorderLayout)1 GridBagConstraints (java.awt.GridBagConstraints)1 Insets (java.awt.Insets)1 Point (java.awt.Point)1 JScrollPane (javax.swing.JScrollPane)1 JSplitPane (javax.swing.JSplitPane)1