Package org.dashbuilder.dataset.date

Examples of org.dashbuilder.dataset.date.DayOfWeek


    public IntervalListDayOfWeek(ColumnGroup columnGroup) {
        super(columnGroup);
        intervalMap = new HashMap<Integer, Interval>();

        DayOfWeek firstDay = columnGroup.getFirstDayOfWeek();
        int index = firstDay.getIndex();
        DayOfWeek[] array = DayOfWeek.getAll();

        for (int i = 0; i < array.length; i++) {
            DayOfWeek dayOfWeek = array[index];
            Interval interval = new Interval(dayOfWeek.toString());
            this.add(interval);

            intervalMap.put(index, interval);
            index = DayOfWeek.nextIndex(index);
        }
View Full Code Here

TOP

Related Classes of org.dashbuilder.dataset.date.DayOfWeek

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.