Examples of LocaleContext


Examples of oracle.jbo.LocaleContext

     * @param viewObject the ViewObject.
     */
    public TableModelImpl(final ViewObject viewObject) {
        this.viewObject = viewObject;
        this.collectionModel = new CollectionModelImpl(viewObject);
        final LocaleContext locale = viewObject.getApplicationModule().getSession().getLocaleContext();
        for (AttributeDef adef : viewObject.getAttributeDefs()) {
            if (adef.getUIHelper().getDisplayHint(locale) == AttributeHints.ATTRIBUTE_DISPLAY_HINT_DISPLAY) {
                final AttributeDescriptorImpl ad = new AttributeDescriptorImpl(adef, locale);
                attributes.add(ad);
                columns.add(new AttributeColumnDescriptorImpl(ad));
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.LocaleContext

  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(),
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.LocaleContext

  // Returns array of matching style sheets sorted by specificity
  private StyleSheetList _getStyleSheets(
    StyleContext context
    )
  {
    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();
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.LocaleContext

                              ImageConstants.TECATE_NAMESPACE,
                              XMLConstants.RESOURCE_BUNDLE_PROPERTY);

    if (_bundleName != null)
    {
      LocaleContext localeContext = (LocaleContext)context.getProperty(
                                      ImageConstants.TECATE_NAMESPACE,
                                      XMLConstants.LOCALE_CONTEXT_PROPERTY);
      bundle = localeContext.getBundle(_bundleName);
    }

    if ((bundle == null) || (_key == null))
    {
      if (_LOG.isWarning())
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.LocaleContext

    StringBuilder  builder,
    ResourceBundle bundle,
    Locale         locale)
  {
    Skin             skin = getSkin(context);
    LocaleContext    lc = new LocaleContextImpl(locale);

    // We get the keys from the bundle, but try to get the values from
    // the skin if possible
    Enumeration<String> keys = bundle.getKeys();
    boolean writtenOne = false;
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.LocaleContext

  private StyleSheetNode[] _getStyleSheets(
    StyleContext context,
    boolean      includeUserStyleSheet
    )
  {
    LocaleContext localeContext = context.getLocaleContext();
    Locale locale = localeContext.getTranslationLocale();
    int direction = LocaleUtils.getReadingDirection(localeContext);
    int mode = NameUtils.getMode(ModeUtils.getCurrentMode(context));
    TrinidadAgent agent = context.getAgent();

    // -= Simon Lessard =-
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.LocaleContext

  public static int getReadingDirection(
    ImageContext context,
    Map<Object, Object> properties
    )
  {
    LocaleContext localeContext = context.getLocaleContext();
    int direction = LocaleUtils.getReadingDirection(localeContext);

    if (properties != null)
    {
      Object o = null;
      if ((o = properties.get(ImageConstants.DIRECTION_KEY)) != null)
        direction = ((Integer)o).intValue();
    }

    if (direction == LocaleUtils.DIRECTION_DEFAULT)
    {

      return LocaleUtils.getReadingDirectionForLocale(
                           localeContext.getTranslationLocale());
    }

    return direction;
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.LocaleContext

        long dateValueInMs = calendar.getTimeInMillis();
        long tzOffset = calendar.get(Calendar.ZONE_OFFSET) +
                        calendar.get(Calendar.DST_OFFSET);
        // get the timeZone specified in trinidad-config, if any or the
        // client timeZone.
        LocaleContext localeContext = arc.getLocaleContext();
        // find out the difference in timeZone
        tzOffset -= localeContext.getTimeZone().getOffset(dateValueInMs);

        // Bug 4570118
        // make sure that adjusting to correct timeZone doesn't take the
        // long value out of the range. Calendar too doesn't handle this
        // properly ie. MIN_VALUE < (longValue + tzOffset) < MAX_VALUE.
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.LocaleContext

   */
  private static Calendar _getCalendar(
    RenderingContext arc
    )
  {
    LocaleContext localeContext = arc.getLocaleContext();

    Calendar calendar = Calendar.getInstance(localeContext.getTimeZone(),
                                localeContext.getFormattingLocale());
    if (calendar instanceof GregorianCalendar)
    {
      ((GregorianCalendar) calendar).setGregorianChange(
         new Date(Long.MIN_VALUE));
    }
View Full Code Here

Examples of org.apache.myfaces.trinidad.context.LocaleContext

  {
    public Key(StyleContext context)
    {
      TrinidadAgent agent = context.getAgent();

      LocaleContext localeContext = context.getLocaleContext();

      UserStyleSheet styleSheet = UserStyleSheet.getUserStyleSheet(context);

      _init(
       localeContext.getTranslationLocale(),
       LocaleUtils.getReadingDirection(localeContext),
       agent.getAgentApplication(),
       agent.getAgentMajorVersion(),
       agent.getAgentOS(),
       styleSheet,
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.