Search in sources :

Example 1 with ProcessSelection

use of com.att.aro.core.packetanalysis.pojo.ProcessSelection in project VideoOptimzer by attdevsupport.

the class FilterProcessesDialog method getJApplicationsTable.

/**
 * Initializes and returns the table that contains the list of applications
 * found in the trace data.
 */
private JTable getJApplicationsTable() {
    if (jProcessesTable == null) {
        jProcessesTable = new DataTable<ProcessSelection>(jProcessesTableModel);
        jProcessesTable.setAutoCreateRowSorter(true);
        DataTablePopupMenu popupMenu = (DataTablePopupMenu) jProcessesTable.getPopup();
        popupMenu.initialize();
    }
    return jProcessesTable;
}
Also used : ProcessSelection(com.att.aro.core.packetanalysis.pojo.ProcessSelection) FilteredProcessSelection(com.att.aro.core.packetanalysis.pojo.FilteredProcessSelection) DataTablePopupMenu(com.att.aro.ui.model.DataTablePopupMenu)

Example 2 with ProcessSelection

use of com.att.aro.core.packetanalysis.pojo.ProcessSelection in project VideoOptimzer by attdevsupport.

the class FilterProcessesTableModel method setValueAt.

/**
 * Sets the value of the specified data item.
 *
 * @param aValue
 *            The value to set for the data item.
 *
 * @param rowIndex
 *            The row index of the data item.
 *
 * @param columnIndex
 *            The column index of the data item.
 *
 * @see javax.swing.table.AbstractTableModel#setValueAt(java.lang.Object,
 *      int, int)
 */
@Override
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
    super.setValueAt(aValue, rowIndex, columnIndex);
    ProcessSelection obj = getValueAt(rowIndex);
    if (columnIndex == SELECT_COL) {
        if (aValue instanceof Boolean) {
            obj.setSelected(((Boolean) aValue).booleanValue());
        }
    }
    fireTableCellUpdated(rowIndex, columnIndex);
}
Also used : ProcessSelection(com.att.aro.core.packetanalysis.pojo.ProcessSelection) FilteredProcessSelection(com.att.aro.core.packetanalysis.pojo.FilteredProcessSelection)

Aggregations

FilteredProcessSelection (com.att.aro.core.packetanalysis.pojo.FilteredProcessSelection)2 ProcessSelection (com.att.aro.core.packetanalysis.pojo.ProcessSelection)2 DataTablePopupMenu (com.att.aro.ui.model.DataTablePopupMenu)1