Package org.zkoss.calendar.api

Examples of org.zkoss.calendar.api.DateFormatter


    final String zcls = self.getZclass();
    final String month = zcls + "-month";
    final String header = zcls + "-header";
    final String content = zcls + "-cnt";

    DateFormatter df = cal.getDateFormatter();
    StringBuffer wh = new StringBuffer();
    wh.append("<div id=\"").append(id).append("\" z.type=\"Calevent\" class=\"")
      .append(zcls).append(" ").append(month).append("\"");
    wh.append(" z.zcls=\"").append(zcls).append("\"");
    wh.append(" z.bd=\"").append(eventBegin.getTime() + bdDSTOffset).append("\"");
    wh.append(" z.ed=\"").append(eventEnd.getTime() + edDSTOffset).append("\"");
    if (self.isLocked())
      wh.append(" z.locked=\"true\"");

    wh.append(">");

    // title
    wh.append("<span id=\"")
        .append(id)
        .append("!hd\" class=\"")
        .append(header)
        .append("\"")
        .append(headerStyle)
        .append(">")
        .append(df.getCaptionByTimeOfDay(eventBegin, Locales.getCurrent(),
            cal.getDefaultTimeZone())).append("&nbsp;</span>");

    // content
    wh.append("<span id=\"")
        .append(id)
View Full Code Here

TOP

Related Classes of org.zkoss.calendar.api.DateFormatter

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.