org.exoplatform.calendar.webui.popup
Class UICalendarForm

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.UICalendarForm
All Implemented Interfaces:
UIPopupComponent, UISelector

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

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 UICalendarForm.ActiveActionListener
           
static class UICalendarForm.AddGroupActionListener
          add a new entry for a group in the permission list
static class UICalendarForm.CancelActionListener
           
static class UICalendarForm.DeactiveActionListener
           
static class UICalendarForm.DeletePermissionActionListener
           
static class UICalendarForm.OpenActionListener
           
static class UICalendarForm.OpenSelectGroupFormActionListener
          open popup to select group, only groups that user belong to is displayed
static class UICalendarForm.ResetActionListener
          reset the form to initial state
static class UICalendarForm.SaveActionListener
           
static class UICalendarForm.SelectPermissionActionListener
          open popup in order to select user or group membership
static class UICalendarForm.ShowPublicURLActionListener
           
 
Nested classes/interfaces inherited from class org.exoplatform.webui.form.UIFormTabPane
org.exoplatform.webui.form.UIFormTabPane.SelectTabActionListener
 
Field Summary
static String ACT_ACTIVE
           
static String ACT_ADD_CATEGORY
           
static String ACT_DEACTIVE
           
static String ACT_OPEN
           
static String ACT_SUBSCRIBE
           
static String ACTION_DELETE_PERMISSION
           
static String ACTION_SELECT_PERMISSION
           
static String ACTIONS
           
static String ADD_GROUP
           
static String ADD_GROUP_INPUT
           
static String ADD_GROUP_INPUT_LABEL
           
 org.exoplatform.calendar.service.Calendar calendar_
           
 String calType_
           
static String CATEGORY
           
static String DESCRIPTION
           
static String DISPLAY_NAME
           
static String EDIT_PERMISSION
           
 String groupCalId_
           
static String INPUT_CALENDAR
           
static String INPUT_SHARE
           
static String LOCALE
           
static String OPEN_SELECT_GROUP_FORM
           
 Map<String,String> permission_
           
static String PERMISSION_SUB
           
 Map<String,Map<String,String>> perms_
           
static String PRIVATE_URL
           
static String PUBLIC_URL
           
static String PUBLIC_URL_MSG
           
static String PUBLIC_URL_MSG_D
           
static String SELECT_COLOR
           
static String SELECT_GROUPS
           
static String SHARED_GROUPS
           
static String TIMEZONE
           
static int TYPE_BUTTON
           
 
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
UICalendarForm()
           
 
Method Summary
 void activate()
           
 void deActivate()
           
 String[] getActions()
           
 String getCalType()
           
protected  String getDescription()
           
protected  String getDisplayName()
           
 String getLabel(String id)
           
protected  String getLocale()
           
protected  List<org.exoplatform.webui.core.model.SelectItemOption<String>> getLocales()
           
static List<String> getPermissions(List<String> listPermission, String groupPermissions, org.exoplatform.services.organization.OrganizationService orgService, String groupIdSelected, String groupKey, org.exoplatform.webui.event.Event<?> event, StringBuffer notFoundUser)
           
protected  String getSelectedColor()
           
protected  String getSelectedGroup()
           
protected  String getTimeZone()
           
protected  List<org.exoplatform.webui.core.model.SelectItemOption<String>> getTimeZones()
           
 void init(org.exoplatform.calendar.service.Calendar calendar, org.exoplatform.calendar.service.CalendarSetting setting)
           
 boolean isAddNew()
           
static boolean isGroupBelongingToUserGroups(String groupId)
           
protected  boolean isPublic()
          check if the calendar is a public or private calendar
 void resetField()
          clear all fields and set to initial values
protected  void setDescription(String value)
           
protected  void setDisplayName(String value)
           
 void setLocale(String value)
           
protected  void setSelectedColor(String value)
           
 void setTimeZone(String value)
           
 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, 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, 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

DISPLAY_NAME

public static final String DISPLAY_NAME
See Also:
Constant Field Values

DESCRIPTION

public static final String DESCRIPTION
See Also:
Constant Field Values

CATEGORY

public static final String CATEGORY
See Also:
Constant Field Values

SHARED_GROUPS

public static final String SHARED_GROUPS
See Also:
Constant Field Values

SELECT_COLOR

public static final String SELECT_COLOR
See Also:
Constant Field Values

SELECT_GROUPS

public static final String SELECT_GROUPS
See Also:
Constant Field Values

EDIT_PERMISSION

