code: private void addActivateColumn(
          CmsListMetadata metadata,
          CmsListDirectAction enable,
          CmsListDirectAction deactivate) {
  
          // create column for activation/deactivation
          CmsListColumnDefinition actCol = new CmsListColumnDefinition(LIST_COLUMN_ACTIVATE);
          actCol.setName(Messages.get().container(Messages.GUI_USERS_LIST_COLS_ACTIVATE_0));
          actCol.setHelpText(Messages.get().container(Messages.GUI_USERS_LIST_COLS_ACTIVATE_HELP_0));
          actCol.setWidth("20");
          actCol.setAlign(CmsListColumnAlignEnum.ALIGN_CENTER);
          actCol.setListItemComparator(new CmsListItemActionIconComparator());
          actCol.addDirectAction(enable);
          actCol.addDirectAction(deactivate);
          // add it to the list definition
          metadata.addColumn(actCol);
      }
docs: Adds an "activate" column.<p>
  
  @param metadata the list metadata
  @param enable the action for enabling
  @param deactivate the action for disabling