Search in sources :

Example 6 with DataTablePopupMenu

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

the class BpFileSpriteImagesTablePanel method getContentTable.

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

Example 7 with DataTablePopupMenu

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

the class BPConnectionsSimultnsTablePanel method getContentTable.

/**
 * Initializes and returns the RequestResponseTable.
 */
@Override
@SuppressWarnings("unchecked")
public DataTable<MultipleConnectionsEntry> getContentTable() {
    if (contentTable == null) {
        contentTable = new DataTable<MinificationEntry>(tableModel);
        contentTable.setName(ResourceBundleHelper.getMessageString("connections.multiple.simultaneous.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(SimultnsConnTableModel.COL_2, Util.getDomainSorter());
        sorter.setComparator(SimultnsConnTableModel.COL_3, Util.getDomainSorter());
        sorter.setComparator(SimultnsConnTableModel.COL_4, Util.getIntSorter());
        sorter.toggleSortOrder(SimultnsConnTableModel.COL_1);
        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) SimultnsConnTableModel(com.att.aro.ui.model.bestpractice.SimultnsConnTableModel) TableModel(javax.swing.table.TableModel) TableRowSorter(javax.swing.table.TableRowSorter)

Example 8 with DataTablePopupMenu

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

the class BpSecurityHttpsUsageTablePanel method getContentTable.

@SuppressWarnings("unchecked")
@Override
public DataTable<HttpsUsageEntry> getContentTable() {
    if (contentTable == null) {
        contentTable = new DataTable<HttpsUsageEntry>(tableModel);
        contentTable.setName(ResourceBundleHelper.getMessageString("security.https.usage.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());
        sorter.setComparator(7, Util.getIntSorter());
        sorter.setComparator(4, Util.getIntSorter());
        sorter.setComparator(5, Util.getFloatSorter());
        sorter.setComparator(6, Util.getFloatSorter());
        sorter.setComparator(1, Util.getDomainSorter());
        DataTablePopupMenu popupMenu = (DataTablePopupMenu) contentTable.getPopup();
        popupMenu.initialize();
    }
    return contentTable;
}
Also used : DataTablePopupMenu(com.att.aro.ui.model.DataTablePopupMenu) HttpsUsageEntry(com.att.aro.core.bestpractice.pojo.HttpsUsageEntry) TableModel(javax.swing.table.TableModel) HttpsUsageTableModel(com.att.aro.ui.model.bestpractice.HttpsUsageTableModel) TableRowSorter(javax.swing.table.TableRowSorter)

Example 9 with DataTablePopupMenu

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

the class BpSecurityTransmissionPrivateDataTablePanel method getContentTable.

@SuppressWarnings("unchecked")
@Override
public DataTable<TransmissionPrivateDataEntry> getContentTable() {
    if (contentTable == null) {
        contentTable = new DataTable<TransmissionPrivateDataEntry>(tableModel);
        contentTable.setName(ResourceBundleHelper.getMessageString("security.private.data.transmission.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 : TransmissionPrivateDataEntry(com.att.aro.core.bestpractice.pojo.TransmissionPrivateDataEntry) DataTablePopupMenu(com.att.aro.ui.model.DataTablePopupMenu) TransmissionPrivateDataTableModel(com.att.aro.ui.model.bestpractice.TransmissionPrivateDataTableModel) TableModel(javax.swing.table.TableModel) TableRowSorter(javax.swing.table.TableRowSorter)

Example 10 with DataTablePopupMenu

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

the class BpFileDuplicateContentTablePanel method getContentTable.

/**
 * Initializes and returns the RequestResponseTable.
 */
@Override
@SuppressWarnings("unchecked")
public DataTable<CacheEntry> getContentTable() {
    if (contentTable == null) {
        contentTable = new DataTable<CacheEntry>(tableModel);
        contentTable.setName(ResourceBundleHelper.getMessageString("file.duplicate.content.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) CacheEntry(com.att.aro.core.packetanalysis.pojo.CacheEntry)

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