Search in sources :

Example 31 with DataTablePopupMenu

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

the class BPNetworkComparisonTablePanel method getContentTable.

@SuppressWarnings("unchecked")
@Override
public DataTable<SegmentComparison> getContentTable() {
    if (contentTable == null) {
        contentTable = new DataTable<SegmentComparison>(tableModel);
        contentTable.setName(ResourceBundleHelper.getMessageString("video.network.comparison.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(NetworkComparisonTableModel.COL_TRACK_INDEX, Util.getIntSorter());
        sorter.setComparator(NetworkComparisonTableModel.COL_COUNT_INDEX, Util.getIntSorter());
        sorter.setComparator(NetworkComparisonTableModel.COL_CALCULATED_NETWORK_BITRATE_INDEX, Util.getFloatSorter());
        sorter.setComparator(NetworkComparisonTableModel.COL_DECLARED_MANIFEST_BANDWIDTH_INDEX, Util.getFloatSorter());
        // set default sort
        sorter.toggleSortOrder(NetworkComparisonTableModel.COL_TRACK_INDEX);
        DataTablePopupMenu popupMenu = (DataTablePopupMenu) contentTable.getPopup();
        popupMenu.initialize();
    }
    return contentTable;
}
Also used : SegmentComparison(com.att.aro.core.videoanalysis.pojo.SegmentComparison) DataTablePopupMenu(com.att.aro.ui.model.DataTablePopupMenu) NetworkComparisonTableModel(com.att.aro.ui.model.bestpractice.NetworkComparisonTableModel) TableModel(javax.swing.table.TableModel) TableRowSorter(javax.swing.table.TableRowSorter)

Example 32 with DataTablePopupMenu

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

the class BpFileCompressionTablePanel method getContentTable.

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

Example 33 with DataTablePopupMenu

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

the class BpFileImageSizeTablePanel method getContentTable.

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

Example 34 with DataTablePopupMenu

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

the class BpHtmlAsyncLoadTablePanel method getContentTable.

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

Example 35 with DataTablePopupMenu

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

the class BpHtmlDisplayNoneInCSSTablePanel method getContentTable.

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

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