org.exoplatform.social.webui.profile
Class UIContactSection

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.social.webui.profile.UIProfileSection
                  extended by org.exoplatform.social.webui.profile.UIContactSection

public class UIContactSection
extends UIProfileSection

Component is used for contact information managing.
Some contact information such as: phone, ims, website ... This is one part of profile management beside basic information and experience.
Modified : hanh.vi hanhvq@gmail.com Aug 18, 2009


Nested Class Summary
static class UIContactSection.AddActionListener
          Adds component when user click add button.
static class UIContactSection.EditActionListener
          Changes form into edit mode when user click eddit button.
static class UIContactSection.RemoveActionListener
          Removes the component that user selected for removing.
static class UIContactSection.SaveActionListener
          Stores profile information into database when form is submitted.
 
Nested classes/interfaces inherited from class org.exoplatform.social.webui.profile.UIProfileSection
UIProfileSection.CancelActionListener
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static String GENDER_CHILD
          GENDER
static String HTTP_PROTOCOL
           
static String IM
          URL.
static String IM_STRINGLENGTH_REGEX_EXPRESSION
          IM LENGTH REGEX EXPRESSION.
static String[] IM_TYPES
          IM_TYPES.
static String INVALID_IM
          INVALID IM.
static String INVALID_PHONE
          INVALID PHONE.
static String INVALID_URL
          INVALID URL.
static String KEY
          KEY.
static String PHONE
          PHONE.
static String PHONE_REGEX_EXPRESSION
          PHONE REGEX EXPRESSION.
static String[] PHONE_TYPES
          PHONE_TYPES.
static String URL
          URL.
static String URL_REGEX_EXPRESSION
          URL REGEX EXPRESSION.
static String VALUE
          VALUE.
static String VALUE_GENDER_FEMALE
          FEMALE.
static String VALUE_GENDER_MALE
          MALE.
static String WEBSITE_TITLE
          WEBSITE TITLE.
 
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
UIContactSection()
          Initializes contact form.
 
Method Summary
 List<org.exoplatform.webui.core.UIComponent> getChilds()
          Gets and sort all uicomponents.
 org.exoplatform.webui.form.UIFormInput<String> getGenderChild()
          Gets gender child
 List<org.exoplatform.webui.core.UIComponent> getImsChilds()
          Gets all children of ims.
 int getImsCount()
           
 List<org.exoplatform.webui.core.UIComponent> getPhoneChilds()
          Gets all children of Phone.
 int getPhoneCount()
           
 String getSampleURL()
           
 List<org.exoplatform.webui.core.UIComponent> getUrlChilds()
          Gets all children of URL.
 int getUrlCount()
           
 void removeEmptyComponents()
          Removes empty components that user did not input any values.
 void setSampleURL(String sampleURL)
           
 
Methods inherited from class org.exoplatform.social.webui.profile.UIProfileSection
escapeHtml, getProfile, getViewUser, isEditable, isEditMode, isFirstLoad, setEditMode, setFirstLoad
 
Methods inherited from class org.exoplatform.webui.form.UIForm
addUIComponentInput, addUIFormInput, addUIFormInput, begin, end, event, event, event, getActions, getLabel, 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, getName, getParent, getTemplate, 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

GENDER_CHILD

public static final String GENDER_CHILD
GENDER

See Also:
Constant Field Values

PHONE

public static final String PHONE
PHONE.

See Also:
Constant Field Values

IM

public static final String IM
URL.

See Also:
Constant Field Values

URL

public static final String URL
URL.

See Also:
Constant Field Values

VALUE_GENDER_MALE

public static final String VALUE_GENDER_MALE
MALE.

See Also:
Constant Field Values

VALUE_GENDER_FEMALE

public static final String VALUE_GENDER_FEMALE
FEMALE.

See Also:
Constant Field Values

PHONE_TYPES

public static final String[] PHONE_TYPES
PHONE_TYPES.


IM_TYPES

public static final String[] IM_TYPES
IM_TYPES.


WEBSITE_TITLE

public static final String WEBSITE_TITLE
WEBSITE TITLE.

See Also:
Constant Field Values

KEY

public static final String KEY
KEY.

See Also:
Constant Field Values

VALUE

public static final String VALUE
VALUE.

See Also:
Constant Field Values

PHONE_REGEX_EXPRESSION

public static final String PHONE_REGEX_EXPRESSION
PHONE REGEX EXPRESSION.

See Also:
Constant Field Values

IM_STRINGLENGTH_REGEX_EXPRESSION

public static final String IM_STRINGLENGTH_REGEX_EXPRESSION
IM LENGTH REGEX EXPRESSION.

See Also:
Constant Field Values

INVALID_PHONE

public static final String INVALID_PHONE
INVALID PHONE.

See Also:
Constant Field Values

INVALID_IM

public static final String INVALID_IM
INVALID IM.

See Also:
Constant Field Values

URL_REGEX_EXPRESSION

public static final String URL_REGEX_EXPRESSION
URL REGEX EXPRESSION.

See Also:
Constant Field Values

HTTP_PROTOCOL

public static final String HTTP_PROTOCOL
See Also:
Constant Field Values

INVALID_URL

public static final String INVALID_URL
INVALID URL.

See Also:
Constant Field Values
Constructor Detail

UIContactSection

public UIContactSection()
                 throws Exception
Initializes contact form.

Throws:
Exception
Method Detail

getPhoneCount

public final int getPhoneCount()
Returns:
phoneCount

getImsCount

public final int getImsCount()
Returns:
imCount

getUrlCount

public final int getUrlCount()
Returns:
urlCount

getSampleURL

public String getSampleURL()
Returns:
the sampleURL

setSampleURL

public void setSampleURL(String sampleURL)
Parameters:
sampleURL - the sampleURL to set

getChilds

public final List<org.exoplatform.webui.core.UIComponent> getChilds()
Gets and sort all uicomponents.

Returns:
All children in order.

getPhoneChilds

public final List<org.exoplatform.webui.core.UIComponent> getPhoneChilds()
Gets all children of Phone.

Returns:
All Phone children in order.

getImsChilds

public final List<org.exoplatform.webui.core.UIComponent> getImsChilds()
Gets all children of ims.

Returns:
All ims children in order.

getUrlChilds

public final List<org.exoplatform.webui.core.UIComponent> getUrlChilds()
Gets all children of URL.

Returns:
All URL children in order.

getGenderChild

public final org.exoplatform.webui.form.UIFormInput<String> getGenderChild()
Gets gender child

Returns:
gender child.

removeEmptyComponents

public void removeEmptyComponents()
Removes empty components that user did not input any values.



Copyright © 2003–2014 eXo Platform SAS. All rights reserved.