org.exoplatform.calendar.webui.popup
Class UITaskForm

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.webui.form.UIFormTabPane
                  extended by org.exoplatform.calendar.webui.popup.UITaskForm
All Implemented Interfaces:
UIPopupComponent, UISelector

public class UITaskForm
extends org.exoplatform.webui.form.UIFormTabPane
implements UIPopupComponent, UISelector

Created by The eXo Platform SARL Author : Tuan Pham tuan.pham@exoplatform.com


Nested Class Summary
static class UITaskForm.AddActionListener
           
static class UITaskForm.AddAttachmentActionListener
           
static class UITaskForm.AddCalendarActionListener
           
static class UITaskForm.AddCategoryActionListener
           
static class UITaskForm.AddEmailAddressActionListener
           
static class UITaskForm.CancelActionListener
           
static class UITaskForm.CloseActionListener
           
static class UITaskForm.DownloadAttachmentActionListener
           
static class UITaskForm.RemoveAttachmentActionListener
           
static class UITaskForm.RemoveEmailActionListener
           
static class UITaskForm.SaveActionListener
           
static class UITaskForm.SelectTabActionListener
           
static class UITaskForm.SelectUserActionListener
           
 
Field Summary
static String ACT_ADDCATEGORY
           
static String ACT_ADDEMAIL
           
static String ACT_DOWNLOAD
           
static String ACT_REMOVE
           
static String ACT_SELECTUSER
           
static String ITEM_AVAILABLE
           
static String ITEM_BUSY
           
static String ITEM_PRIVATE
           
static String ITEM_PUBLIC
           
static String ITEM_REPEAT
           
static String ITEM_UNREPEAT
           
static String TAB_TASKDETAIL
           
static String TAB_TASKREMINDER
           
 
Fields inherited from class org.exoplatform.webui.form.UIFormTabPane
name_, RENDER_TAB
 
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
UITaskForm()
           
 
Method Summary
 void activate()
           
 void deActivate()
           
 String[] getActions()
           
 org.exoplatform.calendar.service.Attachment getAttachment(String attId)
           
protected  List<org.exoplatform.calendar.service.Attachment> getAttachments(String eventId, boolean isAddNew)
           
static Date getBeginDate(boolean isAllDate, String dateFormat, String fromField, String timeFormat, String timeField)
           
protected  String getCalendarId()
           
protected  String getEmailAddress()
           
protected  String getEmailRemindBefore()
           
protected  boolean getEmailReminder()
           
protected  String getEmailRepeatInterVal()
           
protected  boolean getEventAllDate()
           
protected  String getEventDelegation()
           
protected  String[] getEventDelegationAll()
           
protected  String getEventDelegationValue()
           
protected  String getEventDescription()
           
protected  String getEventPriority()
           
protected  List<org.exoplatform.calendar.service.Reminder> getEventReminders(Date fromDateTime)
           
protected  String getEventSumary()
           
 String getLabel(String id)
           
protected  boolean getPopupReminder()
           
protected  long getPopupReminderSnooze()
           
protected  String getPopupReminderTime()
           
protected  String getPopupRepeatInterVal()
           
protected  String getStatus()
           
protected  String getTaskCategory()
           
protected  String getTaskFormDateValue()
           
protected  Date getTaskFromDate(String dateFormat, String timeFormat)
           
protected  Date getTaskToDate(String dateFormat, String timeFormat)
           
protected  String getTaskToDateValue()
           
static Date getToDate(boolean isAllDate, String dateFormat, String toField, String timeFormat, String timeField)
           
protected  long getTotalAttachment()
           
 void initForm(org.exoplatform.calendar.service.CalendarSetting calSetting, org.exoplatform.calendar.service.CalendarEvent eventCalendar, String formTime)
           
protected  boolean isEmailRepeat()
           
protected  Boolean isPopupRepeat()
           
protected  boolean isTaskDetailValid(org.exoplatform.calendar.service.CalendarSetting calendarSetting)
           
protected  void refreshCategory()
           
 void reset()
           
protected  void setAttachments(List<org.exoplatform.calendar.service.Attachment> attachment)
           
 void setEmailAddress(String value)
           
protected  void setEmailReminder(boolean isChecked)
           
protected  void setEmailReminderBefore(String value)
           
 void setEmailRepeat(Boolean value)
           
protected  void setEventAllDate(boolean isCheckAll)
           
