code: protected void addSingleResult(CmsResultItemBean resultItem, boolean front, boolean showPath) {
  
          m_types.add(resultItem.getType());
          boolean hasPreview = m_tabHandler.hasPreview(resultItem.getType());
          CmsDNDHandler dndHandler = m_dndHandler;
          if (!m_galleryHandler.filterDnd(resultItem)) {
              dndHandler = null;
          }
          CmsResultListItem listItem = new CmsResultListItem(resultItem, hasPreview, showPath, dndHandler);
          if (resultItem.isPreset()) {
              m_preset = listItem;
          }
          if (hasPreview) {
              listItem.addPreviewClickHandler(new PreviewHandler(resultItem.getPath(), resultItem.getType()));
          }
          CmsUUID structureId = new CmsUUID(resultItem.getClientId());
          listItem.getListItemWidget().addButton(
              new CmsContextMenuButton(structureId, m_contextMenuHandler, AdeContext.gallery));
          listItem.getListItemWidget().addOpenHandler(new OpenHandler<CmsListItemWidget>() {
  
              public void onOpen(OpenEvent<CmsListItemWidget> event) {
  
                  onContentChange();
              }
          });
          if (m_tabHandler.hasSelectResource()) {
              SelectHandler selectHandler = new SelectHandler(
                  resultItem.getPath(),
                  structureId,
                  resultItem.getRawTitle(),
                  resultItem.getType());
              listItem.addSelectClickHandler(selectHandler);
  
              // this affects both tiled and non-tiled result lists.
              listItem.addDoubleClickHandler(selectHandler);
          }
          m_galleryHandler.processResultItem(listItem);
          if (front) {
              addWidgetToFrontOfList(listItem);
          } else {
              addWidgetToList(listItem);
          }
      }
docs: Adds a list item for a single search result.<p>
  
  @param resultItem the search result
  @param front if true, adds the list item to the front of the list, else at the back
  @param showPath <code>true</code> to show the resource path in sub title