Search in sources :

Example 11 with DataTablePopupMenu

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

the class BpFileMinificationTablePanel method getContentTable.

/**
 * Initializes and returns the RequestResponseTable.
 */
@SuppressWarnings("unchecked")
public DataTable<MinificationEntry> getContentTable() {
    if (contentTable == null) {
        contentTable = new DataTable<MinificationEntry>(tableModel);
        contentTable.setName(ResourceBundleHelper.getMessageString("file.minify.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 : DataTablePopupMenu(com.att.aro.ui.model.DataTablePopupMenu) MinificationEntry(com.att.aro.core.bestpractice.pojo.MinificationEntry)

Example 12 with DataTablePopupMenu

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

the class BPVideoConcurrentSessionTablePanel method getContentTable.

@SuppressWarnings("unchecked")
public DataTable<VideoConcurrentSession> getContentTable() {
    if (contentTable == null) {
        contentTable = new DataTable<VideoConcurrentSession>(tableModel);
        contentTable.setName(ResourceBundleHelper.getMessageString("video.concurrent.session.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 : VideoConcurrentSession(com.att.aro.core.bestpractice.pojo.VideoConcurrentSession) DataTablePopupMenu(com.att.aro.ui.model.DataTablePopupMenu)

Example 13 with DataTablePopupMenu

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

the class BpConnectionsHttp3xxTablePanel method getContentTable.

/**
 * Initializes and returns the RequestResponseTable.
 */
@SuppressWarnings("unchecked")
public DataTable<HttpCode3xxEntry> getContentTable() {
    if (contentTable == null) {
        contentTable = new DataTable<HttpCode3xxEntry>(tableModel);
        contentTable.setName(ResourceBundleHelper.getMessageString("connections.301.302.response.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 : DataTablePopupMenu(com.att.aro.ui.model.DataTablePopupMenu) HttpCode3xxEntry(com.att.aro.core.bestpractice.pojo.HttpCode3xxEntry)

Example 14 with DataTablePopupMenu

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

the class BpConnectionsUnnecessaryTablePanel method getContentTable.

/**
 * Initializes and returns the RequestResponseTable.
 */
@SuppressWarnings("unchecked")
public DataTable<UnnecessaryConnectionEntry> getContentTable() {
    if (contentTable == null) {
        contentTable = new DataTable<UnnecessaryConnectionEntry>(tableModel);
        contentTable.setName(ResourceBundleHelper.getMessageString("connections.unnecessary.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 : DataTablePopupMenu(com.att.aro.ui.model.DataTablePopupMenu) UnnecessaryConnectionEntry(com.att.aro.core.bestpractice.pojo.UnnecessaryConnectionEntry)

Example 15 with DataTablePopupMenu

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

the class OverviewTabTableSplitPane method getAccessedDomainContentTable.

/**
 * Initializes and returns the RequestResponseTable.
 */
public JTable getAccessedDomainContentTable() {
    if (accessedDataTable == null) {
        accessedDataTable = new DataTable<DomainsTCPSessions>(accessDomainModel);
        accessedDataTable.setName(ResourceBundleHelper.getMessageString("overview.accessed.domains.tableName"));
        DataTablePopupMenu popupMenu = (DataTablePopupMenu) accessedDataTable.getPopup();
        popupMenu.initialize();
        accessedDataTable.setAutoCreateRowSorter(true);
        accessedDataTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        accessedDataTable.setGridColor(Color.LIGHT_GRAY);
        TableRowSorter<TableModel> sorter = new TableRowSorter<>(accessDomainModel);
        accessedDataTable.setRowSorter(sorter);
        sorter.setComparator(0, Util.getDomainSorter());
        accessedDataTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() {

            @Override
            public void valueChanged(ListSelectionEvent arg0) {
                DomainsTCPSessions aTCpSession = accessedDataTable.getSelectedItem();
                if (null != aTCpSession) {
                    expandedDomainModel.setData(aTCpSession.getTcpSessions());
                } else {
                    expandedDomainModel.removeAllRows();
                }
            }
        });
    }
    return accessedDataTable;
}
Also used : DomainsTCPSessions(com.att.aro.ui.model.overview.DomainsTCPSessions) DataTablePopupMenu(com.att.aro.ui.model.DataTablePopupMenu) ListSelectionEvent(javax.swing.event.ListSelectionEvent) AccessedDomainsTableModel(com.att.aro.ui.model.overview.AccessedDomainsTableModel) TableModel(javax.swing.table.TableModel) ExpandedDomainTableModel(com.att.aro.ui.model.overview.ExpandedDomainTableModel) TableRowSorter(javax.swing.table.TableRowSorter) ListSelectionListener(javax.swing.event.ListSelectionListener)

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