Search in sources :

Example 1 with HttpDelayTableModel

use of com.att.aro.ui.model.diagnostic.HttpDelayTableModel 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)

Aggregations

HttpRequestResponseInfo (com.att.aro.core.packetanalysis.pojo.HttpRequestResponseInfo)1 DataTablePopupMenu (com.att.aro.ui.model.DataTablePopupMenu)1 HttpDelayTableModel (com.att.aro.ui.model.diagnostic.HttpDelayTableModel)1 TableModel (javax.swing.table.TableModel)1 TableRowSorter (javax.swing.table.TableRowSorter)1