Examples of TrinidadAgent


Examples of org.apache.myfaces.trinidadinternal.agent.TrinidadAgent

   */
  private static class Key
  {
    public Key(StyleContext context)
    {
      TrinidadAgent agent = context.getAgent();
      LocaleContext localeContext = context.getLocaleContext();
      AccessibilityProfile accProfile = context.getAccessibilityProfile();

      _init(
       localeContext.getTranslationLocale(),
       LocaleUtils.getReadingDirection(localeContext),
       agent.getAgentApplication(),
       agent.getAgentVersion(),
       agent.getAgentOS(),
       true,
       accProfile,
       context.isPortletMode());
    }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.agent.TrinidadAgent

  {
    // First, get an TrinidadAgent out of the plain Agent
    // =-=AEW In theory, we should only be getting a plain Agent
    // out of the RequestContext:  for some reason, we're going
    // straight to an TrinidadAgent in RequestContext
    TrinidadAgent agent;
    if (base instanceof TrinidadAgent)
      agent = (TrinidadAgent) base;
    else
      agent = new TrinidadAgentImpl(context, base);
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.agent.TrinidadAgent

  {
    LocaleContext localeContext = context.getLocaleContext();
    Locale locale = localeContext.getTranslationLocale();
    int direction = LocaleUtils.getReadingDirection(localeContext);
    int mode = NameUtils.getMode(ModeUtils.getCurrentMode(context));
    TrinidadAgent agent = context.getAgent();
    AccessibilityProfile accProfile = context.getAccessibilityProfile();

    List<StyleSheetNode> v = new ArrayList<StyleSheetNode>(); // List of matching style sheets
    Iterator<StyleSheetNode> e = getStyleSheets()// Iterator of all style sheets
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.agent.TrinidadAgent

  static public boolean supportsHiddenLabels(UIXRenderingContext context)
  {
    if (!BaseLafRenderer.supportsID(context))
      return false;

    TrinidadAgent agent = context.getAgent();

    return org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.HiddenLabelUtils.agentSupportsHiddenLabels(agent);
  }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.agent.TrinidadAgent

  }

  // Get the version as a String
  private static String _getVersionString(StyleContext context)
  {
    TrinidadAgent agent = context.getAgent();
    String version = agent.getAgentVersion();

    if (version == null)
      return _UNKNOWN_NAME;

    return version;
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.agent.TrinidadAgent

   *          and the second value being the version match
   */
  private static boolean[] _isBrowserAndVersionMatch(StyleContext context,
      StyleSheetNode[] styleSheets)
  {
    TrinidadAgent agent = context.getAgent();
    TrinidadAgent.Application browser = agent.getAgentApplication();
    if (browser == TrinidadAgent.Application.UNKNOWN)
    {
      return new boolean[] { false, false };
    }

View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.agent.TrinidadAgent

   */
  private static class Key
  {
    public Key(StyleContext context)
    {
      TrinidadAgent agent = context.getAgent();
      LocaleContext localeContext = context.getLocaleContext();
      AccessibilityProfile accProfile = context.getAccessibilityProfile();

      _init(
       localeContext.getTranslationLocale(),
       LocaleUtils.getReadingDirection(localeContext),
       agent.getAgentApplication(),
       agent.getAgentVersion(),
       agent.getAgentOS(),
       !context.isDisableStyleCompression(),
       accProfile,
       context.isPortletMode(),
       context.isRequestSecure());
    }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.agent.TrinidadAgent

    // targets during the partial page render.  This forces the icon
    // to be replaced as part of the partial page update, and fixes
    // our layout problems.
    String iconID = null;
    Object id = (supportsID(context) ? getID(context, navBar) : null);
    TrinidadAgent agent = context.getAgent();

    if ((id != null) &&
        (partialTargets != null) &&
        (agent.getAgentApplication() == TrinidadAgent.Application.IEXPLORER))
    {
      iconID = id.toString() + "-i";
    }

    // if we need to render standalone, create a table and table row...
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.agent.TrinidadAgent

    UIXRenderingContext context
    )
  {

    // First, make sure the agent supports partial rendering
    TrinidadAgent agent = context.getAgent();
    Object capPartial = agent.getCapability(TrinidadAgent.CAP_PARTIAL_RENDERING);
    if (!Boolean.TRUE.equals(capPartial))
      return false;

    return true;
  }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.agent.TrinidadAgent

  {
    CacheEntry entry = _cache.get(key);
    if (entry == null)
      return null;

    TrinidadAgent agent = context.getAgent();
    //int encodings = ((Integer)agent.getCapability(
    //                                  AdfFacesAgent.CAP_IMAGE_ENCODINGS)).intValue();
    boolean capGif = false;
    Object capability =  agent.getCapability(TrinidadAgent.CAP_GIF_TYPE_IMAGE);
    if (capability == Boolean.TRUE)
       capGif = true;

    boolean capPng = false;
    capability = agent.getCapability(TrinidadAgent.CAP_PNG_TYPE_IMAGE);
    if (capability == Boolean.TRUE)
      capPng = true;

    if (_supportsEncoding(entry, capGif, capPng))
      return entry;
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.