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