Examples of MarkupType


Examples of oasis.names.tc.wsrp.v1.types.MarkupType

                                                          portletInstanceKey,
                                                          user);
            final PortletDescription desc = producer.getPortletDescription(portletHandle);
            coplet.setTemporaryAttribute(ATTRIBUTE_NAME_PORTLET_TITLE,
                                         desc.getTitle());
            final MarkupType markupType = desc.getMarkupTypes(0);
            coplet.setTemporaryAttribute(ATTRIBUTE_NAME_PORTLET_MODES, markupType.getModes());
            coplet.setTemporaryAttribute(ATTRIBUTE_NAME_PORTLET_WINDOWSTATES, markupType.getWindowStates());

        } catch (WSRPException e) {
            this.getLogger().error("Invoking getServiceDescription()", e);
        }
    }
View Full Code Here

Examples of oasis.names.tc.wsrp.v1.types.MarkupType

                                                          portletInstanceKey,
                                                          user);
            final PortletDescription desc = producer.getPortletDescription(portletHandle);
            coplet.setTemporaryAttribute(ATTRIBUTE_NAME_PORTLET_TITLE,
                                         desc.getTitle());
            final MarkupType markupType = desc.getMarkupTypes(0);
            coplet.setTemporaryAttribute(ATTRIBUTE_NAME_PORTLET_MODES, markupType.getModes());
            coplet.setTemporaryAttribute(ATTRIBUTE_NAME_PORTLET_WINDOWSTATES, markupType.getWindowStates());

        } catch (WSRPException e) {
            this.getLogger().error("Invoking getServiceDescription()", e);
        }
    }
View Full Code Here

Examples of oasis.names.tc.wsrp.v1.types.MarkupType

        markupParams.setNavigationalState(request.getNavigationalState());
        markupParams.setMarkupCharacterSets(consumerEnv.getCharacterEncodingSet());
        markupParams.setValidateTag(null); // TODO ValidateTag

        // TODO we could cache the modes and window states
        final MarkupType markupType = this.desc.getMarkupTypes(0);
        markupParams.setValidNewModes(this.getValidValues(consumerEnv.getSupportedModes(), markupType.getModes()));
        markupParams.setValidNewWindowStates(this.getValidValues(consumerEnv.getSupportedWindowStates(), markupType.getWindowStates()));

        markupParams.setExtensions(this.getMarkupParamsExtensions());

        return markupParams;
    }
View Full Code Here

Examples of oasis.names.tc.wsrp.v1.types.MarkupType

                                                          portletInstanceKey,
                                                          user);
            final PortletDescription desc = producer.getPortletDescription(portletHandle);
            coplet.setTemporaryAttribute(ATTRIBUTE_NAME_PORTLET_TITLE,
                                         desc.getTitle());
            final MarkupType markupType = desc.getMarkupTypes(0);
            coplet.setTemporaryAttribute(ATTRIBUTE_NAME_PORTLET_MODES, markupType.getModes());
            coplet.setTemporaryAttribute(ATTRIBUTE_NAME_PORTLET_WINDOWSTATES, markupType.getWindowStates());

        } catch (WSRPException e) {
            this.getLogger().error("Invoking getServiceDescription()", e);
        }
    }
View Full Code Here

Examples of oasis.names.tc.wsrp.v1.types.MarkupType

        markupParams.setNavigationalState(request.getNavigationalState());
        markupParams.setMarkupCharacterSets(consumerEnv.getCharacterEncodingSet());
        markupParams.setValidateTag(null); // TODO ValidateTag

        // TODO we could cache the modes and window states
        final MarkupType markupType = this.desc.getMarkupTypes(0);
        markupParams.setValidNewModes(this.getValidValues(consumerEnv.getSupportedModes(), markupType.getModes()));
        markupParams.setValidNewWindowStates(this.getValidValues(consumerEnv.getSupportedWindowStates(), markupType.getWindowStates()));

        markupParams.setExtensions(this.getMarkupParamsExtensions());

        return markupParams;
    }
View Full Code Here

Examples of org.apache.wicket.markup.MarkupType

  }

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

Examples of org.apache.wicket.markup.MarkupType

   * @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

Examples of org.apache.wicket.markup.MarkupType

   * @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

Examples of org.apache.wicket.markup.MarkupType

   * @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

Examples of org.apache.wicket.markup.MarkupType

   * @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
TOP
Copyright © 2018 www.massapi.com. 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.