Examples of toCalendar()


Examples of com.sun.msv.datatype.xsd.datetime.IDateTimeValueType.toCalendar()

      if( isInfinite( start ) )
        throw new IllegalArgumentException( "Cannot handle infinite values" );

      IDateTimeValueType duration = TIME_ZERO.add( (ITimeDurationValueType) start );

      BigDecimal millis = new BigDecimal( duration.toCalendar().getTimeInMillis() );
      BigDecimal succ = millis.add( new BigDecimal( n ) );

      return TimeDurationFactory.create( null, null, null, null, null, succ );
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.value.Conversions.Converter.toCalendar()

                    || type == Type.REFERENCE || type == Type.WEAKREFERENCE) {
                return (T) value;
            } else {
                Converter converter = Conversions.convert(value);
                if (base == Type.DATE) {
                    converter = Conversions.convert(converter.toCalendar());
                } else if (base == Type.DECIMAL) {
                    converter = Conversions.convert(converter.toDecimal());
                } else if (base == Type.DOUBLE) {
                    converter = Conversions.convert(converter.toDouble());
                } else if (base == Type.LONG) {
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.value.Conversions.Converter.toCalendar()

                    || type == Type.REFERENCE || type == Type.WEAKREFERENCE) {
                return (T) value;
            } else {
                Converter converter = Conversions.convert(value);
                if (base == Type.DATE) {
                    converter = Conversions.convert(converter.toCalendar());
                } else if (base == Type.DECIMAL) {
                    converter = Conversions.convert(converter.toDecimal());
                } else if (base == Type.DOUBLE) {
                    converter = Conversions.convert(converter.toDouble());
                } else if (base == Type.LONG) {
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.value.Conversions.Converter.toCalendar()

                    || type == Type.REFERENCE || type == Type.WEAKREFERENCE) {
                return (T) value;
            } else {
                Converter converter = Conversions.convert(value);
                if (base == Type.DATE) {
                    converter = Conversions.convert(converter.toCalendar());
                } else if (base == Type.DECIMAL) {
                    converter = Conversions.convert(converter.toDecimal());
                } else if (base == Type.DOUBLE) {
                    converter = Conversions.convert(converter.toDouble());
                } else if (base == Type.LONG) {
View Full Code Here

Examples of org.apache.pivot.util.CalendarDate.toCalendar()

            // Since we're only rendering the month, the year and day do not matter here
            CalendarDate date = new CalendarDate(2000, (Integer)item, 0);

            SimpleDateFormat monthFormat = new SimpleDateFormat("MMMM", calendar.getLocale());
            item = monthFormat.format(date.toCalendar().getTime());

            super.render(item, spinner);
        }
    }
View Full Code Here

Examples of org.apache.pivot.util.CalendarDate.toCalendar()

        } else {
            if (dataMutable instanceof CalendarDate) {
                CalendarDate date = (CalendarDate)dataMutable;

                DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.MEDIUM, locale);
                dataMutable = dateFormat.format(date.toCalendar().getTime());
            }
        }

        super.render(dataMutable, button, highlight);
    }
View Full Code Here

Examples of org.apache.pivot.util.CalendarDate.toCalendar()

            // Since we're only rendering the month, the year and day do not matter here
            CalendarDate date = new CalendarDate(2000, (Integer)item, 0);

            SimpleDateFormat monthFormat = new SimpleDateFormat("MMMM", calendar.getLocale());
            Object itemFromFormat = monthFormat.format(date.toCalendar().getTime());

            super.render(itemFromFormat, spinner);
        }
    }
View Full Code Here

Examples of org.apache.pivot.util.CalendarDate.toCalendar()

            // Since we're only rendering the month, the year and day do not matter here
            CalendarDate date = new CalendarDate(2000, (Integer)item, 0);

            SimpleDateFormat monthFormat = new SimpleDateFormat("MMMM", calendar.getLocale());
            item = monthFormat.format(date.toCalendar().getTime());

            super.render(item, spinner);
        }
    }
View Full Code Here

Examples of org.apache.pivot.util.CalendarDate.toCalendar()

        } else {
            if (data instanceof CalendarDate) {
                CalendarDate date = (CalendarDate)data;

                DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.MEDIUM, locale);
                data = dateFormat.format(date.toCalendar().getTime());
            }
        }

        super.render(data, button, highlight);
    }
View Full Code Here

Examples of org.apache.pivot.util.CalendarDate.toCalendar()

            // Since we're only rendering the month, the year and day do not matter here
            CalendarDate date = new CalendarDate(2000, (Integer)item, 0);

            SimpleDateFormat monthFormat = new SimpleDateFormat("MMMM", calendar.getLocale());
            item = monthFormat.format(date.toCalendar().getTime());

            super.render(item, spinner);
        }
    }
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.