Search in sources :

Example 26 with DataTablePopupMenu

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

the class HttpDelayPanel method getHttpDelayTable.

/**
 * Initializes and returns the the DataTable that contains HTTP delay informations.
 */
public DataTable<HttpRequestResponseInfo> getHttpDelayTable() {
    if (httpDelayTable == null) {
        httpDelayTable = new DataTable<HttpRequestResponseInfo>(httpDelayTableModel);
        httpDelayTable.setName(ResourceBundleHelper.getMessageString("diagnostics.delay.view.tableName"));
        DataTablePopupMenu popupMenu = (DataTablePopupMenu) httpDelayTable.getPopup();
        popupMenu.initialize();
        httpDelayTable.setAutoCreateRowSorter(true);
        httpDelayTable.setGridColor(Color.LIGHT_GRAY);
        TableRowSorter<TableModel> sorter = new TableRowSorter<>(httpDelayTable.getModel());
        httpDelayTable.setRowSorter(sorter);
    }
    return httpDelayTable;
}
Also used : HttpRequestResponseInfo(com.att.aro.core.packetanalysis.pojo.HttpRequestResponseInfo) DataTablePopupMenu(com.att.aro.ui.model.DataTablePopupMenu) HttpDelayTableModel(com.att.aro.ui.model.diagnostic.HttpDelayTableModel) TableModel(javax.swing.table.TableModel) TableRowSorter(javax.swing.table.TableRowSorter)

Example 27 with DataTablePopupMenu

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

the class DeviceTablePanel method getContentTable.

/**
 * Initializes and returns the RequestResponseTable.
 */
public DataTable<IAroDevice> getContentTable() {
    if (contentTable == null) {
        contentTable = new DataTable<IAroDevice>(tableModel);
        contentTable.setName(ResourceBundleHelper.getMessageString("collector.device.list.tableName"));
        contentTable.setAutoCreateRowSorter(true);
        contentTable.setGridColor(Color.LIGHT_GRAY);
        contentTable.setRowHeight(ROW_HEIGHT);
        contentTable.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);
        contentTable.addMouseListener(this);
        DataTablePopupMenu popupMenu = (DataTablePopupMenu) contentTable.getPopup();
        popupMenu.initialize();
    }
    return contentTable;
}
Also used : IAroDevice(com.att.aro.core.mobiledevice.pojo.IAroDevice) DataTablePopupMenu(com.att.aro.ui.model.DataTablePopupMenu)

Example 28 with DataTablePopupMenu

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

the class DiagnosticsTab method getJTCPFlowsTable.

/**
 * Initializes and returns the Scroll Pane for the TCP flows table.
 */
public TCPFlowsDataTable<Session> getJTCPFlowsTable() {
    if (tcpflowsTable == null) {
        tcpflowsTable = new TCPFlowsDataTable<Session>(jTcpUdpFlowsModel, this);
        tcpflowsTable.setName(ResourceBundleHelper.getMessageString("diagnostics.tcp.udp.streams.tableName"));
        tcpflowsTable.setAutoCreateRowSorter(true);
        tcpflowsTable.setGridColor(Color.LIGHT_GRAY);
        tcpflowsTable.getSelectionModel().addListSelectionListener(this);
        DataTablePopupMenu popupMenu = (DataTablePopupMenu) tcpflowsTable.getPopup();
        popupMenu.setMenuItems(tcpflowsTable.getMenuItems());
        popupMenu.initialize();
        // Adding the table listener for getting the check box changes
        tcpflowsTable.getModel().addTableModelListener(new TableModelListener() {

            @Override
            public void tableChanged(TableModelEvent arg0) {
                setTraceAnalysis();
            }
        });
        TableRowSorter<TableModel> sorter = new TableRowSorter<>(tcpflowsTable.getModel());
        tcpflowsTable.setRowSorter(sorter);
        sorter.setComparator(TCPUDPFlowsTableModel.REMOTEIP_COL, Util.getDomainSorter());
        sorter.setComparator(TCPUDPFlowsTableModel.DOMAIN_COL, Util.getDomainSorter());
        sorter.toggleSortOrder(TCPUDPFlowsTableModel.TIME_COL);
    }
    return tcpflowsTable;
}
Also used : TableModelEvent(javax.swing.event.TableModelEvent) TableModelListener(javax.swing.event.TableModelListener) DataTablePopupMenu(com.att.aro.ui.model.DataTablePopupMenu) TableModel(javax.swing.table.TableModel) PacketViewTableModel(com.att.aro.ui.model.diagnostic.PacketViewTableModel) TCPUDPFlowsTableModel(com.att.aro.ui.model.diagnostic.TCPUDPFlowsTableModel) TableRowSorter(javax.swing.table.TableRowSorter) HttpRequestResponseInfoWithSession(com.att.aro.core.packetanalysis.pojo.HttpRequestResponseInfoWithSession) Session(com.att.aro.core.packetanalysis.pojo.Session)

Example 29 with DataTablePopupMenu

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

the class BpHtmlFileOrderTablePanel method getContentTable.

/**
 * Initializes and returns the RequestResponseTable.
 */
@SuppressWarnings("unchecked")
public DataTable<FileOrderEntry> getContentTable() {
    if (contentTable == null) {
        contentTable = new DataTable<FileOrderEntry>(tableModel);
        contentTable.setName(ResourceBundleHelper.getMessageString("html.file.order.tableName"));
        contentTable.setAutoCreateRowSorter(true);
        contentTable.setGridColor(Color.LIGHT_GRAY);
        contentTable.setRowHeight(ROW_HEIGHT);
        contentTable.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);
        DataTablePopupMenu popupMenu = (DataTablePopupMenu) contentTable.getPopup();
        popupMenu.initialize();
    }
    return contentTable;
}
Also used : FileOrderEntry(com.att.aro.core.bestpractice.pojo.FileOrderEntry) DataTablePopupMenu(com.att.aro.ui.model.DataTablePopupMenu)

Example 30 with DataTablePopupMenu

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

the class BpSecurityForwardSecrecyTablePanel method getContentTable.

@SuppressWarnings("unchecked")
@Override
public DataTable<ForwardSecrecyEntry> getContentTable() {
    if (contentTable == null) {
        contentTable = new DataTable<ForwardSecrecyEntry>(tableModel);
        contentTable.setName(ResourceBundleHelper.getMessageString("security.forward.secrecy.tableName"));
        contentTable.setAutoCreateRowSorter(true);
        contentTable.setGridColor(Color.LIGHT_GRAY);
        contentTable.setRowHeight(ROW_HEIGHT);
        contentTable.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);
        TableRowSorter<TableModel> sorter = new TableRowSorter<>(tableModel);
        contentTable.setRowSorter(sorter);
        sorter.setComparator(0, Util.getDomainSorter());
        DataTablePopupMenu popupMenu = (DataTablePopupMenu) contentTable.getPopup();
        popupMenu.initialize();
    }
    return contentTable;
}
Also used : ForwardSecrecyEntry(com.att.aro.core.bestpractice.pojo.ForwardSecrecyEntry) DataTablePopupMenu(com.att.aro.ui.model.DataTablePopupMenu) ForwardSecrecyTableModel(com.att.aro.ui.model.bestpractice.ForwardSecrecyTableModel) TableModel(javax.swing.table.TableModel) TableRowSorter(javax.swing.table.TableRowSorter)

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