Overwrite the content view
160631
def child_added(self, child):
        
        view = child.widget
        if view is not None:
            self.window.setContentView(view)
1144407
public function viewContent(
        $contentIds = [],
        $contentName = null,
        $contentCategory = null,
        $value = null,
        $currency = null
    )
    {
        $this->sendEventToOutput(
            self::EVENT_VIEW_CONTENT,
            $this->prepareProductsToParameters(
                $contentIds,
                $contentName,
                $contentCategory,
                $value,
                $currency
            )
        );
    }
76449
function applyTemplate(el, tpl) {
        var lightFrag = void 0,
            handleContentNode = hasContent(tpl);

        if (handleContentNode) {
            var newCebContentId = 'ceb-content-' + counter++;
            lightFrag = cleanOldContentNode(el);

            tpl = replaceContent(tpl, newCebContentId);

            el.setAttribute(OLD_CONTENT_ID_ATTR_NAME, newCebContentId);
        }

        el.innerHTML = tpl;

        if (handleContentNode && lightFrag) {
            el.lightDOM.appendChild(lightFrag);
        }
    }
61053
public static void showContent(@NonNull final View loadingView, @NonNull final View contentView,
      @NonNull final View errorView) {

    if (contentView.getVisibility() == View.VISIBLE) {
      // No Changing needed, because contentView is already visible
      errorView.setVisibility(View.GONE);
      loadingView.setVisibility(View.GONE);
    } else {

      errorView.setVisibility(View.GONE);

      final Resources resources = loadingView.getResources();
      final int translateInPixels = resources.getDimensionPixelSize(R.dimen.lce_content_view_animation_translate_y);
      // Not visible yet, so animate the view in
      AnimatorSet set = new AnimatorSet();
      ObjectAnimator contentFadeIn = ObjectAnimator.ofFloat(contentView, View.ALPHA, 0f, 1f);
      ObjectAnimator contentTranslateIn = ObjectAnimator.ofFloat(contentView, View.TRANSLATION_Y,
              translateInPixels, 0);

      ObjectAnimator loadingFadeOut = ObjectAnimator.ofFloat(loadingView, View.ALPHA, 1f, 0f);
      ObjectAnimator loadingTranslateOut = ObjectAnimator.ofFloat(loadingView, View.TRANSLATION_Y, 0,
              -translateInPixels);

      set.playTogether(contentFadeIn, contentTranslateIn, loadingFadeOut, loadingTranslateOut);
      set.setDuration(resources.getInteger(R.integer.lce_content_view_show_animation_time));

      set.addListener(new AnimatorListenerAdapter() {

        @Override public void onAnimationStart(Animator animation) {
          contentView.setTranslationY(0);
          loadingView.setTranslationY(0);
          contentView.setVisibility(View.VISIBLE);
        }

        @Override public void onAnimationEnd(Animator animation) {
          loadingView.setVisibility(View.GONE);
          loadingView.setAlpha(1f); // For future showLoading calls
          contentView.setTranslationY(0);
          loadingView.setTranslationY(0);
        }
      });

      set.start();
    }
  }
1292048
public function content()
    {
        if ($this->app->getMatchRoute()) {
            $actionName = strtolower(preg_replace('/(?<=\d)(?=[A-Za-z])|(?<=[A-Za-z])(?=\d)|(?<=[a-z])(?=[A-Z])/', '-', $this->app->getActionName()));

            $fileArray = [
                strtolower($this->app->getModuleName()),
                str_replace('controller', '', strtolower($this->app->getControllerName())),
                $actionName . '.phtml'
            ];

            $file = implode('/', $fileArray);
        } else {
            $viewManager = $this->config->get('view_manager');
            $file = $viewManager['template_map']['error/404'];
        }

        $this->render($file);
    }
1293060
def change_view(self, request, object_id, form_url='', extra_context=None):
        """"""

        obj = self.get_object(request, unquote(object_id))

        if obj is None:
            raise Http404(_('%(name)s object with primary key %(key)r does not exist.') % {
                'name': force_text(self.opts.verbose_name),
                'key': escape(object_id),
            })

        if not self.has_change_permission(request, obj):
            raise PermissionDenied

        content_block = obj.content_block
        version = content_block.obj_version

        # Version must not be saved, and must belong to this user
        if version.version_number or version.owner != request.user:
            raise PermissionDenied

        return super().change_view(request, object_id, form_url, extra_context)
28576
protected void addOverview(Content body) throws IOException {
        HtmlTree div = new HtmlTree(HtmlTag.DIV);
        div.addStyle(HtmlStyle.contentContainer);
        addOverviewComment(div);
        addTagsInfo(root, div);
        if (configuration.allowTag(HtmlTag.MAIN)) {
            htmlTree.addContent(div);
            body.addContent(htmlTree);
        } else {
            body.addContent(div);
        }
    }
