enum Columns { Pid, Process, Type, Command, AppName, Slug, Action, State, PrettyState, TransitionedAt, Elapsed, Attached, RendezvousUrl}
@Override
public Object getValueAt(int row, int column) {
final Proc process = getProcess(row);
switch (columnFor(column)) {
case Pid:
return process.getUpid();
case Process:
return process.getProcess();
case Type:
return process.getType();
case Command:
return process.getCommand();
case AppName:
return process.getAppName();
case Slug:
return process.getSlug();
case Action:
return process.getAction();
case State:
return process.getState();
case PrettyState:
return process.getPrettyState();
case TransitionedAt:
return process.getTransitionedAt();
case Elapsed:
return process.getElapsed();
case Attached:
return process.isAttached();
case RendezvousUrl:
return process.getRendezvousUrl();
}
return null;
}