public static final String EDIT_PERMISSION
See Also:
Constant Field Values

ACTIONS

public static final String ACTIONS
See Also:
Constant Field Values

ADD_GROUP_INPUT

public static final String ADD_GROUP_INPUT
See Also:
Constant Field Values

ADD_GROUP_INPUT_LABEL

public static final String ADD_GROUP_INPUT_LABEL
See Also:
Constant Field Values

OPEN_SELECT_GROUP_FORM

public static final String OPEN_SELECT_GROUP_FORM
See Also:
Constant Field Values

ADD_GROUP

public static final String ADD_GROUP
See Also:
Constant Field Values

INPUT_CALENDAR

public static final String INPUT_CALENDAR
See Also:
Constant Field Values

INPUT_SHARE

public static final String INPUT_SHARE
See Also:
Constant Field Values

TIMEZONE

public static final String TIMEZONE
See Also:
Constant Field Values

LOCALE

public static final String LOCALE
See Also:
Constant Field Values

PERMISSION_SUB

public static final String PERMISSION_SUB
See Also:
Constant Field Values

PUBLIC_URL

public static final String PUBLIC_URL
See Also:
Constant Field Values

PRIVATE_URL

public static final String PRIVATE_URL
See Also:
Constant Field Values

PUBLIC_URL_MSG

public static final String PUBLIC_URL_MSG
See Also:
Constant Field Values

PUBLIC_URL_MSG_D

public static final String PUBLIC_URL_MSG_D
See Also:
Constant Field Values

ACTION_SELECT_PERMISSION

public static final String ACTION_SELECT_PERMISSION
See Also:
Constant Field Values

ACTION_DELETE_PERMISSION

public static final String ACTION_DELETE_PERMISSION
See Also:
Constant Field Values

ACT_ADD_CATEGORY

public static final String ACT_ADD_CATEGORY
See Also:
Constant Field Values

ACT_OPEN

public static final String ACT_OPEN
See Also:
Constant Field Values

ACT_SUBSCRIBE

public static final String ACT_SUBSCRIBE
See Also:
Constant Field Values

ACT_ACTIVE

public static final String ACT_ACTIVE
See Also:
Constant Field Values

ACT_DEACTIVE

public static final String ACT_DEACTIVE
See Also:
Constant Field Values

TYPE_BUTTON

public static final int TYPE_BUTTON
See Also:
Constant Field Values

permission_

public Map<String,String> permission_

perms_

public Map<String,Map<String,String>> perms_

calendar_

public org.exoplatform.calendar.service.Calendar calendar_

calType_

public String calType_

groupCalId_

public String groupCalId_
Constructor Detail

UICalendarForm

public UICalendarForm()
               throws Exception
Throws:
Exception
Method Detail

isGroupBelongingToUserGroups

public static boolean isGroupBelongingToUserGroups(String groupId)

getCalType

public String getCalType()

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

resetField

public void resetField()
                throws Exception
clear all fields and set to initial values

Throws:
Exception

isAddNew

public boolean isAddNew()

init

public void init(org.exoplatform.calendar.service.Calendar calendar,
                 org.exoplatform.calendar.service.CalendarSetting setting)
          throws Exception
Throws:
Exception

getDisplayName

protected String getDisplayName()

setDisplayName

protected void setDisplayName(String value)

getDescription

protected String getDescription()

setDescription

protected void setDescription(String value)

getSelectedGroup

protected String getSelectedGroup()

getSelectedColor

protected String getSelectedColor()

setSelectedColor

protected void setSelectedColor(String value)

getLocale

protected String getLocale()

setLocale

public void setLocale(String value)

getTimeZone

protected String getTimeZone()

setTimeZone

public void setTimeZone(String value)

updateSelect

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

isPublic

protected boolean isPublic()
                    throws Exception
check if the calendar is a public or private calendar

Returns:
Throws:
Exception

getTimeZones

protected List<org.exoplatform.webui.core.model.SelectItemOption<String>> getTimeZones()

getLabel

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

getLocales

protected List<org.exoplatform.webui.core.model.SelectItemOption<String>> getLocales()

getPermissions

public static List<String> getPermissions(List<String> listPermission,
                                          String groupPermissions,
                                          org.exoplatform.services.organization.OrganizationService orgService,
                                          String groupIdSelected,
                                          String groupKey,
                                          org.exoplatform.webui.event.Event<?> event,
                                          StringBuffer notFoundUser)
                                   throws Exception
Throws:
Exception


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.