Package org.apache.wicket.markup

Examples of org.apache.wicket.markup.MarkupType


  }

  @Override
  public MarkupType getMarkupType()
  {
    return new MarkupType("xsl", null);
  }
View Full Code Here


   * @param owner
   * @return markup stream
   */
  private MarkupStream findMarkupStream(final Component owner)
  {
    final MarkupType markupType = getMarkupType(owner);
    if (markupType == null)
    {
      return null;
    }

    // TODO we need to expose this functionality for any class not just for
    // markupcontainers in markupcache so we don't have to replicate this
    // logic here

    // Get locator to search for the resource
    final IResourceStreamLocator locator = Application.get()
      .getResourceSettings()
      .getResourceStreamLocator();

    final String style = owner.getStyle();
    final String variation = owner.getVariation();
    final Locale locale = owner.getLocale();

    MarkupResourceStream markupResourceStream = null;
    Class<?> containerClass = getClass();

    while (!(containerClass.equals(BorderBehavior.class)))
    {
      String path = containerClass.getName().replace('.', '/');
      IResourceStream resourceStream = locator.locate(containerClass, path, style, variation,
        locale, markupType.getExtension(), false);

      // Did we find it already?
      if (resourceStream != null)
      {
        ContainerInfo ci = new ContainerInfo(containerClass, locale, style, variation,
View Full Code Here

   * @param component
   * @return markup type
   */
  private MarkupType getMarkupType(final Component component)
  {
    final MarkupType markupType;
    if (component instanceof MarkupContainer)
    {
      markupType = ((MarkupContainer)component).getMarkupType();
    }
    else
View Full Code Here

   * @param owner
   * @return markup stream
   */
  private MarkupStream findMarkupStream(final Component owner)
  {
    final MarkupType markupType = getMarkupType(owner);
    if (markupType == null)
    {
      return null;
    }

    // TODO we need to expose this functionality for any class not just for
    // markupcontainers in markupcache so we don't have to replicate this
    // logic here

    // Get locator to search for the resource
    final IResourceStreamLocator locator = Application.get()
      .getResourceSettings()
      .getResourceStreamLocator();

    final String style = owner.getStyle();
    final String variation = owner.getVariation();
    final Locale locale = owner.getLocale();

    MarkupResourceStream markupResourceStream = null;
    Class<?> containerClass = getClass();

    while (!(containerClass.equals(MarkupComponentBorder.class)))
    {
      String path = containerClass.getName().replace('.', '/');
      IResourceStream resourceStream = locator.locate(containerClass, path, style, variation,
        locale, markupType.getExtension(), false);

      // Did we find it already?
      if (resourceStream != null)
      {
        ContainerInfo ci = new ContainerInfo(containerClass, locale, style, variation,
View Full Code Here

   * @param component
   * @return markup type
   */
  private MarkupType getMarkupType(final Component component)
  {
    final MarkupType markupType;
    if (component instanceof MarkupContainer)
    {
      markupType = ((MarkupContainer)component).getMarkupType();
    }
    else
View Full Code Here

  }

  @Override
  public MarkupType getMarkupType()
  {
    return new MarkupType("xsl", null);
  }
View Full Code Here

   * @see org.apache.wicket.MarkupContainer#getMarkupType()
   */
  @Override
  public MarkupType getMarkupType()
  {
    return new MarkupType("xsl", null);
  }
View Full Code Here

   * @param owner
   * @return markup stream
   */
  private MarkupStream findMarkupStream(final Component owner)
  {
    final MarkupType markupType = getMarkupType(owner);
    if (markupType == null)
    {
      return null;
    }

    // TODO we need to expose this functionality for any class not just for
    // markupcontainers in markupcache so we don't have to replicate this
    // logic here

    // Get locator to search for the resource
    final IResourceStreamLocator locator = Application.get()
      .getResourceSettings()
      .getResourceStreamLocator();

    final String style = owner.getStyle();
    final String variation = owner.getVariation();
    final Locale locale = owner.getLocale();

    MarkupResourceStream markupResourceStream = null;
    Class<?> containerClass = getClass();

    while (!(containerClass.equals(BorderBehavior.class)))
    {
      String path = containerClass.getName().replace('.', '/');
      IResourceStream resourceStream = locator.locate(containerClass, path, style, variation,
        locale, markupType.getExtension(), false);

      // Did we find it already?
      if (resourceStream != null)
      {
        ContainerInfo ci = new ContainerInfo(containerClass, locale, style, variation,
View Full Code Here

   * @param component
   * @return markup type
   */
  private MarkupType getMarkupType(final Component component)
  {
    final MarkupType markupType;
    if (component instanceof MarkupContainer)
    {
      markupType = ((MarkupContainer)component).getMarkupType();
    }
    else
View Full Code Here

   * @param owner
   * @return markup stream
   */
  private MarkupStream findMarkupStream(final Component owner)
  {
    final MarkupType markupType = getMarkupType(owner);
    if (markupType == null)
    {
      return null;
    }

    // TODO we need to expose this functionality for any class not just for
    // markupcontainers in markupcache so we don't have to replicate this
    // logic here

    // Get locator to search for the resource
    final IResourceStreamLocator locator = Application.get()
      .getResourceSettings()
      .getResourceStreamLocator();

    final String style = owner.getStyle();
    final String variation = owner.getVariation();
    final Locale locale = owner.getLocale();

    MarkupResourceStream markupResourceStream = null;
    Class<?> containerClass = getClass();

    while (!(containerClass.equals(BorderBehavior.class)))
    {
      String path = containerClass.getName().replace('.', '/');
      IResourceStream resourceStream = locator.locate(containerClass, path, style, variation,
        locale, markupType.getExtension(), false);

      // Did we find it already?
      if (resourceStream != null)
      {
        ContainerInfo ci = new ContainerInfo(containerClass, locale, style, variation,
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.MarkupType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.