Creates the view for the image cache.<p>

@return a vaadin vertical layout with the information about the image cache
334202
private Component getImageViewComponent() {

        m_siteTableFilter = new TextField();

        HorizontalSplitPanel sp = new HorizontalSplitPanel();
        sp.setSizeFull();
        VerticalLayout intro = CmsVaadinUtils.getInfoLayout(Messages.GUI_CACHE_IMAGE_INTRODUCTION_0);
        VerticalLayout nullResult = CmsVaadinUtils.getInfoLayout(Messages.GUI_CACHE_IMAGE_NO_RESULTS_0);
        final CmsImageCacheTable table = new CmsImageCacheTable(intro, nullResult, m_siteTableFilter);

        sp.setFirstComponent(new CmsImageCacheInput(table));

        VerticalLayout secC = new VerticalLayout();
        secC.setSizeFull();
        secC.addComponent(intro);
        secC.addComponent(nullResult);
        secC.addComponent(table);

        m_siteTableFilter.setIcon(FontOpenCms.FILTER);
        m_siteTableFilter.setInputPrompt(
            Messages.get().getBundle(UI.getCurrent().getLocale()).key(Messages.GUI_EXPLORER_FILTER_0));
        m_siteTableFilter.addStyleName(ValoTheme.TEXTFIELD_INLINE_ICON);
        m_siteTableFilter.setWidth("200px");
        m_siteTableFilter.addTextChangeListener(new TextChangeListener() {

            private static final long serialVersionUID = 1L;

            public void textChange(TextChangeEvent event) {

                table.filterTable(event.getText());
            }
        });
        m_infoLayout.addComponent(m_siteTableFilter);

        m_uiContext.addToolbarButton(getImageStatisticButton());
        m_uiContext.addToolbarButton(CmsFlushCache.getFlushToolButton());
        table.setSizeFull();
        sp.setSecondComponent(secC);
        sp.setSplitPosition(CmsFileExplorer.LAYOUT_SPLIT_POSITION, Unit.PIXELS);

        table.setVisible(false);
        nullResult.setVisible(false);
        m_siteTableFilter.setVisible(false);

        return sp;
    }
1211013
public CmsJspStandardContextBean createCopy() {

        CmsJspStandardContextBean result = new CmsJspStandardContextBean();
        result.m_container = m_container;
        if (m_detailContentResource != null) {
            result.m_detailContentResource = m_detailContentResource.getCopy();
        }
        result.m_element = m_element;
        result.setPage(m_page);
        return result;
    }
843565
private LayoutParams createPreviewLayoutParams() {
        LayoutParams layoutParams = new LayoutParams(getPreviewSize(), getPreviewSize());
        layoutParams.gravity = Gravity.CENTER_VERTICAL;
        return layoutParams;
    }
92766
protected VerticalLayout getLayout(final List<String> htmlLines, final List<InfoElementBean> additionalElements) {

        VerticalLayout layout = new VerticalLayout();
        Label label = new Label();
        label.setWidthUndefined();
        layout.setMargin(true);
        label.setContentMode(ContentMode.HTML);
        layout.addStyleName(OpenCmsTheme.INFO);
        String htmlContent = "";
        for (String line : htmlLines) {
            htmlContent += line;
        }
        label.setValue(htmlContent);

        layout.addComponent(label);
        for (InfoElementBean infoElement : additionalElements) {
            layout.addComponent(infoElement.getComponent(), infoElement.getPos());
        }
        layout.setWidthUndefined();
        return layout;
    }
913963
public Canvas getViewPanel() {
		VLayout layout = new VLayout(5);
		layout.setPadding(5);

		MapWidget mapWidget = new MapWidget("mapGuwCountries", "appGuw");
		final RibbonBarLayout ribbon = new RibbonBarLayout(mapWidget, "appGuw", "guwRibbonBar2");
		ribbon.setSize("100%", "80px");

		layout.addMember(ribbon);
		layout.addMember(mapWidget);
		return layout;
	}
289984
public static JPanel createPanelWithVerticalLayout()
	{
		JPanel _panel = new JPanel();
		_panel.setLayout(new BoxLayout(_panel, BoxLayout.Y_AXIS));
		return _panel;
	}
1017319
public FacesConfigRedirectViewParamType<FacesConfigRedirectType<T>> getOrCreateViewParam()
   {
      List<Node> nodeList = childNode.get("view-param");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new FacesConfigRedirectViewParamTypeImpl<FacesConfigRedirectType<T>>(this, "view-param", childNode, nodeList.get(0));
      }
      return createViewParam();
   }
857290
public static View create(String name, String map) {
        return new DefaultView(name, map, null);
    }
