Send a click event if parent view is a Listview instance

@param isLongClick Is the event a long click ?
771176
private void sendClickEvent(final Boolean isLongClick) {
        if (getParent() instanceof AdapterView) {
            final AdapterView adapterView = (AdapterView) getParent();
            final int position = adapterView.getPositionForView(this);
            final long id = adapterView.getItemIdAtPosition(position);
            if (isLongClick) {
                if (adapterView.getOnItemLongClickListener() != null)
                    adapterView.getOnItemLongClickListener().onItemLongClick(adapterView, this, position, id);
            } else {
                if (adapterView.getOnItemClickListener() != null)
                    adapterView.getOnItemClickListener().onItemClick(adapterView, this, position, id);
            }
        }
    }
1201304
function (islist) {
      var arr = this.commands, self = this, i = 0,
        page_size = arr.length,
        arrResultHTML = [],
        resultData = [],
        show_list_count = islist ? this.page_size : this.query_size;
      if (arr && arr.length && toString.call(arr).indexOf('Array') > -1) {
        for (; i < page_size; i++) {
          if (!arr[i]) break;
          var nIdx = self.isSreachIndexOF(arr[i].n, self.query);
          var dIdx = self.isSreachIndexOF(arr[i].d, self.query);
          if (nIdx > -1 || dIdx > -1) {
            var json = arr[i];
            json.nIdx = nIdx;
            json.dIdx = dIdx;
            resultData.push(json);
          }
        }
      }
      resultData.sort(function (a, b) {
        return a.nIdx - b.nIdx
      }).sort(function(a, b) {
        return a.n.length - b.n.length;
      }).sort(function (a, b) {
        if (b.n.indexOf(self.query) < 0) {
          return -1;
        }
        return a.n.indexOf(self.query) - b.n.indexOf(self.query);
      });
      resultData = resultData.slice(0, show_list_count);

      for (i = 0; i < resultData.length; i++) {
        arrResultHTML.push(self.createKeyworldsHTML(resultData[i], self.query, islist));
      }
      var elm = islist ? this.elm_search_result : this.elm_result;
      elm.innerHTML = '';
      for (var i = 0; i < arrResultHTML.length; i++) {
        var myLi = document.createElement("LI");
        myLi.innerHTML = arrResultHTML[i];
        elm.appendChild(myLi);
      }
      if (arrResultHTML.length === 0) {
        var myLi = document.createElement("LI");
        myLi.innerHTML = '<span>' + this.query ? '请尝试输入一些字符，进行搜索！' + '</span>' : '没有搜索到任何内容，请尝试输入其它字符！';
        elm.appendChild(myLi);
      }
    }
470464
public boolean onClickDefault(Polyline polyline, MapView mapView, GeoPoint eventPos) {
        polyline.setInfoWindowLocation(eventPos);
        polyline.showInfoWindow();
        return true;
    }
549201
@Override
    public void setParent(View parent)
    {

        if (parent == null && view != null) view.setParent(null);
        this.parent = parent;

        // if set new parent and has some element, try to load children
        // this element is a BranchElement ("collection"),
        // so we should have some LeafElements ("children")
        if ((parent != null) && (getElement() != null))
        {
            ViewFactory f = getViewFactory();
            loadChildren(f);
        }
    }
401120
protected boolean selectAllParents(CmsTreeItem item, String path, List<String> result) {

        // if this is a list view
        if (m_listView) {
            // check if the path contains the item path
            if (path.contains(item.getId())) {
                // add it to the list of selected categories
                if (!result.contains(item.getId())) {
                    result.add(item.getId());
                }
                return true;
            }

        }
        // if this is a tree view
        else {
            // check if the pach contains the item path
            if (item.getId().equals(path)) {
                // add it to the list of selected categories
                if (!result.contains(item.getId())) {
                    result.add(item.getId());
                }
                return true;
            } else {
                // iterate about all children of this item
                Iterator<Widget> it = item.getChildren().iterator();
                while (it.hasNext()) {
                    if (selectAllParents((CmsTreeItem)it.next(), path, result)) {
                        if (!result.contains(item.getId())) {
                            result.add(item.getId());
                        }
                        return true;
                    }
                }
            }
        }

        return false;
    }
162705
private void assignClickListenerRecursively(View parent) {
    if (parent == null) {
      return;
    }

    if (parent instanceof ViewGroup) {
      ViewGroup viewGroup = (ViewGroup) parent;
      int childCount = viewGroup.getChildCount();
      for (int i = childCount - 1; i >= 0; i--) {
        View child = viewGroup.getChildAt(i);
        assignClickListenerRecursively(child);
      }
    }
    setClickListener(parent);
  }
564384
protected boolean onMarkerClickDefault(Marker marker, MapView mapView) {
		marker.showInfoWindow();
		if (marker.mPanToView)
			mapView.getController().animateTo(marker.getPosition());
		return true;
	}
501492
public ActionMode onLongClick(AppCompatActivity act, int position) {
        if (mActionMode == null && mFastAdapter.getItem(position).isSelectable()) {
            //may check if actionMode is already displayed
            mActionMode = act.startSupportActionMode(mInternalCallback);
            //we have to select this on our own as we will consume the event
            mSelectExtension.select(position);
            // update title
            checkActionMode(act, 1);
            //we consume this event so the normal onClick isn't called anymore
            return mActionMode;
        }
        return mActionMode;
    }
