Fills details of the field configuration into the given item. <p>

@param item the list item to fill
@param detailId the id for the detail to fill
763920
private void fillDetailFieldConfiguration(CmsListItem item, String detailId) {

        // search for the corresponding A_CmsSearchIndex:
        String idxName = (String)item.get(LIST_COLUMN_NAME);
        I_CmsSearchIndex idx = OpenCms.getSearchManager().getIndex(idxName);
        if (idx != null) {
            StringBuffer html = new StringBuffer();
            I_CmsSearchFieldConfiguration idxFieldConfiguration = idx.getFieldConfiguration();
            List<CmsSearchField> fields = idxFieldConfiguration.getFields();

            html.append("<ul>\n");
            html.append("  <li>\n").append("    ").append("name      : ").append(
                idxFieldConfiguration.getName()).append("\n");
            html.append("  </li>");
            html.append("  <li>\n").append("    ").append("fields : ").append("\n");
            html.append("    <ul>\n");

            Iterator<CmsSearchField> itFields = fields.iterator();
            while (itFields.hasNext()) {
                CmsLuceneField field = (CmsLuceneField)itFields.next();
                String fieldName = field.getName();
                boolean fieldStore = field.isStored();
                String fieldIndex = field.getIndexed();
                boolean fieldExcerpt = field.isInExcerpt();
                String fieldDefault = field.getDefaultValue();

                html.append("  <li>\n").append("    ");
                html.append("name=").append(fieldName);
                if (fieldStore) {
                    html.append(", ").append("store=").append(fieldStore);
                }
                if (!fieldIndex.equals("false")) {
                    html.append(", ").append("index=").append(fieldIndex);
                }
                if (fieldExcerpt) {
                    html.append(", ").append("excerpt=").append(fieldExcerpt);
                }
                if (fieldDefault != null) {
                    html.append(", ").append("default=").append(field.getDefaultValue());
                }
                html.append("\n").append("    <ul>\n");

                Iterator<I_CmsSearchFieldMapping> itMappings = field.getMappings().iterator();
                while (itMappings.hasNext()) {
                    CmsSearchFieldMapping mapping = (CmsSearchFieldMapping)itMappings.next();
                    html.append("  <li>\n").append("    ");
                    html.append(mapping.getType().toString());
                    if (CmsStringUtil.isNotEmpty(mapping.getParam())) {
                        html.append("=").append(mapping.getParam()).append("\n");
                    }
                    html.append("  </li>");
                }
                html.append("    </ul>\n");
                html.append("  </li>");
            }
            html.append("    </ul>\n");
            html.append("  </li>");
            html.append("</ul>\n");
            item.set(detailId, html.toString());
        }
    }
825734
protected void addItem(ItemState item)
   {
      index.put(item.getData().getIdentifier(), item);
      index.put(item.getData().getQPath(), item);
      index.put(new ParentIDQPathBasedKey(item), item);
      index.put(new IDStateBasedKey(item.getData().getIdentifier(), item.getState()), item);

      if (item.getData().isNode())
      {
         Map<String, ItemState> children = lastChildNodeStates.get(item.getData().getParentIdentifier());
         if (children == null)
         {
            children = new HashMap<String, ItemState>();
            lastChildNodeStates.put(item.getData().getParentIdentifier(), children);
         }
         children.put(item.getData().getIdentifier(), item);

         List<ItemState> listItemState = childNodeStates.get(item.getData().getParentIdentifier());
         if (listItemState == null)
         {
            listItemState = new ArrayList<ItemState>();
            childNodeStates.put(item.getData().getParentIdentifier(), listItemState);
         }
         listItemState.add(item);
         if (item.isPathChanged())
         {
            if (allPathsChanged == null)
            {
               allPathsChanged = new ArrayList<ItemState>();
            }
            allPathsChanged.add(item);
         }
      }
      else
      {
         Map<String, ItemState> children = lastChildPropertyStates.get(item.getData().getParentIdentifier());
         if (children == null)
         {
            children = new HashMap<String, ItemState>();
            lastChildPropertyStates.put(item.getData().getParentIdentifier(), children);
         }
         children.put(item.getData().getIdentifier(), item);

         List<ItemState> listItemState = childPropertyStates.get(item.getData().getParentIdentifier());
         if (listItemState == null)
         {
            listItemState = new ArrayList<ItemState>();
            childPropertyStates.put(item.getData().getParentIdentifier(), listItemState);
         }
         listItemState.add(item);
      }

      if (item.isNode() && item.isPersisted())
      {
         int[] childInfo = childNodesInfo.get(item.getData().getParentIdentifier());
         if (childInfo == null)
         {
            childInfo = new int[2];
         }

         if (item.isDeleted())
         {
            --childInfo[CHILD_NODES_COUNT];
         }
         else if (item.isAdded())
         {
            ++childInfo[CHILD_NODES_COUNT];
            childInfo[CHILD_NODES_LAST_ORDER_NUMBER] = ((NodeData)item.getData()).getOrderNumber();

         }
         childNodesInfo.put(item.getData().getParentIdentifier(), childInfo);
      }
   }
508084
public final void add(@NonNull final AbstractItem item) {
        Condition.INSTANCE.ensureNotNull(item, "The item may not be null");
        items.add(item);

        if (item instanceof Item && ((Item) item).getIcon() != null) {
            iconCount++;
        } else if (item instanceof Divider) {
            dividerCount++;
        }

        rawItems = null;
        notifyOnDataSetChanged();
    }
1113553
public void setSettings(final String viewId, final String item, final String value) {
        this.configEntry.set(item, value);
    }
