org.exoplatform.calendar.webui.popup
Class UICalendarForm
java.lang.Object
org.exoplatform.webui.core.UIComponent
org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.form.UIForm
org.exoplatform.webui.form.UIFormTabPane
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 classes/interfaces inherited from class org.exoplatform.webui.form.UIFormTabPane |
org.exoplatform.webui.form.UIFormTabPane.SelectTabActionListener |
| 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 |
| 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 |
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_
UICalendarForm
public UICalendarForm()
throws Exception
- Throws:
Exception
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–2014 eXo Platform SAS. All rights reserved.