org.exoplatform.forum.webui
Class UIFormDateTimePicker
java.lang.Object
org.exoplatform.webui.core.UIComponent
org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.form.UIFormInputBase<java.lang.String>
org.exoplatform.forum.webui.UIFormDateTimePicker
- All Implemented Interfaces:
- org.exoplatform.webui.form.UIFormInput<java.lang.String>
public class UIFormDateTimePicker
- extends org.exoplatform.webui.form.UIFormInputBase<java.lang.String>
Created by The eXo Platform SARL
Author : Tran The Trong
trongtt@gmail.com
Jul 14, 2006
A date picker element
| Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer |
org.exoplatform.webui.core.UIContainer.SelectTabActionListener |
| Fields inherited from class org.exoplatform.webui.form.UIFormInputBase |
bindingField, defaultValue_, DISABLE, ENABLE, enable_, name, readonly_, typeValue_, validators, value_ |
| Fields inherited from class org.exoplatform.webui.core.UIComponent |
config, OBJECTID, UICOMPONENT, uiparent |
|
Constructor Summary |
UIFormDateTimePicker(java.lang.String name,
java.lang.String bindField,
java.util.Date date)
|
UIFormDateTimePicker(java.lang.String name,
java.lang.String bindField,
java.util.Date date,
boolean isDisplayTime,
java.lang.String titleShowCalendar)
|
|
Method Summary |
void |
decode(java.lang.Object input,
org.exoplatform.webui.application.WebuiRequestContext context)
|
java.util.Calendar |
getCalendar()
|
void |
processRender(org.exoplatform.webui.application.WebuiRequestContext context)
|
void |
setCalendar(java.util.Calendar date)
|
void |
setDisplayTime(boolean isDisplayTime)
By default, creates a date of format Month/Day/Year
If isDisplayTime is true, adds the time of format Hours:Minutes:Seconds
TODO : Display time depending on the locale of the client. |
void |
setTitleShowCalendar(java.lang.String titleShowCalendar)
|
| Methods inherited from class org.exoplatform.webui.form.UIFormInputBase |
addValidator, getBindingField, getDefaultValue, getLabel, getName, getTypeValue, getValidators, getValue, isEditable, isEnable, isMandatory, isValid, processDecode, reset, setBindingField, setDefaultValue, setEditable, setEnable, setLabel, setName, setValue |
| Methods inherited from class org.exoplatform.webui.core.UIContainer |
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes, visit |
| Methods inherited from class org.exoplatform.webui.core.UIComponent |
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, event, event, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getParent, getTemplate, getTemplateResourceResolver, getUIComponentName, isRendered, loadConfirmMesssage, processAction, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibbling, url, url, url |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UIFormDateTimePicker
public UIFormDateTimePicker(java.lang.String name,
java.lang.String bindField,
java.util.Date date,
boolean isDisplayTime,
java.lang.String titleShowCalendar)
UIFormDateTimePicker
public UIFormDateTimePicker(java.lang.String name,
java.lang.String bindField,
java.util.Date date)
setTitleShowCalendar
public void setTitleShowCalendar(java.lang.String titleShowCalendar)
setDisplayTime
public void setDisplayTime(boolean isDisplayTime)
- By default, creates a date of format Month/Day/Year
If isDisplayTime is true, adds the time of format Hours:Minutes:Seconds
TODO : Display time depending on the locale of the client.
- Parameters:
isDisplayTime -
setCalendar
public void setCalendar(java.util.Calendar date)
getCalendar
public java.util.Calendar getCalendar()
decode
public void decode(java.lang.Object input,
org.exoplatform.webui.application.WebuiRequestContext context)
throws java.lang.Exception
- Specified by:
decode in class org.exoplatform.webui.form.UIFormInputBase<java.lang.String>
- Throws:
java.lang.Exception
processRender
public void processRender(org.exoplatform.webui.application.WebuiRequestContext context)
throws java.lang.Exception
- Overrides:
processRender in class org.exoplatform.webui.core.UIComponent
- Throws:
java.lang.Exception
Copyright © 2010 eXo Platform SAS. All Rights Reserved.