1322586
public synchronized void addItem(T item) {
        synchronized (items) {
            items.add(item);
        }
//        clusterMarker.setMarkerBitmap();
        if (center == null) {
            center = item.getLatLong();
        } else {
            // computing the centroid
            double lat = 0, lon = 0;
            int n = 0;
            synchronized (items) {
                for (T object : items) {
                    if (object == null) {
                        throw new NullPointerException("object == null");
                    }
                    if (object.getLatLong() == null) {
                        throw new NullPointerException("object.getLatLong() == null");
                    }
                    lat += object.getLatLong().latitude;
                    lon += object.getLatLong().longitude;
                    n++;
                }
            }
            center = new LatLong(lat / n, lon / n);
        }
    }
58215
private void updateItem(CmsUUID itemId, boolean remove) {

        if (remove) {
            String idStr = itemId != null ? itemId.toString() : null;
            m_container.removeItem(idStr);
            return;
        }

        CmsObject cms = A_CmsUI.getCmsObject();
        try {
            CmsResource resource = cms.readResource(itemId, CmsResourceFilter.ALL);
            fillItem(cms, resource, OpenCms.getWorkplaceManager().getWorkplaceLocale(cms));

        } catch (CmsVfsResourceNotFoundException e) {
            m_container.removeItem(itemId);
            LOG.debug("Failed to update file table item, removing it from view.", e);
        } catch (CmsException e) {
            LOG.error(e.getLocalizedMessage(), e);
        }
    }
736899
public void setViewSetting(final String viewId, final String item, final String value) {
        final ConfigItemMapEntrySet view = this.viewById.get(viewId);
        if (view == null)
            return;

        view.set(item, value);
    }
1170955
@Override
  public final void setItem(final ServiceToSale pItem) {
    this.item = pItem;
    if (getItsId() == null) {
      setItsId(new ServiceCatalogId());
    }
    getItsId().setItem(this.item);
  }
393568
@Override
  public final void setItem(final InvItem pGoods) {
    this.item = pGoods;
    if (this.itsId == null) {
      this.itsId = new GoodsPlaceId();
    }
    this.itsId.setItem(this.item);
  }
900227
public void setViewSetting(final String viewId, final String item, final String value) {
        this.settingsElement.setViewSetting(viewId, item, value);
    }
354993
public void add(String item, String value) {

        int maxChar = MaxLenInZChoice;

        if (item.length() < MaxLenInZChoice) {
            maxChar = item.length();
        }

        super.add(item.substring(0, maxChar));
        values.addElement(value);
    }
785285
public void addItemDetails(CmsListItemDetails itemDetail) {

        itemDetail.setListId(getListId());
        m_itemDetails.addIdentifiableObject(itemDetail.getId(), itemDetail);
    }
1353933
protected void handleItemClick(Object itemId) {

        Item item = getItem(itemId);
        I_CmsOuTreeType type = (I_CmsOuTreeType)getItem(itemId).getItemProperty(PROP_TYPE).getValue();
        CmsUUID roleOrGroupID = null;
        boolean idInItem = false;
        if (itemId instanceof CmsUUID) {
            roleOrGroupID = (CmsUUID)itemId;
            idInItem = true;
        } else if (item.getItemProperty(PROP_SID).getValue() != null) {
            roleOrGroupID = (CmsUUID)(item.getItemProperty(PROP_SID).getValue());
            idInItem = true;
        }
        if (type.equals(CmsOuTreeType.ROLE)) {
            String ou = getOuFromItem(itemId, CmsOuTreeType.ROLE);
            boolean isRoot = ou.isEmpty();
            if (isRoot) {
                ou = "/";
            }
            if (!((String)itemId).endsWith(ou)) {
                if (isRoot) {
                    if (((String)itemId).length() > (ou.length() + 1)) {
                        roleOrGroupID = new CmsUUID(((String)itemId).substring(ou.length() + 1));
                    }
                } else {
                    roleOrGroupID = new CmsUUID(((String)itemId).substring(ou.length() + 2));
                }
            }
        }

        m_app.update(getOuFromItem(itemId, type), type, roleOrGroupID, "");
        if (isExpanded(itemId) || idInItem) {
            return;
        }
        loadAndExpand(itemId, type);
        setValue(itemId);

    }
486668
public void add(T item) {
        hasElements = true;
        navigator = emptyItemIndex;
        items[emptyItemIndex] = item;
        if (emptyItemIndex == size - 1) {
            wasFullAtleastOnce = true;
        }
        emptyItemIndex = (emptyItemIndex + 1) % size;
    }
25340
@Override
    public void addOrUpdateItem(T item) {
        synchronized (LOCK) {
            // Update memory cache
            cache.onObjectUpdated(item.getEngineId(), item);

            List<T> items = new ArrayList<T>();
            items.add(item);
            asyncStorageInt.addOrUpdateItems(items);

            for (ListEngineDisplayListener<T> l : listeners) {
                l.addOrUpdate(item);
            }
        }
    }
958376
protected void fillList() {

        try {
            getList().setContent(getListItems());
            // initialize detail columns
            Iterator<CmsListItemDetails> itDetails = getList().getMetadata().getItemDetailDefinitions().iterator();
            while (itDetails.hasNext()) {
                initializeDetail(itDetails.next().getId());
            }
        } catch (Exception e) {
            throw new CmsRuntimeException(
                Messages.get().container(Messages.ERR_LIST_FILL_1, getList().getName().key(getLocale()), null),
                e);
        }
    }
1048681
public void insert( Envelope itemEnv, Object item ) {
        if (itemEnv.isNull()) {
            return;
        }
        super.insert(itemEnv, item);
    }