BindView annotated fields and methods in the specified {@link Activity}. The current content
view is used as the view root.

@param target Target activity for view binding.
5443
@NonNull @UiThread
  public static Unbinder bind(@NonNull Activity target) {
    View sourceView = target.getWindow().getDecorView();
    return bind(target, sourceView);
  }
433858
public void show(Activity targetActivity) {
        ViewGroup root = (ViewGroup) targetActivity.findViewById(android.R.id.content);
        boolean usePhoneLayout = shouldUsePhoneLayout(targetActivity);
        MarginLayoutParams params = init(targetActivity, targetActivity, root, usePhoneLayout);
        updateLayoutParamsMargins(targetActivity, params);
        showInternal(targetActivity, params, root);
    }
382306
public static void bindLabel (final Value<String> value, final HasText target)
    {
        value.addListenerAndTrigger(new Value.Listener<String>() {
            public void valueChanged (String value) {
                // avoid updating the target if the value is already the same; in the case where
                // the target is a TextBox, setting the text will move the cursor to the end of the
                // text, which is annoying if a value is being updated on every character edit
                if (!target.getText().equals(value)) {
                    target.setText(value);
                }
            }
        });
    }
881407
public void setTargetDestination(String targetDestination) 
  {
    if (tc.isEntryEnabled())
      SibTr.entry(tc, "setTargetDestination", targetDestination);

    this.targetDestination = targetDestination;

    if (tc.isEntryEnabled())
      SibTr.exit(tc, "setTargetDestination");
  }
206644
public void setTargeting(com.google.api.ads.admanager.axis.v201805.Targeting targeting) {
        this.targeting = targeting;
    }
1058599
public void inject(final Object target) {
        if (uiThreadRunner.isOnUiThread()) {
            try {
                graph.inject(target, Inject.class);
            } catch (PokeException e) {
                throw new MvcGraphException(e.getMessage(), e);
            }
        } else {
            uiThreadRunner.post(new Runnable() {
                @Override
                public void run() {
                    try {
                        graph.inject(target, Inject.class);
                    } catch (PokeException e) {
                        throw new MvcGraphException(e.getMessage(), e);
                    }
                }
            });
        }
    }
494280
protected void doBindView(View itemView, Context context, Cursor cursor) {
		try {
			@SuppressWarnings("unchecked")
			ViewType itemViewType = (ViewType) itemView;
			bindView(itemViewType, context, cursorToObject(cursor));
		} catch (SQLException e) {
			throw new RuntimeException(e);
		}
	}
1330217
<T> void bindWith(final PeasyRecyclerView<T> binder, final int viewType) {
        this.itemView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                int position = getLayoutPosition();
                position = (position <= binder.getLastItemIndex()) ? position : getAdapterPosition();
                position = (position <= binder.getLastItemIndex()) ? position : RecyclerView.NO_POSITION;
                if (position != RecyclerView.NO_POSITION) {
                    binder.onItemClick(v, viewType, position, binder.getItem(position), getInstance());
                }
            }
        });
        this.itemView.setOnLongClickListener(new View.OnLongClickListener() {
            @Override
            public boolean onLongClick(View v) {
                int position = getLayoutPosition();
                position = (position <= binder.getLastItemIndex()) ? position : getAdapterPosition();
                position = (position <= binder.getLastItemIndex()) ? position : RecyclerView.NO_POSITION;
                if (getLayoutPosition() != RecyclerView.NO_POSITION) {
                    return binder.onItemLongClick(v, viewType, position, binder.getItem(position), getInstance());
                }
                return false;
            }
        });
    }
572810
@Override
    public void bindView(ViewHolder holder, List<Object> payloads) {
        //set the selected state of this item. force this otherwise it may is missed when implementing an item
        holder.itemView.setSelected(isSelected());

        //set the name
        holder.name.setText(name);
    }
212588
public void registerView(@Nullable RegisterViewStatusListener callback) {
        if (Branch.getInstance() != null) {
            Branch.getInstance().registerView(this, callback);
        } else {
            if (callback != null) {
                callback.onRegisterViewFinished(false, new BranchError("Register view error", BranchError.ERR_BRANCH_NOT_INSTANTIATED));
            }
        }
    }
774641
public void setEditorTarget (PropertyEditorTarget target)
    {
        if (target instanceof DBMetaColumnNode)
        {
            super.setEditorTarget(target);
            this.tfColumnName.setText((String)target.getAttribute(DBMetaColumnNode.ATT_COLUMN_NAME));
        }
        else
        {
            throw new UnsupportedOperationException("This editor can only edit DBMetaColumnNode objects");
        }
    }
51754
public void load(Object source, Object target)
  {
    for (LoadField load : _loadFields) {
      load.load(source, target);
    }
  }
536971
@Override
    public void bindView(ViewHolder viewHolder, List<Object> payloads) {
        super.bindView(viewHolder, payloads);

        viewHolder.radioButton.setChecked(isSelected());

        //set the text for the name
        StringHolder.applyTo(name, viewHolder.name);
        //set the text for the description or hide
        StringHolder.applyToOrHide(description, viewHolder.description);
    }
1324243
public void initialize(ControlBean bean, Object target)
    {
        initServices(bean, target);
        initControls(bean, target);
        initEventProxies(bean, target);
    }
966322
@Override
    public void setTarget(String target) {

        if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) {
            SibTr.debug(this, TRACE, "setTarget", target);
        }
        _target = target;

    }
157360
public void addMappingTarget(String mapping, RequestProcessor target) throws Exception {
        this.requestMapper.addMapping(mapping, target);
    }
832276
protected void setForm(final T bean, final AjaxRequestTarget target) {
        LOG.debug("Setting form to {}", bean);

        // update the model with the new bean
        formModel.setObject(bean);

        // add the form to the target
        target.add(form);

        // update the button
        updateSaveButton.setModel(Model.of("Update"));
        target.add(updateSaveButton);
    }