Package org.zkoss.calendar.api
Interface Calendars
-
public interface CalendarsDeprecated.This interface defines the methods used for Calendars.- Author:
- jumperchen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddTimeZone(String label, String timezone)Deprecated.Adds the time zone to the calendar.voidaddTimeZone(String label, TimeZone timezone)Deprecated.Adds the time zone to the calendar.DategetBeginDate()Deprecated.Returns the beginning date, which is based ongetCurrentDate()in the current view depended on which mold is using.DategetCurrentDate()Deprecated.Returns the current date.DateFormattergetDateFormatter()Deprecated.Returns the date formatter.intgetDays()Deprecated.Returns the days.TimeZonegetDefaultTimeZone()Deprecated.Returns the current time zone of the calendar.DategetEndDate()Deprecated.Returns the end date, which is based ongetCurrentDate()in the current view depended on which mold is using.List<CalendarItem>getEvent(Date beginDate)Deprecated.Returns the unmodifiable list including all the calendar events matching from the specified date in the same date.intgetFirstDayOfWeek()Deprecated.Gets what the first day of the week is; e.g.,SUNDAYin the U.S.,MONDAYin France.ItemRendergetItemRender()Deprecated.As of release 2.0-RC Returns the item renderer used forCalendarItemto draw its outline (i.e.CalendarModelgetModel()Deprecated.Returns the calendar model.Map<TimeZone,String>getTimeZones()Deprecated.Returns the unmodifiable map including all the timezone inside the calendar.intgetWeekOfMonth()Deprecated.Returns the number of the week of the month in the current date.booleanisReadonly()Deprecated.Returns whether it is readonly.booleanisWeekOfYear()Deprecated.Returns whether enable to show the week number within the current year or not.voidnextPage()Deprecated.Navigates the current date to the next page, that is, when thegetDays()is seven with default mold, the next page means the next week.voidpreviousPage()Deprecated.Navigates the current date to the previous page, that is, when thegetDays()is seven with default mold, the previous page means the previous week.booleanremoveTimeZone(TimeZone timezone)Deprecated.Removes the time zone from the calendarvoidsetCurrentDate(Date curDate)Deprecated.Sets the current date.voidsetDateFormatter(String clsnm)Deprecated.Sets the date formatter by a class name.voidsetDateFormatter(DateFormatter dfmater)Deprecated.Sets the date formatter.voidsetDays(int days)Deprecated.Sets the days, that is, how many column should be displayed on the default mold.voidsetFirstDayOfWeek(int value)Deprecated.Sets what the first day of the week is; e.g.,SUNDAYin the U.S.,MONDAYin France.voidsetFirstDayOfWeek(String day)Deprecated.Sets what the first day of the week is.voidsetItemRender(ItemRender render)Deprecated.As of release 2.0-RC Sets the item renderer.voidsetModel(CalendarModel model)Deprecated.Sets the calendar model.voidsetReadonly(boolean readonly)Deprecated.Sets whether it is readonly.voidsetTimeZone(String timezone)Deprecated.Sets the time zone to the calendar, it is easily used for ZUL file.voidsetWeekOfYear(boolean weekOfYear)Deprecated.Sets whether enable to show the week number within the current year or not.
-
-
-
Method Detail
-
getDefaultTimeZone
TimeZone getDefaultTimeZone()
Deprecated.Returns the current time zone of the calendar.
-
getModel
CalendarModel getModel()
Deprecated.Returns the calendar model.
-
setModel
void setModel(CalendarModel model)
Deprecated.Sets the calendar model.
-
addTimeZone
void addTimeZone(String label, TimeZone timezone)
Deprecated.Adds the time zone to the calendar.Note: the first added will be the default time zone of the calendar.
- Parameters:
label- the description of the time zone.timezone- a time zone. (Cannot duplicate)
-
addTimeZone
void addTimeZone(String label, String timezone)
Deprecated.Adds the time zone to the calendar.Note: the first added will be the default time zone of the calendar.
- Parameters:
label- the description of the time zone.timezone- a id of time zone. (Cannot duplicate)- See Also:
TimeZone.getTimeZone(String),addTimeZone(String, TimeZone)
-
setTimeZone
void setTimeZone(String timezone)
Deprecated.Sets the time zone to the calendar, it is easily used for ZUL file. e.g.<calendars timeZone="Taiwan=GMT+8, Sweden=GMT+1,">
- Parameters:
timezone-
-
removeTimeZone
boolean removeTimeZone(TimeZone timezone)
Deprecated.Removes the time zone from the calendar
-
getTimeZones
Map<TimeZone,String> getTimeZones()
Deprecated.Returns the unmodifiable map including all the timezone inside the calendar.
-
getEvent
List<CalendarItem> getEvent(Date beginDate)
Deprecated.Returns the unmodifiable list including all the calendar events matching from the specified date in the same date. e.g. "20090324" exclusive the time of the date "23:30".Note: never null.
-
getItemRender
ItemRender getItemRender()
Deprecated.As of release 2.0-RC Returns the item renderer used forCalendarItemto draw its outline (i.e. HTML), like the DSP renderer of ZK component.Note: never null.
-
setItemRender
void setItemRender(ItemRender render)
Deprecated.As of release 2.0-RC Sets the item renderer.
-
setDateFormatter
void setDateFormatter(DateFormatter dfmater)
Deprecated.Sets the date formatter. In fact, there are five places in the calendar must have different date display.- See Also:
DateFormatter
-
setDateFormatter
void setDateFormatter(String clsnm) throws Exception
Deprecated.Sets the date formatter by a class name.- Throws:
Exception- See Also:
DateFormatter,setDateFormatter(DateFormatter)
-
getDateFormatter
DateFormatter getDateFormatter()
Deprecated.Returns the date formatter.Note: never null.
-
getBeginDate
Date getBeginDate()
Deprecated.Returns the beginning date, which is based ongetCurrentDate()in the current view depended on which mold is using.
-
getEndDate
Date getEndDate()
Deprecated.Returns the end date, which is based ongetCurrentDate()in the current view depended on which mold is using.
-
getWeekOfMonth
int getWeekOfMonth()
Deprecated.Returns the number of the week of the month in the current date.
-
previousPage
void previousPage()
Deprecated.Navigates the current date to the previous page, that is, when thegetDays()is seven with default mold, the previous page means the previous week. In the month mold, it means the previous month.
-
nextPage
void nextPage()
Deprecated.Navigates the current date to the next page, that is, when thegetDays()is seven with default mold, the next page means the next week. In the month mold, it means the next month.
-
setCurrentDate
void setCurrentDate(Date curDate)
Deprecated.Sets the current date.Default: today (depend on which timezone the calendar is using).
-
getCurrentDate
Date getCurrentDate()
Deprecated.Returns the current date.Default: today (depend on which timezone the calendar is using).
-
setDays
void setDays(int days)
Deprecated.Sets the days, that is, how many column should be displayed on the default mold.Default: 7. (i.e. one week), in month view, the attribute will be ignored.
-
getDays
int getDays()
Deprecated.Returns the days.Default: 7. (i.e. one week) If the days is less than 1, 1 is assumed.
-
setFirstDayOfWeek
void setFirstDayOfWeek(int value)
Deprecated.Sets what the first day of the week is; e.g.,SUNDAYin the U.S.,MONDAYin France.Default:
Calendar.SUNDAYNote: it is only allowed when days with 7 in the default mold or using the month mold.
- Parameters:
value- the given first day of the week.- See Also:
getFirstDayOfWeek(),Calendar.setFirstDayOfWeek(int)
-
setFirstDayOfWeek
void setFirstDayOfWeek(String day)
Deprecated.Sets what the first day of the week is.Note: it is only allowed when days with 7 in the default mold or using the month mold.
- Parameters:
day-SUNDAY,MONDAY,TUESDAY,WEDNESDAY,THURSDAY,FRIDAY, andSATURDAY. Case insensitive
-
getFirstDayOfWeek
int getFirstDayOfWeek()
Deprecated.Gets what the first day of the week is; e.g.,SUNDAYin the U.S.,MONDAYin France.Default:
Calendar.SUNDAY- Returns:
- the first day of the week.
- See Also:
setFirstDayOfWeek(int),Calendar.getFirstDayOfWeek()
-
setWeekOfYear
void setWeekOfYear(boolean weekOfYear)
Deprecated.Sets whether enable to show the week number within the current year or not.
-
isWeekOfYear
boolean isWeekOfYear()
Deprecated.Returns whether enable to show the week number within the current year or not.Default: false
-
isReadonly
boolean isReadonly()
Deprecated.Returns whether it is readonly.Default: false.
-
setReadonly
void setReadonly(boolean readonly)
Deprecated.Sets whether it is readonly.
-
-