public class UIPreview extends UICalendarView implements UIPopupComponent
| Modifier and Type | Class and Description |
|---|---|
static class |
UIPreview.CloseWindowActionListener |
static class |
UIPreview.DownloadActionListener |
UICalendarView.AbortCloseActionListener, UICalendarView.AddEventActionListener, UICalendarView.CancelDeleteEvent, UICalendarView.ChangeCategoryActionListener, UICalendarView.ConfirmCloseActionListener, UICalendarView.ConfirmDeleteAllSeries, UICalendarView.ConfirmDeleteCancel, UICalendarView.ConfirmDeleteEvent, UICalendarView.ConfirmDeleteFollowingSeries, UICalendarView.ConfirmDeleteOnlyInstance, UICalendarView.ConfirmUpdateAllSeries, UICalendarView.ConfirmUpdateCancel, UICalendarView.ConfirmUpdateFollowSeries, UICalendarView.ConfirmUpdateOnlyInstance, UICalendarView.DeleteActionListener, UICalendarView.DeleteEventActionListener, UICalendarView.EditActionListener, UICalendarView.EventSelectActionListener, UICalendarView.ExportEventActionListener, UICalendarView.GotoDateActionListener, UICalendarView.MoveEventActionListener, UICalendarView.MoveNextActionListener, UICalendarView.MovePreviousActionListener, UICalendarView.QuickAddActionListener, UICalendarView.SwitchViewActionListener, UICalendarView.TaskViewActionListener, UICalendarView.ViewActionListener| Modifier and Type | Field and Description |
|---|---|
protected static String |
CLOSE_POPUP |
static int |
DEFAULT_PREVIEW_DIMENSION |
static int |
DEFAULT_THUMBNAIL_DIMENSION |
ACT_ADDNEW_EVENT, ACT_ADDNEW_TASK, ACT_DELETE, ACT_EDIT, ACT_NEXT, ACT_PREVIOUS, ACT_VIEW, calendar_, CALENDARID, calendarSetting_, CALNAME, CALTYPE, CONTEXT_MENU, DAY, dfs_, displayTimes_, emptyEventCalendars, emptyRecurrentEventCalendars, EVENT_CATEGORIES, EVENTID, FINISH_TIME, instanceTempCalendar_, ISOCCUR, isShowEvent_, MONTH, monthsName_, privateCalendarIds, publicCalendarIds, QUICKEDIT_MENU, RECURID, recurrenceEventsMap, START_TIME, timeSteps_, TYPE_BOTH, TYPE_DAY, TYPE_EVENT, TYPE_MONTH, TYPE_NONE, TYPE_TASK, TYPE_WEEK, YEAR| Constructor and Description |
|---|
UIPreview() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deActivate() |
org.exoplatform.calendar.service.Attachment |
getAttachment(String attId) |
static String |
getCalendarPortletUrl()
get the url to the calendar portlet, used for template to return to the
calendar portlet or the calendar page in the space
|
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"
|
String |
getDownloadLink(org.exoplatform.calendar.service.Attachment attach) |
org.exoplatform.calendar.service.CalendarEvent |
getEvent() |
String |
getImageSource(org.exoplatform.calendar.service.Attachment attach) |
String |
getPortalName() |
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. |
String |
getRepository() |
String |
getRestThumbnailLinkFor(org.exoplatform.calendar.service.Attachment attachment,
int oneFixedDimension)
return a thumbnail link for image attachment using the thumbnail REST web service from ECMS
|
String |
getTemplate() |
boolean |
isPreviewByUrl() |
boolean |
isShowPopup() |
void |
refresh() |
void |
setEvent(org.exoplatform.calendar.service.CalendarEvent event) |
void |
setPreviewByUrl(boolean isPreviewByUrl) |
void |
setShowPopup(boolean isShow) |
applySeting, getBeginDay, getCalendarSetting, getColors, getContextMenu, getCurrentCalendar, getCurrentDate, getCurrentDay, getCurrentMonth, getcurrentOccurrence, getCurrentWeek, getCurrentYear, getDateByValue, getDateFormat, getDateTimeFormat, getDateTimeString, getDayName, getDayOfWeek, getDaysInMonth, getDaysInMonth, getDaysName, getDefaultTimeInterval, getDisplayTimes, getDisplayTimes, getEndDay, getEndTime, getFilterCalendarIds, getIconStyleForAttachment, getInstanceTempCalendar, getLabel, getLastUpdatedEventId, getList, getMonthName, getMonthsName, getPriority, getPrivateCalendars, getPublicCalendars, getPublicCalendars, getQuickEditMenu, getSelectedCategory, getSelectedEvents, getSharedCalendars, getStartTime, getTimeFormat, getTimeInterval, getTimeSteps, getViews, getViewType, gotoDate, isCurrentDay, isCurrentMonth, isCurrentWeek, isEventEditable, isInSpace, isSameDate, isSameDate, isShowWorkingTime, keyGen, moveCalendarTo, moveEvents, processRender, removeEvents, renderDateTimeString, renderDayString, renderDayViewInTitleBar, renderTimeString, setCalendarSetting, setCurrentCalendar, setCurrentDate, setCurrentDay, setCurrentMonth, setCurrentOccurrence, setCurrentWeek, setCurrentYear, setEmptyEventCalendars, setEmptyRecurrentEventCalendars, setLastUpdatedEventId, setSelectedCategory, setViewType, updateaddUIComponentInput, 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, getTemplateResourceResolver, isRendered, loadConfirmMesssage, processAction, processDecode, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, urlpublic static final int DEFAULT_THUMBNAIL_DIMENSION
public static final int DEFAULT_PREVIEW_DIMENSION
protected static final String CLOSE_POPUP
public String getRestThumbnailLinkFor(org.exoplatform.calendar.service.Attachment attachment, int oneFixedDimension) throws Exception
attachment - attachment object that contains the imageoneFixedDimension - resize the image after this dimension, keeping the image ratioExceptionpublic String getTemplate()
getTemplate in class org.exoplatform.webui.core.UIComponentpublic org.exoplatform.calendar.service.CalendarEvent getEvent()
public void setEvent(org.exoplatform.calendar.service.CalendarEvent event)
public void refresh()
throws Exception
refresh in interface CalendarViewrefresh in class UICalendarViewExceptionpublic void activate()
throws Exception
activate in interface UIPopupComponentExceptionpublic void deActivate()
throws Exception
deActivate in interface UIPopupComponentExceptionpublic void setShowPopup(boolean isShow)
public boolean isShowPopup()
public org.exoplatform.calendar.service.Attachment getAttachment(String attId)
public String getDownloadLink(org.exoplatform.calendar.service.Attachment attach) throws Exception
Exceptionpublic String getImageSource(org.exoplatform.calendar.service.Attachment attach) throws Exception
Exceptionpublic Map<String,Map<String,org.exoplatform.calendar.service.CalendarEvent>> getRecurrenceMap()
UICalendarViewgetRecurrenceMap in class UICalendarViewpublic String getPortalName()
public String getDefaultStartTimeOfEvent()
UICalendarViewgetDefaultStartTimeOfEvent in class UICalendarViewpublic static String getCalendarPortletUrl()
public boolean isPreviewByUrl()
public void setPreviewByUrl(boolean isPreviewByUrl)
Copyright © 2003–2015 eXo Platform SAS. All rights reserved.