org.exoplatform.calendar.webui
Class UIPreview

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.webui.form.UIForm
              extended by org.exoplatform.calendar.webui.UICalendarView
                  extended by org.exoplatform.calendar.webui.UIPreview
All Implemented Interfaces:
CalendarView, UIPopupComponent

public class UIPreview
extends UICalendarView
implements UIPopupComponent

Created by The eXo Platform SARL Author : Hung Nguyen hung.nguyen@exoplatform.com Aus 01, 2007 2:48:18 PM


Nested Class Summary
static class UIPreview.CloseWindowActionListener
           
static class UIPreview.DownloadActionListener
           
 
Nested classes/interfaces inherited from class org.exoplatform.calendar.webui.UICalendarView
UICalendarView.AddEventActionListener, UICalendarView.ChangeCategoryActionListener, UICalendarView.ConfirmDeleteAllSeries, UICalendarView.ConfirmDeleteCancel, UICalendarView.ConfirmDeleteOnlyInstance, 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
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static int DEFAULT_PREVIEW_DIMENSION
           
static int DEFAULT_THUMBNAIL_DIMENSION
           
static boolean isClosed
           
 
Fields inherited from class org.exoplatform.calendar.webui.UICalendarView
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_, 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
 
Fields inherited from class org.exoplatform.webui.form.UIForm
ACTION, SUBCOMPONENT_ID
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UIPreview()
           
 
Method Summary
 void activate()
           
 void deActivate()
           
 org.exoplatform.calendar.service.Attachment getAttachment(String attId)
           
 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()
           
 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 isShowPopup()
           
 void refresh()
           
 void setEvent(org.exoplatform.calendar.service.CalendarEvent event)
           
 void setShowPopup(boolean isShow)
           
 
Methods inherited from class org.exoplatform.calendar.webui.UICalendarView
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, getInstanceTempCalendar, getLabel, getLastUpdatedEventId, getList, getMonthName, getMonthsName, getPriority, getPrivateCalendars, getPublicCalendars, getPublicCalendars, getQuickEditMenu, getRecurrenceMap, 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, setLastUpdatedEventId, setSelectedCategory, setViewType, update
 
Methods inherited from class org.exoplatform.webui.form.UIForm
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, url
 
Methods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes
 
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, 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, url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_THUMBNAIL_DIMENSION

public static final int DEFAULT_THUMBNAIL_DIMENSION
See Also:
Constant Field Values

DEFAULT_PREVIEW_DIMENSION

public static final int DEFAULT_PREVIEW_DIMENSION
See Also:
Constant Field Values

isClosed

public static boolean isClosed
Constructor Detail

UIPreview

public UIPreview()
          throws Exception
Throws:
Exception
Method Detail

getRestThumbnailLinkFor

public String getRestThumbnailLinkFor(org.exoplatform.calendar.service.Attachment attachment,
                                      int oneFixedDimension)
                               throws Exception
return a thumbnail link for image attachment using the thumbnail REST web service from ECMS

Parameters:
attachment - attachment object that contains the image
oneFixedDimension - resize the image after this dimension, keeping the image ratio
Returns:
Throws:
Exception

getTemplate

public String getTemplate()
Overrides:
getTemplate in class org.exoplatform.webui.core.UIComponent

getEvent

public org.exoplatform.calendar.service.CalendarEvent getEvent()

setEvent

public void setEvent(org.exoplatform.calendar.service.CalendarEvent event)

refresh

public void refresh()
             throws Exception
Specified by:
refresh in interface CalendarView
Overrides:
refresh in class UICalendarView
Throws:
Exception

activate

public void activate()
              throws Exception
Specified by:
activate in interface UIPopupComponent
Throws:
Exception

deActivate

public void deActivate()
                throws Exception
Specified by:
deActivate in interface UIPopupComponent
Throws:
Exception

setShowPopup

public void setShowPopup(boolean isShow)

isShowPopup

public boolean isShowPopup()

getAttachment

public org.exoplatform.calendar.service.Attachment getAttachment(String attId)

getDownloadLink

public String getDownloadLink(org.exoplatform.calendar.service.Attachment attach)
                       throws Exception
Throws:
Exception

getImageSource

public String getImageSource(org.exoplatform.calendar.service.Attachment attach)
                      throws Exception
Throws:
Exception

getPortalName

public String getPortalName()

getRepository

public String getRepository()
                     throws Exception
Throws:
Exception

getDefaultStartTimeOfEvent

public String getDefaultStartTimeOfEvent()
Description copied from class: UICalendarView
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"

Specified by:
getDefaultStartTimeOfEvent in class UICalendarView
Returns:
string of time value in milliseconds.


Copyright © 2013 eXo Platform SAS. All Rights Reserved.