1205849
private void overrideLocalCanalConfig(String content) {

        try (OutputStreamWriter writer = new OutputStreamWriter(
            new FileOutputStream(CommonUtils.getConfPath() + "application.yml"),
            StandardCharsets.UTF_8)) {
            writer.write(content);
            writer.flush();
        } catch (Exception e) {
            logger.error(e.getMessage(), e);
        }
    }
783537
protected void reinitContent(CmsResourceStatusBean statusBean) {

        int selected = m_tabPanel.getSelectedIndex();
        for (int i = 0; i < m_tabPanel.getTabCount(); i++) {
            CmsTabContentWrapper wrapper = m_tabPanel.getWidget(i);
            if (wrapper.getWidget() instanceof CmsResourceInfoView) {
                ((CmsResourceInfoView)wrapper.getWidget()).initContent(statusBean);
            } else if (wrapper.getWidget() instanceof CmsResourceRelationView) {
                ((CmsResourceRelationView)wrapper.getWidget()).initContent(statusBean);
                if (i == selected) {
                    ((CmsResourceRelationView)wrapper.getWidget()).onResizeDescendant();
                }
            }
        }
    }
357534
private void reInflateTabLayout() {
        View rootView = getRootView();

        if (rootView != null) {
            View headerContentContainer = rootView.findViewById(R.id.header_content_container);
            View contentContainer = rootView.findViewById(R.id.content_container);

            if (headerContentContainer != null && contentContainer != null) {
                inflateTabLayout(headerContentContainer, contentContainer);
            }
        }
    }
358803
function refreshView() {
    if (!checkNoChangesMode) {
        executeInitHooks(viewData, tView, creationMode);
    }
    refreshDynamicEmbeddedViews(viewData);
    if (!checkNoChangesMode) {
        executeHooks(directives, tView.contentHooks, tView.contentCheckHooks, creationMode);
    }
    // This needs to be set before children are processed to support recursive components
    tView.firstTemplatePass = firstTemplatePass = false;
    setHostBindings(tView.hostBindings);
    refreshContentQueries(tView);
    refreshChildComponents(tView.components);
}
126042
public function asContents($content, $content_view = null, $data = [])
    {
        $content_view = $content_view ?: $this->content_view;
        $data['contents'] = $content;
        return $this->render($content_view, $data);
    }
1241981
def _insert_contents(self, fzpage, newcont, overlay):
        """"""
        return _fitz.Tools__insert_contents(self, fzpage, newcont, overlay)
1326093
protected void updatePreviewContent(CmsPreviewInfo previewInfo) {

        setCaption(generateCaption(previewInfo));
        initContent(previewInfo);
        initLocales(previewInfo);
        center();
    }
1363757
function markViewDirty(view) {
    var currentView = view;
    while (currentView[PARENT] != null) {
        currentView[FLAGS] |= 4 /* Dirty */;
        currentView = currentView[PARENT];
    }
    currentView[FLAGS] |= 4 /* Dirty */;
    ngDevMode && assertDefined(currentView[CONTEXT], 'rootContext');
    scheduleTick(currentView[CONTEXT]);
}
1360736
protected function setContent($view, $data = array(), $mergeData = array())
	{
		if ( ! is_null($view))
		{
			if (is_string($view))
			{
				$this->layout->content = View::make($view, $data, $mergeData);
			}
			else {
				$this->layout->content = $view;
			}
		}
	}
671009
protected void rewriteContent(CmsFile file, Collection<CmsRelation> relations) throws CmsException {

        LOG.info("Rewriting in-content links for " + file.getRootPath());
        CmsPair<String, String> contentAndEncoding = decode(file);

        String content = "";

        if (OpenCms.getResourceManager().getResourceType(file) instanceof CmsResourceTypeXmlContent) {
            CmsXmlContent contentXml = CmsXmlContentFactory.unmarshal(m_cms, file);
            try {
                contentXml.validateXmlStructure(new CmsXmlEntityResolver(m_cms));
            } catch (CmsException e) {
                LOG.info("XML content was corrected automatically for resource " + file.getRootPath());
                contentXml.setAutoCorrectionEnabled(true);
                contentXml.correctXmlStructure(m_cms);
                try {
                    content = new String(contentXml.marshal(), contentAndEncoding.getSecond());
                } catch (UnsupportedEncodingException e1) {
                    //
                }
            }
        }

        if (content.isEmpty()) {
            content = contentAndEncoding.getFirst();
        }
        String encodingForSave = contentAndEncoding.getSecond();
        String newContent = rewriteContentString(content);
        byte[] newContentBytes;
        try {
            newContentBytes = newContent.getBytes(encodingForSave);
        } catch (UnsupportedEncodingException e) {
            newContentBytes = newContent.getBytes();
        }
        file.setContents(newContentBytes);
        m_cms.writeFile(file);

    }