Search in sources :

Example 16 with DataTablePopupMenu

use of com.att.aro.ui.model.DataTablePopupMenu in project VideoOptimzer by attdevsupport.

the class FilterApplicationsAndIpDialog method getJIpAddressesTable.

/**
 * Initializes and returns the table that contains the list of IP addresses
 * found in the trace data.
 */
private JTable getJIpAddressesTable() {
    if (jIpAddressTable == null) {
        // Make sure to make a copy of the current data before modifying
        jIpAddressTable = new DataTable<FilterIpAddressesTableModel.AppIPAddressSelection>(jIpAddressesTableModel);
        jIpAddressTable.setAutoCreateRowSorter(true);
        DataTablePopupMenu popupMenu = (DataTablePopupMenu) jIpAddressTable.getPopup();
        popupMenu.initialize();
    }
    return jIpAddressTable;
}
Also used : DataTablePopupMenu(com.att.aro.ui.model.DataTablePopupMenu)

Example 17 with DataTablePopupMenu

use of com.att.aro.ui.model.DataTablePopupMenu in project VideoOptimzer by attdevsupport.

the class BurstAnalysisPanel method getBurstTable.

/**
 * Returns a DataTable containing the individual burst analysis data.
 *
 * @return A DataTable object containing the individual burst analysis data.
 */
public DataTable<Burst> getBurstTable() {
    if (burstTable == null) {
        burstTable = new DataTable<Burst>(burstTableModel);
        burstTable.setName(ResourceBundleHelper.getMessageString("statistics.individual.burst.analysis.tableName"));
        burstTable.setGridColor(Color.LIGHT_GRAY);
        burstTable.setAutoCreateRowSorter(true);
        DataTablePopupMenu popupMenu = (DataTablePopupMenu) burstTable.getPopup();
        popupMenu.initialize();
    }
    return burstTable;
}
Also used : Burst(com.att.aro.core.packetanalysis.pojo.Burst) DataTablePopupMenu(com.att.aro.ui.model.DataTablePopupMenu)

Example 18 with DataTablePopupMenu

use of com.att.aro.ui.model.DataTablePopupMenu in project VideoOptimzer by attdevsupport.

the class BurstAnalysisPanel method getTable.

/**
 * Returns a DataTable containing the burst analysis data.
 *
 * @return A DataTable object containing the burst analysis data.
 */
public DataTable<BurstAnalysisInfo> getTable() {
    if (table == null) {
        table = new DataTable<BurstAnalysisInfo>(tableModel);
        table.setName(ResourceBundleHelper.getMessageString("statistics.burst.analysis.tableName"));
        table.setGridColor(Color.LIGHT_GRAY);
        table.setAutoCreateRowSorter(true);
        DataTablePopupMenu popupMenu = (DataTablePopupMenu) table.getPopup();
        popupMenu.initialize();
    }
    return table;
}
Also used : BurstAnalysisInfo(com.att.aro.core.packetanalysis.pojo.BurstAnalysisInfo) DataTablePopupMenu(com.att.aro.ui.model.DataTablePopupMenu)

Example 19 with DataTablePopupMenu

use of com.att.aro.ui.model.DataTablePopupMenu in project VideoOptimzer by attdevsupport.

the class VideoRequestPanel method getRequestListPanel.

