Examples of WeekTable


Examples of org.openfaces.component.timetable.WeekTable

        renderWeekdayHeadersRow(context, timetableView, clientId);
    }

    @Override
    protected void addSpecificStylingParams(FacesContext context, TimeScaleTable timetableView, JSONObject stylingParams) {
        WeekTable weekTable = (WeekTable) timetableView;
        Rendering.addJsonParam(stylingParams, "weekdayColumnSeparator", weekTable.getWeekdayColumnSeparator());
        Rendering.addJsonParam(stylingParams, "weekdayHeadersRowSeparator", weekTable.getWeekdayHeadersRowSeparator());
        Rendering.addJsonParam(stylingParams, "weekdayPattern", weekTable.getWeekdayPattern());
        Styles.addStyleJsonParam(context, weekTable, stylingParams, "weekdayHeadersRowClass",
                weekTable.getWeekdayHeadersRowStyle(), weekTable.getWeekdayHeadersRowClass());
        Styles.addStyleJsonParam(context, weekTable, stylingParams, "weekdayClass",
                weekTable.getWeekdayStyle(), weekTable.getWeekdayClass());
    }
View Full Code Here

Examples of org.openfaces.component.timetable.WeekTable

                weekTable.getWeekdayStyle(), weekTable.getWeekdayClass());
    }

    @Override
    protected JSONObject getCalendarOptionsObj(TimeScaleTable timetableView) {
        WeekTable weekTable = (WeekTable) timetableView;

        JSONObject calendarOptionsObj = new JSONObject();

        int firstDayOfWeek = weekTable.getFirstDayOfWeek() - 1; // JS weekdays are 0-based while Java weekdays are 1-based
        Rendering.addJsonParam(calendarOptionsObj, "firstDayOfWeek", firstDayOfWeek);
        return calendarOptionsObj;
    }
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.