protected  void setEventDelegation(String value)
           
protected  void setEventDescription(String value)
           
protected  void setEventFromDate(Date date, String dateFormat, String timeFormat)
           
protected  void setEventReminders(List<org.exoplatform.calendar.service.Reminder> reminders)
           
protected  void setEventSumary(String value)
           
protected  void setEventToDate(Date date, String dateFormat, String timeFormat)
           
protected  void setPopupReminder(boolean isChecked)
           
protected  void setPopupReminderSnooze(long value)
           
protected  void setPopupReminderTime(String value)
           
protected  void setPopupRepeat(Boolean value)
           
 void setSelectedCalendarId(String value)
           
 void setSelectedCategory(String value)
           
protected  void setSelectedEventPriority(String value)
           
 void setSelectedEventState(String value)
           
protected  void setStatus(String value)
           
static void showAddressForm(UIAddressForm uiAddressForm, String oldAddress)
           
 void update(String calType, List<org.exoplatform.webui.core.model.SelectItem> options)
           
static void updateListView(CalendarView calendarView, org.exoplatform.calendar.service.CalendarEvent calendarEvent, org.exoplatform.calendar.service.CalendarService calService, String username)
           
 void updateSelect(String selectField, String value)
           
 
Methods inherited from class org.exoplatform.webui.form.UIFormTabPane
getName, getSelectedTabId, hasInfoBar, hasRenderResourceTabName, processDecode, setInfoBar, setRenderResourceTabName, setSelectedTab, setSelectedTab
 
Methods inherited from class org.exoplatform.webui.form.UIForm
addUIComponentInput, addUIFormInput, addUIFormInput, begin, end, event, event, event, getLabel, getSubmitAction, getUICheckBoxInput, getUIComponentName, getUIFormCheckBoxInput, getUIFormDateTimeInput, getUIFormInputInfo, getUIFormSelectBox, getUIFormTextAreaInput, getUIInput, getUIStringInput, invokeGetBindingBean, invokeSetBindingBean, isMultipart, processRender, renderField, renderField, 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, getParent, getTemplate, getTemplateResourceResolver, isRendered, loadConfirmMesssage, processAction, 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

TAB_TASKDETAIL

public static final String TAB_TASKDETAIL

TAB_TASKREMINDER

public static final String TAB_TASKREMINDER

ITEM_PUBLIC

public static final String ITEM_PUBLIC

ITEM_PRIVATE

public static final String ITEM_PRIVATE

ITEM_AVAILABLE

public static final String ITEM_AVAILABLE

ITEM_BUSY

public static final String ITEM_BUSY

ITEM_REPEAT

public static final String ITEM_REPEAT

ITEM_UNREPEAT

public static final String ITEM_UNREPEAT

ACT_REMOVE

public static final String ACT_REMOVE

ACT_DOWNLOAD

public static final String ACT_DOWNLOAD

ACT_ADDEMAIL

public static final String ACT_ADDEMAIL

ACT_ADDCATEGORY

public static final String ACT_ADDCATEGORY

ACT_SELECTUSER

public static final String ACT_SELECTUSER
Constructor Detail

UITaskForm

public UITaskForm()
           throws Exception
Throws:
Exception
Method Detail

getLabel

public String getLabel(String id)
Overrides:
getLabel in class org.exoplatform.webui.form.UIForm

reset

public void reset()
Overrides:
reset in class org.exoplatform.webui.form.UIForm

setSelectedEventState

public void setSelectedEventState(String value)

initForm

public void initForm(org.exoplatform.calendar.service.CalendarSetting calSetting,
                     org.exoplatform.calendar.service.CalendarEvent eventCalendar,
                     String formTime)
              throws Exception
Throws:
Exception

refreshCategory

protected void refreshCategory()
                        throws Exception
Throws:
Exception

getStatus

protected String getStatus()

setStatus

protected void setStatus(String value)

getActions

public String[] getActions()
Overrides:
getActions in class org.exoplatform.webui.form.UIForm

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

updateSelect

public void updateSelect(String selectField,
                         String value)
                  throws Exception
Specified by:
updateSelect in interface UISelector
Throws:
Exception

isTaskDetailValid

protected boolean isTaskDetailValid(org.exoplatform.calendar.service.CalendarSetting calendarSetting)

getEventSumary

protected String getEventSumary()

setEventSumary

protected void setEventSumary(String value)

getEventDescription

