public interface Calendars
Modifier and Type | Method and Description |
---|---|
void |
addTimeZone(java.lang.String label,
java.lang.String timezone)
Deprecated.
Adds the time zone to the calendar.
|
void |
addTimeZone(java.lang.String label,
java.util.TimeZone timezone)
Deprecated.
Adds the time zone to the calendar.
|
java.util.Date |
getBeginDate()
Deprecated.
Returns the beginning date, which is based on
getCurrentDate() in
the current view depended on which mold is using. |
java.util.Date |
getCurrentDate()
Deprecated.
Returns the current date.
|
DateFormatter |
getDateFormatter()
Deprecated.
Returns the date formatter.
|
int |
getDays()
Deprecated.
Returns the days.
|
java.util.TimeZone |
getDefaultTimeZone()
Deprecated.
Returns the current time zone of the calendar.
|
java.util.Date |
getEndDate()
Deprecated.
Returns the end date, which is based on
getCurrentDate() in the
current view depended on which mold is using. |
java.util.List<CalendarItem> |
getEvent(java.util.Date beginDate)
Deprecated.
Returns the unmodifiable list including all the calendar events matching
from the specified date in the same date.
|
int |
getFirstDayOfWeek()
Deprecated.
Gets what the first day of the week is; e.g.,
SUNDAY in the
U.S., MONDAY in France. |
ItemRender |
getItemRender()
Deprecated.
As of release 2.0-RC
Returns the item renderer used for
CalendarItem to draw its
outline (i.e. HTML), like the DSP renderer of ZK component.
Note: never null. |
CalendarModel |
getModel()
Deprecated.
Returns the calendar model.
|
java.util.Map<java.util.TimeZone,java.lang.String> |
getTimeZones()
Deprecated.
Returns the unmodifiable map including all the timezone inside the
calendar.
|
int |
getWeekOfMonth()
Deprecated.
Returns the number of the week of the month in the current date.
|
boolean |
isReadonly()
Deprecated.
Returns whether it is readonly.
|
boolean |
isWeekOfYear()
Deprecated.
Returns whether enable to show the week number within the current year or not.
|
void |
nextPage()
Deprecated.
Navigates the current date to the next page, that is, when the
getDays()
is seven with default mold, the next page means the next week. |
void |
previousPage()
Deprecated.
Navigates the current date to the previous page, that is, when the
getDays()
is seven with default mold, the previous page means the previous week. |
boolean |
removeTimeZone(java.util.TimeZone timezone)
Deprecated.
Removes the time zone from the calendar
|
void |
setCurrentDate(java.util.Date curDate)
Deprecated.
Sets the current date.
|
void |
setDateFormatter(DateFormatter dfmater)
Deprecated.
Sets the date formatter.
|
void |
setDateFormatter(java.lang.String clsnm)
Deprecated.
Sets the date formatter by a class name.
|
void |
setDays(int days)
Deprecated.
Sets the days, that is, how many column should be displayed on the default mold.
|
void |
setFirstDayOfWeek(int value)
Deprecated.
Sets what the first day of the week is; e.g.,
SUNDAY in the
U.S., MONDAY in France. |
void |
setFirstDayOfWeek(java.lang.String day)
Deprecated.
Sets what the first day of the week is.
|
void |
setItemRender(ItemRender render)
Deprecated.
As of release 2.0-RC
Sets the item renderer.
|
void |
setModel(CalendarModel model)
Deprecated.
Sets the calendar model.
|
void |
setReadonly(boolean readonly)
Deprecated.
Sets whether it is readonly.
|
void |
setTimeZone(java.lang.String timezone)
Deprecated.
Sets the time zone to the calendar, it is easily used for ZUL file.
|
void |
setWeekOfYear(boolean weekOfYear)
Deprecated.
Sets whether enable to show the week number within the current year or not.
|
java.util.TimeZone getDefaultTimeZone()
CalendarModel getModel()
void setModel(CalendarModel model)
void addTimeZone(java.lang.String label, java.util.TimeZone timezone)
Note: the first added will be the default time zone of the calendar.
label
- the description of the time zone.timezone
- a time zone. (Cannot duplicate)void addTimeZone(java.lang.String label, java.lang.String timezone)
Note: the first added will be the default time zone of the calendar.
label
- the description of the time zone.timezone
- a id of time zone. (Cannot duplicate)TimeZone.getTimeZone(String)
,
addTimeZone(String, TimeZone)
void setTimeZone(java.lang.String timezone)
<calendars timeZone="Taiwan=GMT+8, Sweden=GMT+1,">
timezone
- boolean removeTimeZone(java.util.TimeZone timezone)
java.util.Map<java.util.TimeZone,java.lang.String> getTimeZones()
java.util.List<CalendarItem> getEvent(java.util.Date beginDate)
Note: never null.
ItemRender getItemRender()
CalendarItem
to draw its
outline (i.e. HTML), like the DSP renderer of ZK component.
Note: never null.
void setItemRender(ItemRender render)
void setDateFormatter(DateFormatter dfmater)
DateFormatter
void setDateFormatter(java.lang.String clsnm) throws java.lang.Exception
java.lang.Exception
DateFormatter
,
setDateFormatter(DateFormatter)
DateFormatter getDateFormatter()
Note: never null.
java.util.Date getBeginDate()
getCurrentDate()
in
the current view depended on which mold is using.java.util.Date getEndDate()
getCurrentDate()
in the
current view depended on which mold is using.int getWeekOfMonth()
void previousPage()
getDays()
is seven with default mold, the previous page means the previous week.
In the month mold, it means the previous month.void nextPage()
getDays()
is seven with default mold, the next page means the next week.
In the month mold, it means the next month.void setCurrentDate(java.util.Date curDate)
Default: today (depend on which timezone the calendar is using).
java.util.Date getCurrentDate()
Default: today (depend on which timezone the calendar is using).
void setDays(int days)
Default: 7. (i.e. one week), in month view, the attribute will be ignored.
int getDays()
Default: 7. (i.e. one week) If the days is less than 1, 1 is assumed.
void setFirstDayOfWeek(int value)
SUNDAY
in the
U.S., MONDAY
in France.
Default: Calendar.SUNDAY
Note: it is only allowed when days with 7 in the default mold or using the month mold.
value
- the given first day of the week.getFirstDayOfWeek()
,
Calendar.setFirstDayOfWeek(int)
void setFirstDayOfWeek(java.lang.String day)
Note: it is only allowed when days with 7 in the default mold or using the month mold.
day
- SUNDAY
, MONDAY
,
TUESDAY
, WEDNESDAY
, THURSDAY
, FRIDAY
,
and SATURDAY
. Case insensitiveint getFirstDayOfWeek()
SUNDAY
in the
U.S., MONDAY
in France.
Default: Calendar.SUNDAY
setFirstDayOfWeek(int)
,
Calendar.getFirstDayOfWeek()
void setWeekOfYear(boolean weekOfYear)
boolean isWeekOfYear()
Default: false
boolean isReadonly()
Default: false.
void setReadonly(boolean readonly)
Copyright © 2021. All Rights Reserved.