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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations