code: private void addEnabledColumn(
          CmsListMetadata metadata,
          CmsListDirectAction enable,
          CmsListDirectAction deactivate) {
  
          // create column for activation/deactivation
          CmsListColumnDefinition enaCol = new CmsListColumnDefinition(LIST_COLUMN_ENABLED);
          enaCol.setName(Messages.get().container(Messages.GUI_USERS_LIST_COLS_ACTIVATE_0));
          enaCol.setHelpText(Messages.get().container(Messages.GUI_USERS_LIST_COLS_ACTIVATE_HELP_0));
          enaCol.setWidth("20");
          enaCol.setAlign(CmsListColumnAlignEnum.ALIGN_CENTER);
          enaCol.setFormatter(new I_CmsListFormatter() {
  
              public String format(Object data, Locale locale) {
  
                  return "";
              }
          });
          enaCol.addDirectAction(enable);
          enaCol.addDirectAction(deactivate);
          enaCol.setVisible(false);
          // add it to the list definition
          metadata.addColumn(enaCol);
      }
docs: Adds an "enabled" column.<p>
  
  @param metadata the list metadata
  @param enable the list action for enabling
  @param deactivate the list action for disabling