corelib.services.web.components
Class DatePicker

java.lang.Object
  extended by corelib.services.web.components.WebComponent
      extended by corelib.services.web.components.VisualComponent
          extended by corelib.services.web.components.FormElement
              extended by corelib.services.web.components.FormInput
                  extended by corelib.services.web.components.DatePicker

public class DatePicker
extends FormInput

This web component can display a form element associated with a date and a button to get a <web:Calendar /> component (or a JWT QuickCalendar component). This calendar component will easily select the new date for the associated form element. The first screenshot show you the collapsed DatePicker component (before calendar expension). The second screenshot show you the expanded DatePicker component (after the calendar expension).

The DatePicker Ellipse component accept two modes of date selection : standard mode (show previous screenshots) and quick edit mode. In the quick edit mode, you can select a new date with only four mouse click. There three screenshots show you how you can select a year, a month and a day for the new edited date (in quick edit mode).

The main associated CSS classes are .JwtDatePicker and those associated with the Calendar web component.

Since:
0.2.10
Author:
Dominique Liard
See Also:
Calendar

Nested Class Summary
static class DatePicker.DisplayMode
          This enum type defines differents display modes available for DatePicker components.
 
Field Summary
 
Fields inherited from class corelib.services.web.components.FormInput
autoPost, oldValue, readOnly
 
Fields inherited from class corelib.services.web.components.FormElement
disabled, value
 
Fields inherited from class corelib.services.web.components.VisualComponent
cssClass, cssStyle, toolTipText, visible
 
Fields inherited from class corelib.services.web.components.WebComponent
dataBindings, webPage, xmlNode
 
Constructor Summary
DatePicker()
          The class constructor.
 
Method Summary
 void component_renderBegin(WebPageEvent webPageEvent)
           
 DatePicker.DisplayMode getDisplayMode()
          Returns the actual display mode used by this DatePicker component.
 java.util.Date getSelectedDate()
          Retrieves the selected date into this DatePicker component.
 void setDisplayMode(DatePicker.DisplayMode displayMode)
          Changes the display mode of this DatePicker component.
 void setSelectedDate(java.util.Calendar calendar)
          Change the selected date for this Calendar with the date stored in the specified calendar.
 void setSelectedDate(java.util.Date newDate)
          Change the selected date for this Calendar web component.
 
Methods inherited from class corelib.services.web.components.FormInput
addFormInputListener, component_load, fireFormInputEvent, getOldValue, getSharedAttributesHtmlEncoding, isAutoPost, isReadOnly, oldValueHtmlEnconding, setAutoPost, setOldValue, setReadOnly
 
Methods inherited from class corelib.services.web.components.FormElement
getValue, isDisabled, setDisabled, setValue
 
Methods inherited from class corelib.services.web.components.VisualComponent
component_postRender, component_preRender, component_renderChildren, component_renderEnd, component_renderJavascriptLocalisation, encodeAttributeValue, getCssClass, getCssStyle, getOnClickListener, getToolTipText, isVisible, renderElement, setCssClass, setCssStyle, setOnClickListener, setToolTipText, setVisible
 
Methods inherited from class corelib.services.web.components.WebComponent
addBindingExpression, addChildComponent, component_init, component_preRepeaterDuplications, getChildComponents, getDataBinding, getElementsByTagName, getId, getWebPage, getXmlNode, setId, setWebPage, setXmlNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatePicker

public DatePicker()
The class constructor.

Method Detail

getSelectedDate

public java.util.Date getSelectedDate()
Retrieves the selected date into this DatePicker component.

Returns:
The selected date.

setSelectedDate

public void setSelectedDate(java.util.Date newDate)
Change the selected date for this Calendar web component.

Parameters:
newDate - The new date.

setSelectedDate

public void setSelectedDate(java.util.Calendar calendar)
Change the selected date for this Calendar with the date stored in the specified calendar.

Parameters:
calendar - The calendar objet that store the new date.
Since:
0.3.8

getDisplayMode

public DatePicker.DisplayMode getDisplayMode()
Returns the actual display mode used by this DatePicker component.

Returns:
The actual display mode.
Since:
0.4.0

setDisplayMode

public void setDisplayMode(DatePicker.DisplayMode displayMode)
Changes the display mode of this DatePicker component.

Parameters:
displayMode - The new display mode.
Since:
0.4.0

component_renderBegin

public void component_renderBegin(WebPageEvent webPageEvent)
Overrides:
component_renderBegin in class VisualComponent


CAUTION: Ellipse is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of Ellipse Framework.

Copyright 2012 Infini Software - All Rights Reserved.