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.AddCategoryActionListener
           
static class UICalendarForm.CancelActionListener
           
static class UICalendarForm.DeactiveActionListener
           
static class UICalendarForm.OpenActionListener
           
static class UICalendarForm.ResetActionListener
           
static class UICalendarForm.SaveActionListener
           
static class UICalendarForm.SelectPermissionActionListener
           
static class UICalendarForm.SelectTabActionListener
           
static class UICalendarForm.ShowPublicURLActionListener
           
 
Field Summary
static String ACT_ACTIVE
           
static String ACT_ADD_CATEGORY
           
static String ACT_DEACTIVE
           
static String ACT_OPEN
           
static String ACT_SELECT_PERM
           
static String ACT_SUBSCRIBE
           
 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
           
 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
           
 
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 typedPerms, org.exoplatform.services.organization.OrganizationService orgService, String groupIdSelected, String groupKey, org.exoplatform.webui.event.Event<?> event)
           
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()
           
protected  boolean isPublic()
           
protected  void lockCheckBoxFields(boolean isLock)
           
 void reloadCategory()
           
 void resetField()
           
protected  void setDescription(String value)
           
protected  void setDisplayName(String value)
           
 void setLocale(String value)
           
protected  void setSelectedColor(String value)
           
 void setSelectedGroup(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

EDIT_PERMISSION

public static final String EDIT_PERMISSION
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

INPUT_CALENDAR

public static final String INPUT_CALENDAR

INPUT_SHARE

public static final String INPUT_SHARE

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

PUBLIC_URL

public static final String PUBLIC_URL

PRIVATE_URL

public static final String PRIVATE_URL

PUBLIC_URL_MSG

public static final String PUBLIC_URL_MSG

PUBLIC_URL_MSG_D

public static final String PUBLIC_URL_MSG_D

ACT_SELECT_PERM

public static final String ACT_SELECT_PERM

ACT_ADD_CATEGORY

public static final String ACT_ADD_CATEGORY

ACT_OPEN

public static final String ACT_OPEN

ACT_SUBSCRIBE

public static final String ACT_SUBSCRIBE

ACT_ACTIVE

public static final String ACT_ACTIVE

ACT_DEACTIVE

public static final String ACT_DEACTIVE

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

getCalType

public String getCalType()

getActions

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

reloadCategory

public void reloadCategory()
                    throws Exception
Throws:
Exception

lockCheckBoxFields

protected void lockCheckBoxFields(boolean isLock)
                           throws Exception
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

resetField

public void resetField()
                throws Exception
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()

setSelectedGroup

public void setSelectedGroup(String value)

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
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 typedPerms,
                                          org.exoplatform.services.organization.OrganizationService orgService,
                                          String groupIdSelected,
                                          String groupKey,
                                          org.exoplatform.webui.event.Event<?> event)
                                   throws Exception
Throws:
Exception


Copyright © 2013 eXo Platform SAS. All Rights Reserved.