use of com.att.aro.ui.model.overview.DomainsTCPSessions in project VideoOptimzer by attdevsupport.
the class OverviewTabTableSplitPane method getAccessedDomainContentTable.
/**
* Initializes and returns the RequestResponseTable.
*/
public JTable getAccessedDomainContentTable() {
if (accessedDataTable == null) {
accessedDataTable = new DataTable<DomainsTCPSessions>(accessDomainModel);
accessedDataTable.setName(ResourceBundleHelper.getMessageString("overview.accessed.domains.tableName"));
DataTablePopupMenu popupMenu = (DataTablePopupMenu) accessedDataTable.getPopup();
popupMenu.initialize();
accessedDataTable.setAutoCreateRowSorter(true);
accessedDataTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
accessedDataTable.setGridColor(Color.LIGHT_GRAY);
TableRowSorter<TableModel> sorter = new TableRowSorter<>(accessDomainModel);
accessedDataTable.setRowSorter(sorter);
sorter.setComparator(0, Util.getDomainSorter());
accessedDataTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
@Override
public void valueChanged(ListSelectionEvent arg0) {
DomainsTCPSessions aTCpSession = accessedDataTable.getSelectedItem();
if (null != aTCpSession) {
expandedDomainModel.setData(aTCpSession.getTcpSessions());
} else {
expandedDomainModel.removeAllRows();
}
}
});
}
return accessedDataTable;
}
Aggregations