public abstract class UICalendarView extends org.exoplatform.webui.form.UIForm implements CalendarView
| Constructor and Description |
|---|
UICalendarView() |
| Modifier and Type | Method and Description |
|---|---|
void |
applySeting() |
protected void |
filterNonSpaceEvent(List<org.exoplatform.calendar.model.Event> allEvents) |
Calendar |
getBeginDateOfMonth() |
protected Calendar |
getBeginDay(Calendar cal) |
org.exoplatform.calendar.service.CalendarSetting |
getCalendarSetting() |
Map<String,String> |
getColors() |
protected String[] |
getContextMenu() |
Calendar |
getCurrentCalendar() |
protected Date |
getCurrentDate() |
protected int |
getCurrentDay() |
protected int |
getCurrentMonth() |
org.exoplatform.calendar.service.CalendarEvent |
getcurrentOccurrence() |
protected int |
getCurrentWeek() |
protected int |
getCurrentYear() |
protected Calendar |
getDateByValue(int year,
int month,
int day,
int type,
int value) |
protected String |
getDateFormat() |
protected String |
getDateTimeFormat() |
String |
getDateTimeString(Date date) |
protected String |
getDayName(int day) |
protected int |
getDayOfWeek(int year,
int month,
int day) |
protected int |
getDaysInMonth() |
protected int |
getDaysInMonth(int month,
int year) |
protected String[] |
getDaysName() |
abstract String |
getDefaultStartTimeOfEvent()
The returned value of this function is used to initialize start time for
event form which is rendered when user click "add event" or "add task"
|
protected int |
getDefaultTimeInterval() |
protected List<String> |
getDisplayTimes(String timeFormat,
int timeInterval) |
protected List<String> |
getDisplayTimes(String timeFormat,
int timeInterval,
Locale locale) |
Calendar |
getEndDateOfMonth() |
protected Calendar |
getEndDay(Calendar cal) |
String |
getEndTime() |
List<org.exoplatform.calendar.model.Event> |
getEventInMonth() |
List<org.exoplatform.calendar.model.Event> |
getEventInMonth(long startTime,
long endTime) |
String[] |
getFilterCalendarIds() |
protected String |
getIconStyleForAttachment(org.exoplatform.calendar.service.Attachment attachment) |
protected Calendar |
getInstanceTempCalendar() |
String |
getLabel(String arg) |
String |
getLastUpdatedEventId() |
protected String |
getMonthName(int month) |
protected String[] |
getMonthsName() |
List<String> |
getOtherCalendars() |
List<String> |
getOtherSpaceCalendar() |
String |
getPriority(String key) |
List<String> |
getPrivateCalendars() |
String[] |
getPublicCalendars()
Get all group calendars that user belongs to current user - filter settings
|
protected List<org.exoplatform.calendar.service.Calendar> |
getPublicCalendars(String username) |
protected String[] |
getQuickEditMenu() |
Map<String,Map<String,org.exoplatform.calendar.service.CalendarEvent>> |
getRecurrenceMap()
Get data about recurrence events
Each item of the map has the key is the eventid of recurrence event. |
protected String |
getSelectedCategory() |
List<org.exoplatform.calendar.service.CalendarEvent> |
getSelectedEvents(String eventIds) |
List<String> |
getSharedCalendars() |
String |
getStartTime() |
protected String |
getTimeFormat() |
protected int |
getTimeInterval() |
protected Map<String,String> |
getTimeSteps(String timeFormat,
int timeInterval) |
protected String[] |
getViews() |
String |
getViewType() |
protected void |
gotoDate(int day,
int month,
int year) |
protected boolean |
isCurrentDay(int day,
int month,
int year) |
protected boolean |
isCurrentMonth(int month,
int year) |
protected boolean |
isCurrentWeek(int week,
int month,
int year) |
protected boolean |
isEventEditable(org.exoplatform.calendar.model.Event event)
return edit permission of user to event
|
boolean |
isInSpace() |
protected boolean |
isSameDate(Calendar date1,
Calendar date2) |
protected boolean |
isSameDate(Date value1,
Date value2) |
boolean |
isShowWorkingTime() |
protected String |
keyGen(int day,
int month,
int year) |
protected void |
moveCalendarTo(int field,
int amount) |
protected void |
moveEvents(List<org.exoplatform.calendar.service.CalendarEvent> events,
String toCalendarId,
String toType) |
void |
processRender(org.exoplatform.webui.application.WebuiRequestContext arg0) |
void |
refresh() |
void |
refresh(boolean renew) |
protected void |
removeEvents(List<org.exoplatform.calendar.service.CalendarEvent> events) |
protected String |
renderDateTimeString(Date date) |
protected String |
renderDayString(Date date) |
protected String |
renderDayViewInTitleBar(String monthOpenTag,
String monthCloseTag,
String yearOpenTag,
String yearCloseTag) |
protected String |
renderTimeString(Date date) |
void |
setCalendarSetting(org.exoplatform.calendar.service.CalendarSetting calendarSetting_) |
void |
setCurrentCalendar(Calendar value) |
protected void |
setCurrentDate(Date value) |
protected void |
setCurrentDay(int day) |
protected void |
setCurrentMonth(int month) |
void |
setCurrentOccurrence(org.exoplatform.calendar.service.CalendarEvent currentOccurrence) |
protected void |
setCurrentWeek(int week) |
protected void |
setCurrentYear(int year) |
void |
setLastUpdatedEventId(String eventId) |
void |
setSelectedCategory(String id) |
void |
setViewType(String viewType) |
void |
update() |
addUIComponentInput, addUIFormInput, addUIFormInput, begin, end, event, event, event, getActions, getLabel, getSubmitAction, getUICheckBoxInput, getUIComponentName, getUIFormCheckBoxInput, getUIFormDateTimeInput, getUIFormInputInfo, getUIFormSelectBox, getUIFormTextAreaInput, getUIInput, getUIStringInput, invokeGetBindingBean, invokeSetBindingBean, isMultipart, renderField, renderField, reset, setActions, setMultiPart, setSubmitAction, urladdChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypesbroadcast, buildModelObject, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getTemplate, getTemplateResourceResolver, isRendered, loadConfirmMesssage, processAction, processDecode, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, urlprotected static final String EVENT_CATEGORIES
public static final int TYPE_NONE
public static final int TYPE_DAY
public static final int TYPE_WEEK
public static final int TYPE_MONTH
public static final String ACT_NEXT
public static final String ACT_PREVIOUS
public static final String CALNAME
public static final String CALENDARID
public static final String CALTYPE
public static final String EVENTID
public static final String START_TIME
public static final String FINISH_TIME
public static final String DAY
public static final String MONTH
public static final String YEAR
public static final String ISOCCUR
public static final String RECURID
public static final String TYPE_EVENT
public static final String TYPE_TASK
public static final String TYPE_BOTH
public static final String ACT_ADDNEW_EVENT
public static final String ACT_ADDNEW_TASK
public static final String[] CONTEXT_MENU
public static final String ACT_VIEW
public static final String ACT_EDIT
public static final String ACT_DELETE
public static final String[] QUICKEDIT_MENU
protected Calendar calendar_
public boolean isShowEvent_
protected org.exoplatform.calendar.service.CalendarSetting calendarSetting_
protected Calendar instanceTempCalendar_
protected DateFormatSymbols dfs_
protected Map<String,Map<String,org.exoplatform.calendar.service.CalendarEvent>> recurrenceEventsMap
protected org.exoplatform.calendar.service.ExtendedCalendarService xCalService
public abstract String getDefaultStartTimeOfEvent()
protected String renderDayViewInTitleBar(String monthOpenTag, String monthCloseTag, String yearOpenTag, String yearCloseTag)
protected Calendar getInstanceTempCalendar()
public void applySeting()
throws Exception
applySeting in interface CalendarViewExceptionpublic void setViewType(String viewType)
public String getViewType()
protected String[] getViews()
protected String getIconStyleForAttachment(org.exoplatform.calendar.service.Attachment attachment)
public void setLastUpdatedEventId(String eventId)
setLastUpdatedEventId in interface CalendarViewpublic String getLastUpdatedEventId()
getLastUpdatedEventId in interface CalendarViewpublic String[] getPublicCalendars() throws Exception
Exceptionpublic List<String> getOtherSpaceCalendar() throws Exception
Exceptionprotected List<org.exoplatform.calendar.service.Calendar> getPublicCalendars(String username) throws Exception
Exceptionprotected boolean isEventEditable(org.exoplatform.calendar.model.Event event)
throws Exception
event - ExceptionUIWeekview.gtmpl, UIDayview.gtmpl, UIDayview.gtmpl - used
in templatepublic void refresh()
throws Exception
refresh in interface CalendarViewExceptionprotected void filterNonSpaceEvent(List<org.exoplatform.calendar.model.Event> allEvents) throws Exception
Exceptionpublic List<org.exoplatform.calendar.model.Event> getEventInMonth()
public List<org.exoplatform.calendar.model.Event> getEventInMonth(long startTime, long endTime)
public boolean isInSpace()
isInSpace in interface CalendarViewpublic void update()
throws Exception
update in interface CalendarViewExceptionprotected String getSelectedCategory()
public void setSelectedCategory(String id)
setSelectedCategory in interface CalendarViewprotected String[] getMonthsName()
protected String[] getDaysName()
protected Calendar getDateByValue(int year, int month, int day, int type, int value)
protected int getDaysInMonth()
protected int getDaysInMonth(int month,
int year)
protected int getDayOfWeek(int year,
int month,
int day)
protected String getMonthName(int month)
protected String getDayName(int day)
protected String keyGen(int day, int month, int year)
protected void gotoDate(int day,
int month,
int year)
protected boolean isCurrentDay(int day,
int month,
int year)
protected boolean isCurrentWeek(int week,
int month,
int year)
protected boolean isCurrentMonth(int month,
int year)
public void setCurrentCalendar(Calendar value)
setCurrentCalendar in interface CalendarViewpublic Calendar getCurrentCalendar()
getCurrentCalendar in interface CalendarViewprotected Date getCurrentDate()
protected void setCurrentDate(Date value)
protected int getCurrentDay()
protected void setCurrentDay(int day)
protected int getCurrentWeek()
protected void setCurrentWeek(int week)
protected int getCurrentMonth()
protected void setCurrentMonth(int month)
protected int getCurrentYear()
protected void setCurrentYear(int year)
protected void moveCalendarTo(int field,
int amount)
throws Exception
Exceptionprotected void removeEvents(List<org.exoplatform.calendar.service.CalendarEvent> events) throws Exception
Exceptionprotected void moveEvents(List<org.exoplatform.calendar.service.CalendarEvent> events, String toCalendarId, String toType) throws Exception
Exceptionprotected String[] getContextMenu()
protected String[] getQuickEditMenu()
protected List<String> getDisplayTimes(String timeFormat, int timeInterval, Locale locale)
protected String getDateFormat()
protected String getDateTimeFormat()
protected int getTimeInterval()
protected int getDefaultTimeInterval()
protected String getTimeFormat()
public void setCalendarSetting(org.exoplatform.calendar.service.CalendarSetting calendarSetting_)
public org.exoplatform.calendar.service.CalendarSetting getCalendarSetting()
public boolean isShowWorkingTime()
public String getStartTime()
public String getEndTime()
public String getLabel(String arg)
getLabel in class org.exoplatform.webui.form.UIFormpublic void processRender(org.exoplatform.webui.application.WebuiRequestContext arg0)
throws Exception
processRender in class org.exoplatform.webui.form.UIFormExceptionpublic List<org.exoplatform.calendar.service.CalendarEvent> getSelectedEvents(String eventIds) throws Exception
Exceptionpublic Map<String,Map<String,org.exoplatform.calendar.service.CalendarEvent>> getRecurrenceMap()
public void setCurrentOccurrence(org.exoplatform.calendar.service.CalendarEvent currentOccurrence)
public org.exoplatform.calendar.service.CalendarEvent getcurrentOccurrence()
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.