protected String getEventDescription()

setEventDescription

protected void setEventDescription(String value)

getCalendarId

protected String getCalendarId()

setSelectedCalendarId

public void setSelectedCalendarId(String value)

getTaskCategory

protected String getTaskCategory()

setSelectedCategory

public void setSelectedCategory(String value)

getTaskFromDate

protected Date getTaskFromDate(String dateFormat,
                               String timeFormat)
                        throws Exception
Throws:
Exception

getBeginDate

public static Date getBeginDate(boolean isAllDate,
                                String dateFormat,
                                String fromField,
                                String timeFormat,
                                String timeField)
                         throws Exception
Throws:
Exception

getTaskFormDateValue

protected String getTaskFormDateValue()

setEventFromDate

protected void setEventFromDate(Date date,
                                String dateFormat,
                                String timeFormat)
                         throws Exception
Throws:
Exception

getToDate

public static Date getToDate(boolean isAllDate,
                             String dateFormat,
                             String toField,
                             String timeFormat,
                             String timeField)
                      throws Exception
Throws:
Exception

getTaskToDate

protected Date getTaskToDate(String dateFormat,
                             String timeFormat)
                      throws Exception
Throws:
Exception

getTaskToDateValue

protected String getTaskToDateValue()

setEventToDate

protected void setEventToDate(Date date,
                              String dateFormat,
                              String timeFormat)
                       throws Exception
Throws:
Exception

getEventAllDate

protected boolean getEventAllDate()

setEventAllDate

protected void setEventAllDate(boolean isCheckAll)

getEventDelegation

protected String getEventDelegation()
                             throws Exception
Throws:
Exception

getEventDelegationAll

protected String[] getEventDelegationAll()

getEventDelegationValue

protected String getEventDelegationValue()

setEventDelegation

protected void setEventDelegation(String value)

getEmailReminder

protected boolean getEmailReminder()

setEmailReminder

protected void setEmailReminder(boolean isChecked)

getEmailRemindBefore

protected String getEmailRemindBefore()

isEmailRepeat

protected boolean isEmailRepeat()

setEmailRepeat

public void setEmailRepeat(Boolean value)

getEmailRepeatInterVal

protected String getEmailRepeatInterVal()

setEmailReminderBefore

protected void setEmailReminderBefore(String value)

getEmailAddress

protected String getEmailAddress()

setEmailAddress

public void setEmailAddress(String value)

getPopupReminder

protected boolean getPopupReminder()

setPopupReminder

protected void setPopupReminder(boolean isChecked)

getPopupReminderTime

protected String getPopupReminderTime()

isPopupRepeat

protected Boolean isPopupRepeat()

setPopupRepeat

protected void setPopupRepeat(Boolean value)

getPopupRepeatInterVal

protected String getPopupRepeatInterVal()

setPopupReminderTime

protected void setPopupReminderTime(String value)

getPopupReminderSnooze

protected long getPopupReminderSnooze()

setPopupReminderSnooze

protected void setPopupReminderSnooze(long value)

getAttachments

protected List<org.exoplatform.calendar.service.Attachment> getAttachments(String eventId,
                                                                           boolean isAddNew)

setAttachments

protected void setAttachments(List<org.exoplatform.calendar.service.Attachment> attachment)
                       throws Exception
Throws:
Exception

setEventReminders

protected void setEventReminders(List<org.exoplatform.calendar.service.Reminder> reminders)

getEventReminders

protected List<org.exoplatform.calendar.service.Reminder> getEventReminders(Date fromDateTime)
                                                                     throws Exception
Throws:
Exception

getEventPriority

protected String getEventPriority()

setSelectedEventPriority

protected void setSelectedEventPriority(String value)

update

public void update(String calType,
                   List<org.exoplatform.webui.core.model.SelectItem> options)
            throws Exception
Throws:
Exception

getTotalAttachment

protected long getTotalAttachment()

getAttachment

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

showAddressForm

public static void showAddressForm(UIAddressForm uiAddressForm,
                                   String oldAddress)
                            throws Exception
Throws:
Exception

updateListView

public static void updateListView(CalendarView calendarView,
                                  org.exoplatform.calendar.service.CalendarEvent calendarEvent,
                                  org.exoplatform.calendar.service.CalendarService calService,
                                  String username)
                           throws Exception
Throws:
Exception


Copyright © 2013 eXo Platform SAS. All Rights Reserved.