private JPanel getRequestListPanel() {
    if (requestListPanel == null) {
        requestListPanel = new JPanel();
        requestListPanel.setLayout(new BorderLayout());
        getDummyData();
        requestListTable = new DataTable<HttpRequestResponseInfo>();
        requestListPanel.setName(ResourceBundleHelper.getMessageString("video.tab.requests.tableName"));
        DataTablePopupMenu popupMenu = (DataTablePopupMenu) requestListTable.getPopup();
        popupMenu.initialize();
        videoRequestTableModel.setData(requestURL);
        requestListTable.setModel(videoRequestTableModel);
        JTableHeader header = requestListTable.getTableHeader();
        requestListTable.setGridColor(Color.LIGHT_GRAY);
        int width = requestListTable.getParent() != null ? requestListTable.getParent().getWidth() : 1000;
        width = requestPanel.getWidth();
        requestListTable.getColumnModel().getColumn(0).setPreferredWidth(width);
        requestListTable.getColumnModel().getColumn(0).setCellRenderer(new WordWrapRenderer());
        requestListPanel.add(header, BorderLayout.NORTH);
        requestListPanel.add(requestListTable, BorderLayout.CENTER);
        requestListTable.addMouseListener(new MouseAdapter() {

            public void mouseClicked(MouseEvent event) {
                if (event.getClickCount() == 2) {
                    int row = requestListTable.getSelectedRow();
                    HttpRequestResponseInfo request = requestURL.get(row);
                    requestListTable.getColumnModel().getColumn(0).setCellRenderer(new WordWrapRenderer(row));
                    if (ResourceBundleHelper.getMessageString("videotab.videorequest.table.url").equals(requestListTable.getColumnName(requestListTable.getSelectedColumn()))) {
                        RegexWizard regexWizard = RegexWizard.getInstance(aroView.getJFrame());
                        regexWizard.setRequest(request);
                        regexWizard.setVisible(true);
                    }
                }
            }
        });
    }
    return requestListPanel;
}
Also used : JPanel(javax.swing.JPanel) MouseEvent(java.awt.event.MouseEvent) BorderLayout(java.awt.BorderLayout) HttpRequestResponseInfo(com.att.aro.core.packetanalysis.pojo.HttpRequestResponseInfo) DataTablePopupMenu(com.att.aro.ui.model.DataTablePopupMenu) MouseAdapter(java.awt.event.MouseAdapter) JTableHeader(javax.swing.table.JTableHeader) RegexWizard(com.att.aro.ui.view.menu.tools.RegexWizard)

Example 20 with DataTablePopupMenu

use of com.att.aro.ui.model.DataTablePopupMenu in project VideoOptimzer by attdevsupport.

the class EndPointSummaryPanel method getTable.

/**
 * Returns a DataTable containing the end point summary per application data.
 *
 * @return A DataTable object containing the end point summary per application data.
 */
public DataTable<ApplicationPacketSummary> getTable() {
    if (table == null) {
        table = new DataTable<ApplicationPacketSummary>(tableModel);
        table.setName(ResourceBundleHelper.getMessageString("statistics.application.summary.tableName"));
        table.setAutoCreateRowSorter(true);
        DataTablePopupMenu popupMenu = (DataTablePopupMenu) table.getPopup();
        popupMenu.initialize();
    }
    return table;
}
Also used : DataTablePopupMenu(com.att.aro.ui.model.DataTablePopupMenu) ApplicationPacketSummary(com.att.aro.core.packetanalysis.pojo.ApplicationPacketSummary)

Aggregations

DataTablePopupMenu (com.att.aro.ui.model.DataTablePopupMenu)37 TableModel (javax.swing.table.TableModel)12 TableRowSorter (javax.swing.table.TableRowSorter)12 ListSelectionEvent (javax.swing.event.ListSelectionEvent)5 ListSelectionListener (javax.swing.event.ListSelectionListener)5 HttpRequestResponseInfo (com.att.aro.core.packetanalysis.pojo.HttpRequestResponseInfo)4 MinificationEntry (com.att.aro.core.bestpractice.pojo.MinificationEntry)2 CacheEntry (com.att.aro.core.packetanalysis.pojo.CacheEntry)2 Session (com.att.aro.core.packetanalysis.pojo.Session)2 MessageDialogFactory (com.att.aro.ui.commonui.MessageDialogFactory)2 SimultnsConnTableModel (com.att.aro.ui.model.bestpractice.SimultnsConnTableModel)2 AccessedDomainsTableModel (com.att.aro.ui.model.overview.AccessedDomainsTableModel)2 ExpandedDomainTableModel (com.att.aro.ui.model.overview.ExpandedDomainTableModel)2 MouseAdapter (java.awt.event.MouseAdapter)2 MouseEvent (java.awt.event.MouseEvent)2 IOException (java.io.IOException)2 AsyncCheckEntry (com.att.aro.core.bestpractice.pojo.AsyncCheckEntry)1 DisplayNoneInCSSEntry (com.att.aro.core.bestpractice.pojo.DisplayNoneInCSSEntry)1 FileOrderEntry (com.att.aro.core.bestpractice.pojo.FileOrderEntry)1 ForwardSecrecyEntry (com.att.aro.core.bestpractice.pojo.ForwardSecrecyEntry)1