{@link ViewWithPresenter#getPresenter()}
177298
public P getPresenter() {
        if (presenterFactory != null) {
            if (presenter == null && bundle != null)
                presenter = PresenterStorage.INSTANCE.getPresenter(bundle.getString(PRESENTER_ID_KEY));

            if (presenter == null) {
                presenter = presenterFactory.createPresenter();
                PresenterStorage.INSTANCE.add(presenter);
                presenter.create(bundle == null ? null : bundle.getBundle(PRESENTER_KEY));
            }
            bundle = null;
        }
        return presenter;
    }
457169
static boolean retainPresenterInstance(boolean keepPresenterInstance, Controller controller) {

    return keepPresenterInstance && (controller.getActivity().isChangingConfigurations()
        || !controller.getActivity().isFinishing()) && !controller.isBeingDestroyed();
  }
1140049
@Override
	public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) {
		// Create a new view.
		View v = LayoutInflater.from(viewGroup.getContext())
				.inflate(R.layout.rv_card, viewGroup, false);
		ViewHolder viewHolder = new ViewHolder(v);

		v.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				int itemPosition = viewHolder.getAdapterPosition();

				RecyclerAdapter.this.getJarr();
				String id = jarr.get(itemPosition).asJsonObject().getString("id");
				Log.d(TAG, "Element " + itemPosition + " clicked. with id : " + id);
				MyJus.intructablesApi().info(id);
				Fragment prevFragment = ((MainActivity) v.getContext())
						.getSupportFragmentManager().findFragmentById(R.id.container);
				Fragment fragment = DetailFragment.newInstance();
				((MainActivity) v.getContext()).getSupportFragmentManager()
						.beginTransaction()
						.hide(prevFragment).add(R.id.container, fragment).addToBackStack(null)
						.commit();
			}
		});

		return viewHolder;
	}
588902
private P createViewIdAndCreatePresenter() {

    P presenter = delegateCallback.createPresenter();
    if (presenter == null) {
      throw new NullPointerException("Presenter returned from createPresenter() is null.");
    }
    if (keepPresenterDuringScreenOrientationChange) {
      Context context = delegateCallback.getContext();
      mosbyViewId = UUID.randomUUID().toString();
      PresenterManager.putPresenter(PresenterManager.getActivity(context), mosbyViewId, presenter);
    }
    return presenter;
  }
40617
public int getPresent() {
    if (MultipleProteins_Type.featOkTst && ((MultipleProteins_Type)jcasType).casFeat_present == null)
      jcasType.jcas.throwFeatMissing("present", "ch.epfl.bbp.uima.types.MultipleProteins");
    return jcasType.ll_cas.ll_getIntValue(addr, ((MultipleProteins_Type)jcasType).casFeatCode_present);}
1204735
public int getMostVisiblePosition() {
        final int firstPosition = getFirstVisiblePosition();
        final int height = getHeight();

        int maxDisplayedHeight = 0;
        int mostVisibleIndex = 0;
        int i = 0;
        int bottom = 0;
        while (bottom < height) {
            View child = getChildAt(i);
            if (child == null) {
                break;
            }
            bottom = child.getBottom();
            int displayedHeight = Math.min(bottom, height) - Math.max(0, child.getTop());
            if (displayedHeight > maxDisplayedHeight) {
                mostVisibleIndex = i;
                maxDisplayedHeight = displayedHeight;
            }
            i++;
        }
        return firstPosition + mostVisibleIndex;
    }
403757
private P createViewIdAndCreatePresenter() {

    P presenter = delegateCallback.createPresenter();
    if (presenter == null) {
      throw new NullPointerException(
          "Presenter returned from createPresenter() is null. Activity is " + activity);
    }
    if (keepPresenterInstance) {
      mosbyViewId = UUID.randomUUID().toString();
      PresenterManager.putPresenter(activity, mosbyViewId, presenter);
    }
    return presenter;
  }
14843
public ShowInContext getShowInContext()
	{
		IProcess process = getProcess();
		if (process == null)
		{
			return null;
		}
		IDebugTarget target = (IDebugTarget) process.getAdapter(IDebugTarget.class);
		ISelection selection = null;
		if (target == null)
		{
			selection = new TreeSelection(new TreePath(new Object[] {
					DebugPlugin.getDefault().getLaunchManager(),
					process.getLaunch(), process }));
		} else
		{
			selection = new TreeSelection(new TreePath(new Object[] {
					DebugPlugin.getDefault().getLaunchManager(),
					target.getLaunch(), target }));
		}
		return new ShowInContext(null, selection);
	}
1059251
private VS createViewState() {
    VS viewState = delegateCallback.createViewState();
    if (viewState == null) {
      throw new NullPointerException(
          "ViewState returned from createViewState() is null. Fragment is " + fragment);
    }

    if (keepPresenterInstanceDuringScreenOrientationChanges) {
      PresenterManager.putViewState(getActivity(), mosbyViewId, viewState);
    }

    return viewState;
  }
408177
protected Element getEditorParentElement() {

        String parentId = m_id + "_parent";
        Element result = getElementById(parentId);
        return result;
    }
717981
protected function initPresenter()
    {
        if($this->name && $this->open->isSubmitted()) {
            $this->error = $this->dataStore->getError($this->name);
        }
        $this->presenter->setElement($this);
    }
6883
@PrefMetadata(type = CmsExplorerElementViewPreference.class)
    public String getExplorerElementView() {

        return m_settings.getAdditionalPreference(CmsElementViewPreference.EXPLORER_PREFERENCE_NAME, false);
    }
887319
public String getParamWpres() {

        if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_paramWpres) || "null".equals(m_paramWpres)) {
            return CmsVaadinUtils.getWorkplaceLink();
        }
        return m_paramWpres;
    }
294507
@NonNull
    protected View getMainView() {
        final TextView text = new TextView(this);
        final String dialogText = dialogConfiguration.text();
        if (dialogText != null) {
            text.setText(dialogText);
        }
        return text;
    }
978780
@PrefMetadata(type = CmsElementViewPreference.class)
    public String getElementView() {

        return m_settings.getAdditionalPreference(CmsElementViewPreference.PREFERENCE_NAME, false);
    }
80719
private P createViewIdAndCreatePresenter() {

    P presenter = delegateCallback.createPresenter();
    if (presenter == null) {
      throw new NullPointerException(
          "Presenter returned from createPresenter() is null. Activity is " + getActivity());
    }
    if (keepPresenterInstanceDuringScreenOrientationChanges) {
      mosbyViewId = UUID.randomUUID().toString();
      PresenterManager.putPresenter(getActivity(), mosbyViewId, presenter);
    }
    return presenter;
  }
1017426
@NonNull
    public DividerAdapterBuilder leadingView(@NonNull ViewFactory viewFactory) {
        mLeadingItem = new Item(checkNotNull(viewFactory, "viewFactory"), false);
        return this;
    }