22575
public void onFolderClick(FolderClickEvent event) {
		try {

			if (isIconTargetClicked()) {
				onIconClick(event.getFolder());
			} else {
				if (event.getFolder() instanceof LayerTreeTreeNode) {
					mapModel.selectLayer(((LayerTreeTreeNode) event.getFolder()).getLayer());
				} else {
					mapModel.selectLayer(null);
				}
			}
		} catch (Exception e) { // NOSONAR
			Log.logError(e.getMessage());
			// some other unusable element
		}
	}
640912
private void checkOnClickListener(View view, AttributeSet attrs) {
        final Context context = view.getContext();

        if (!(context instanceof ContextWrapper) ||
                (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1 && !ViewCompat.hasOnClickListeners(view))) {
            // Skip our compat functionality if: the Context isn't a ContextWrapper, or
            // the view doesn't have an OnClickListener (we can only rely on this on API 15+ so
            // always use our compat code on older devices)
            return;
        }

        final TypedArray a = context.obtainStyledAttributes(attrs, sOnClickAttrs);
        final String handlerName = a.getString(0);
        if (handlerName != null) {
            view.setOnClickListener(new DeclaredOnClickListener(view, handlerName));
        }
        a.recycle();
    }
1373807
protected void onItemClick(View view, int position){
        if(itemClickListener != null) itemClickListener.onItemClick(view, getItem(position), position);
    }
759264
void handleFileItemClick(ItemClickEvent event) {

        if (isEditing()) {
            stopEdit();

        } else if (!event.isCtrlKey() && !event.isShiftKey()) {
            // don't interfere with multi-selection using control key
            String itemId = (String)event.getItemId();
            CmsUUID structureId = getUUIDFromItemID(itemId);
            boolean openedFolder = false;
            if (event.getButton().equals(MouseButton.RIGHT)) {
                handleSelection(itemId);
                openContextMenu(event);
            } else {
                if ((event.getPropertyId() == null)
                    || CmsResourceTableProperty.PROPERTY_TYPE_ICON.equals(event.getPropertyId())) {
                    handleSelection(itemId);
                    openContextMenu(event);
                } else {
                    if (m_actionColumnProperty.equals(event.getPropertyId())) {
                        Boolean isFolder = (Boolean)event.getItem().getItemProperty(
                            CmsResourceTableProperty.PROPERTY_IS_FOLDER).getValue();
                        if ((isFolder != null) && isFolder.booleanValue()) {
                            if (m_folderSelectHandler != null) {
                                m_folderSelectHandler.onFolderSelect(structureId);
                            }
                            openedFolder = true;
                        } else {
                            try {
                                CmsObject cms = A_CmsUI.getCmsObject();
                                CmsResource res = cms.readResource(structureId, CmsResourceFilter.IGNORE_EXPIRATION);
                                m_currentResources = Collections.singletonList(res);
                                I_CmsDialogContext context = m_contextProvider.getDialogContext();
                                I_CmsDefaultAction action = OpenCms.getWorkplaceAppManager().getDefaultAction(
                                    context,
                                    m_menuBuilder);
                                if (action != null) {
                                    action.executeAction(context);
                                    return;
                                }
                            } catch (CmsVfsResourceNotFoundException e) {
                                LOG.info(e.getLocalizedMessage(), e);
                            } catch (CmsException e) {
                                LOG.error(e.getLocalizedMessage(), e);
                            }
                        }
                    } else {
                        I_CmsDialogContext context = m_contextProvider.getDialogContext();
                        if ((m_currentResources.size() == 1)
                            && m_currentResources.get(0).getStructureId().equals(structureId)
                            && (context instanceof I_CmsEditPropertyContext)
                            && ((I_CmsEditPropertyContext)context).isPropertyEditable(event.getPropertyId())) {

                            ((I_CmsEditPropertyContext)context).editProperty(event.getPropertyId());
                        }
                    }
                }
            }
            // update the item on click to show any available changes
            if (!openedFolder) {
                update(Collections.singletonList(structureId), false);
            }
        }
    }
521917
@BindingAdapter("bind:tv_html")
    public static void setCustomHtml(TypefaceTextView textView, Boolean isHtml) {
        isHtml = isHtml != null ? isHtml : false;
        textView.mHtmlEnabled = isHtml;
        textView.setText(textView.getText());
    }
1211631
public void setOnSlideClickListener(OnSlideClickListener slideClickListener) {
        this.slideClickListener = slideClickListener;
        if (slideClickListener != null) {
            setClickable(true);
            setOnClickListener(this);
        } else {
            setClickable(false);
            setOnClickListener(null);
        }
    }
1020666
def register_view(self, view):
        """"""
        super(ListViewController, self).register_view(view)
        self.tree_view.connect('button_press_event', self.mouse_click)
849170
private boolean isIconTargetClicked() {
		String targetHtml = EventHandler.getNativeMouseTarget().getString();

		if (targetHtml.indexOf(ICON_EXTENSION) != -1) {
			return true;
		}

		return false;
	}
47182
public void clickOnView(View view) {
		if(config.commandLogging){
			Log.d(config.commandLoggingTag, "clickOnView("+view+")");
		}
		
		view = waiter.waitForView(view, Timeout.getSmallTimeout());
		clicker.clickOnScreen(view);
	}