use of com.att.aro.ui.model.DataTablePopupMenu in project VideoOptimzer by attdevsupport.
the class FilterApplicationsAndIpDialog method getJIpAddressesTable.
/**
* Initializes and returns the table that contains the list of IP addresses
* found in the trace data.
*/
private JTable getJIpAddressesTable() {
if (jIpAddressTable == null) {
// Make sure to make a copy of the current data before modifying
jIpAddressTable = new DataTable<FilterIpAddressesTableModel.AppIPAddressSelection>(jIpAddressesTableModel);
jIpAddressTable.setAutoCreateRowSorter(true);
DataTablePopupMenu popupMenu = (DataTablePopupMenu) jIpAddressTable.getPopup();
popupMenu.initialize();
}
return jIpAddressTable;
}
use of com.att.aro.ui.model.DataTablePopupMenu in project VideoOptimzer by attdevsupport.
the class BurstAnalysisPanel method getBurstTable.
/**
* Returns a DataTable containing the individual burst analysis data.
*
* @return A DataTable object containing the individual burst analysis data.
*/
public DataTable<Burst> getBurstTable() {
if (burstTable == null) {
burstTable = new DataTable<Burst>(burstTableModel);
burstTable.setName(ResourceBundleHelper.getMessageString("statistics.individual.burst.analysis.tableName"));
burstTable.setGridColor(Color.LIGHT_GRAY);
burstTable.setAutoCreateRowSorter(true);
DataTablePopupMenu popupMenu = (DataTablePopupMenu) burstTable.getPopup();
popupMenu.initialize();
}
return burstTable;
}
use of com.att.aro.ui.model.DataTablePopupMenu in project VideoOptimzer by attdevsupport.
the class BurstAnalysisPanel method getTable.
/**
* Returns a DataTable containing the burst analysis data.
*
* @return A DataTable object containing the burst analysis data.
*/
public DataTable<BurstAnalysisInfo> getTable() {
if (table == null) {
table = new DataTable<BurstAnalysisInfo>(tableModel);
table.setName(ResourceBundleHelper.getMessageString("statistics.burst.analysis.tableName"));
table.setGridColor(Color.LIGHT_GRAY);
table.setAutoCreateRowSorter(true);
DataTablePopupMenu popupMenu = (DataTablePopupMenu) table.getPopup();
popupMenu.initialize();
}
return table;
}
use of com.att.aro.ui.model.DataTablePopupMenu in project VideoOptimzer by attdevsupport.
the class VideoRequestPanel method getRequestListPanel.
private JPanel getRequestListPanel() {
if (requestListPanel == null) {
requestListPanel = new JPanel();
requestListPanel.setLayout(new BorderLayout());
getDummyData();
requestListTable = new DataTable<HttpRequestResponseInfo>();
requestListPanel.setName(ResourceBundleHelper.getMessageString("video.tab.requests.tableName"));
DataTablePopupMenu popupMenu = (DataTablePopupMenu) requestListTable.getPopup();
popupMenu.initialize();
videoRequestTableModel.setData(requestURL);
requestListTable.setModel(videoRequestTableModel);
JTableHeader header = requestListTable.getTableHeader();
requestListTable.setGridColor(Color.LIGHT_GRAY);
int width = requestListTable.getParent() != null ? requestListTable.getParent().getWidth() : 1000;
width = requestPanel.getWidth();
requestListTable.getColumnModel().getColumn(0).setPreferredWidth(width);
requestListTable.getColumnModel().getColumn(0).setCellRenderer(new WordWrapRenderer());
requestListPanel.add(header, BorderLayout.NORTH);
requestListPanel.add(requestListTable, BorderLayout.CENTER);
requestListTable.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent event) {
if (event.getClickCount() == 2) {
int row = requestListTable.getSelectedRow();
HttpRequestResponseInfo request = requestURL.get(row);
requestListTable.getColumnModel().getColumn(0).setCellRenderer(new WordWrapRenderer(row));
if (ResourceBundleHelper.getMessageString("videotab.videorequest.table.url").equals(requestListTable.getColumnName(requestListTable.getSelectedColumn()))) {
RegexWizard regexWizard = RegexWizard.getInstance(aroView.getJFrame());
regexWizard.setRequest(request);
regexWizard.setVisible(true);
}
}
}
});
}
return requestListPanel;
}
use of com.att.aro.ui.model.DataTablePopupMenu in project VideoOptimzer by attdevsupport.
the class EndPointSummaryPanel method getTable.
/**
* Returns a DataTable containing the end point summary per application data.
*
* @return A DataTable object containing the end point summary per application data.
*/
public DataTable<ApplicationPacketSummary> getTable() {
if (table == null) {
table = new DataTable<ApplicationPacketSummary>(tableModel);
table.setName(ResourceBundleHelper.getMessageString("statistics.application.summary.tableName"));
table.setAutoCreateRowSorter(true);
DataTablePopupMenu popupMenu = (DataTablePopupMenu) table.getPopup();
popupMenu.initialize();
}
return table;
}
Aggregations