public Canvas getDetailsView(Integer id) {
return new AffinityGroupDetailView(id);
}
private void showActions() {
addTableAction(MSG.view_adminTopology_affinityGroups_createNew(), ButtonColor.BLUE, new AuthorizedTableAction(
this, TableActionEnablement.ALWAYS, Permission.MANAGE_SETTINGS) {
public void executeAction(final ListGridRecord[] selections, Object actionValue) {
showCreateAffinityGroupWindow();
}
});
addTableAction(MSG.view_adminTopology_server_removeSelected(), ButtonColor.RED, new AuthorizedTableAction(this,
TableActionEnablement.ANY, Permission.MANAGE_SETTINGS) {
public void executeAction(final ListGridRecord[] selections, Object actionValue) {
final List<String> selectedNames = getSelectedNames(selections);
String message = MSG.view_adminTopology_message_removeAGroupsConfirm(selectedNames.toString());
SC.ask(message, new BooleanCallback() {