code: private CmsListDirectAction createDeactivateAction(String id) {
  
          CmsListDirectAction deactAction = new CmsListDirectAction(id) {
  
              /**
               * @see org.opencms.workplace.tools.A_CmsHtmlIconButton#isVisible()
               */
              @Override
              public boolean isVisible() {
  
                  if (getItem() == null) {
                      return super.isVisible();
                  }
                  Boolean enabled = (Boolean)getItem().get(LIST_COLUMN_ENABLED);
                  if (enabled == null) {
                      return super.isVisible();
                  }
                  return enabled.booleanValue();
              }
          };
          deactAction.setName(Messages.get().container(Messages.GUI_USERS_LIST_ACTION_DEACTIVATE_NAME_0));
          deactAction.setHelpText(Messages.get().container(Messages.GUI_USERS_LIST_ACTION_DEACTIVATE_HELP_0));
          deactAction.setConfirmationMessage(Messages.get().container(Messages.GUI_USERS_LIST_ACTION_DEACTIVATE_CONF_0));
          deactAction.setIconPath(ICON_ACTIVE);
          return deactAction;
      }
docs: Creates a "deactivate" list action.<p>
  
  @param id the action id
  
  @return the list action