360304
protected function loadLayout()
    {
        if ($this->layout instanceof Theme\Layout) {
            // add theme layout public directory
            loader()->addPublicDir($this->layout->getPath() . 'assets');

            presenter()->assets->autoload(
                [
                    'css' => ['layout'],
                    'js'  => ['layout'],
                ]
            );

            $partials = $this->layout->getPartials()->getArrayCopy();

            foreach ($partials as $offset => $partial) {
                if ($partial instanceof SplFileInfo) {
                    presenter()->partials->addPartial($offset, $partial->getPathName());
                }
            }
        }

        return $this;
    }
160656
View createPresetsView() {
    View contentView = View.inflate(getActivity(), R.layout.cpv_dialog_presets, null);
    shadesLayout = (LinearLayout) contentView.findViewById(R.id.shades_layout);
    transparencySeekBar = (SeekBar) contentView.findViewById(R.id.transparency_seekbar);
    transparencyPercText = (TextView) contentView.findViewById(R.id.transparency_text);
    GridView gridView = (GridView) contentView.findViewById(R.id.gridView);

    loadPresets();

    if (showColorShades) {
      createColorShades(color);
    } else {
      shadesLayout.setVisibility(View.GONE);
      contentView.findViewById(R.id.shades_divider).setVisibility(View.GONE);
    }

    adapter = new ColorPaletteAdapter(new ColorPaletteAdapter.OnColorSelectedListener() {
      @Override public void onColorSelected(int newColor) {
        if (color == newColor) {
          // Double tab selects the color
          ColorPickerDialog.this.onColorSelected(color);
          dismiss();
          return;
        }
        color = newColor;
        if (showColorShades) {
          createColorShades(color);
        }
      }
    }, presets, getSelectedItemPosition(), colorShape);

    gridView.setAdapter(adapter);

    if (showAlphaSlider) {
      setupTransparency();
    } else {
      contentView.findViewById(R.id.transparency_layout).setVisibility(View.GONE);
      contentView.findViewById(R.id.transparency_title).setVisibility(View.GONE);
    }

    return contentView;
  }
172640
protected Component createContentPane() {
		Image image = getImage();
		if (image != null) {
			return new ImageCanvas(image);
		}
		return null;
	}
647146
public ExtViewQuery image(String url, boolean cache) {
        if (cache) {
            image(url);
        } else {
            Picasso.with(context).load(url).skipMemoryCache().into((ImageView) view);
        }
        return this;
    }
1140790
public LinearLayoutManager asVerticalListView() {
        this.presentation = PeasyPresentation.VerticalList;
        resetItemDecorations();
        resetItemAnimator();
        final LinearLayoutManager layoutManager = PeasyRecyclerView.VerticalList.newLayoutManager(getContext());
        getRecyclerView().setLayoutManager(layoutManager);
        getRecyclerView().addItemDecoration(new DividerItemDecoration(getContext(), layoutManager.getOrientation()));
        getRecyclerView().setItemAnimator(new DefaultItemAnimator());
        return layoutManager;
    }
345797
public static ImageView createImageInstance(Context context) {
        if (sImageClass != null) {
            if (imageViewConstructor == null) {
                try {
                    imageViewConstructor = sImageClass.getConstructor(Context.class);
                } catch (NoSuchMethodException e) {
                    e.printStackTrace();
                }
            }
            if (imageViewConstructor != null) {
                try {
                    return (ImageView) imageViewConstructor.newInstance(context);
                } catch (InstantiationException e) {
                    e.printStackTrace();
                } catch (IllegalAccessException e) {
                    e.printStackTrace();
                } catch (InvocationTargetException e) {
                    e.printStackTrace();
                }
            }
        }
        return null;
    }
369765
private JPanel createContentCanvas()
    {
        if (contentCanvas != null)
        {
            contentCanvas = new BrowserPanel(proc.getPage());
            contentCanvas.setLayout(null);
            selection = new Selection();
            contentCanvas.add(selection);
            selection.setVisible(false);
            selection.setLocation(0, 0);
        }
        return contentCanvas;
    }
1310023
public static android.view.View createView(Context context, Class<?> screenType) {
    Layout screen = screenType.getAnnotation(Layout.class);
    if (screen == null) {
      throw new IllegalArgumentException(
          String.format("@%s annotation not found on class %s", Layout.class.getSimpleName(),
              screenType.getName()));
    }

    int layout = screen.value();
    return inflateLayout(context, layout);
  }
402921
public UI wrapLayout(Layout layout) {
        // TODO: add a header to switch the style, etc
        // TODO: add bookmark to set the style
        if (server.getConfig().isDevelopmentHeader()) {
            final VerticalSplitPanel mainLayout = new VerticalSplitPanel();
            mainLayout.setSizeFull();
            mainLayout.setSplitPosition(SPLIT_POSITION, Sizeable.Unit.PIXELS);
            mainLayout.setLocked(true);

            final DevApplicationHeader header = new DevApplicationHeader(server);
            header.setSpacing(true);
            mainLayout.setFirstComponent(header);

            mainLayout.setSecondComponent(layout);

            return new DevUI(mainLayout);
        } else {
            return new DevUI(layout);
        }
    }