getButtonPanel().add(Builder.createButton(removeAction));
getTablePopupMenu().add(Builder.createMenuItem(viewAction));
getTablePopupMenu().add(Builder.createMenuItem(detailsAction));
getTable().addMouseListener(new DoubleClickListener(viewAction));
}
else { // "sendq" / "pollq" (?)
getButtonPanel().add(Builder.createButton(editAction));
getButtonPanel().add(Builder.createButton(removeAction));
getButtonPanel().add(Builder.createButton(suspendAction));
getButtonPanel().add(Builder.createButton(resumeAction));
getButtonPanel().add(Builder.createButton(viewAction));
getTablePopupMenu().add(Builder.createMenuItem(editAction));
getTablePopupMenu().add(Builder.createMenuItem(removeAction));
getTablePopupMenu().add(Builder.createMenuItem(detailsAction));
getTablePopupMenu().addSeparator();
getTablePopupMenu().add(Builder.createMenuItem(retryAction));
getTablePopupMenu().addSeparator();
getTablePopupMenu().add(Builder.createMenuItem(suspendAction));
getTablePopupMenu().add(Builder.createMenuItem(resumeAction));
getTablePopupMenu().addSeparator();
getTablePopupMenu().add(Builder.createMenuItem(viewAction));
getTable().addMouseListener(new DoubleClickListener(editAction));
}
updateLabels();
updateActions();
}