This documentation is for an old version of fiftyfive-wicket (2.0.9).


fiftyfive.wicket.datetime
Class RestrictedDatePicker

java.lang.Object
  extended by org.apache.wicket.behavior.AbstractBehavior
      extended by org.apache.wicket.extensions.yui.calendar.DatePicker
          extended by fiftyfive.wicket.datetime.RestrictedDatePicker
All Implemented Interfaces:
Serializable, IBehavior, IComponentConfigurationBehavior, IClusterable, IHeaderContributor

Deprecated. Consider writing jQuery UI JavaScript in your markup to handle all of your date picker needs; this is more powerful and customizable than what the Wicket DatePicker provides. See JQueryDatePicker for a simple example.

public class RestrictedDatePicker
extends DatePicker

This class is based on DatePicker, with the added functionality that a minimum and/or maximum date can be specified by the caller.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.wicket.extensions.yui.calendar.DatePicker
FORMAT_DATE, FORMAT_PAGEDATE
 
Constructor Summary
RestrictedDatePicker()
          Deprecated. RestrictedDatePicker constructor
RestrictedDatePicker(IModel initialDateModel, IModel startDateModel, IModel endDateModel)
          Deprecated. RestrictedDatePicker constructor
 
Method Summary
protected  void configure(Map widgetProperties)
          Deprecated. Configure the widget with the start and end dates specified.
 void detach(Component component)
          Deprecated. Detaches the various initial, start and end date models that are associated with this picker.
 void setEndDateModel(IModel newEndDateModel)
          Deprecated. Set the end date model.
 void setInitialDateModel(IModel newInitialDateModel)
          Deprecated. Set the initial date model.
 void setStartDateModel(IModel newStartDateModel)
          Deprecated. Set the start date model.
 
Methods inherited from class org.apache.wicket.extensions.yui.calendar.DatePicker
alignWithIcon, bind, configureWidgetProperties, enableMonthYearSelection, filterEmpty, getAdditionalJavascript, getComponentMarkupId, getDatePattern, getEscapedComponentMarkupId, getIconAltText, getIconId, getIconStyle, getIconTitle, getIconUrl, getLocale, hideOnSelect, includeYUILibraries, isEnabled, localize, notifyComponentOnDateSelected, onRendered, renderHead, renderOnLoad, setShowOnFieldClick, showOnFieldClick, substring, substring
 
Methods inherited from class org.apache.wicket.behavior.AbstractBehavior
afterRender, beforeRender, cleanup, detachModel, exception, getStatelessHint, isTemporary, onComponentTag, onConfigure, onException, rendered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestrictedDatePicker

public RestrictedDatePicker()
Deprecated. 
RestrictedDatePicker constructor


RestrictedDatePicker

public RestrictedDatePicker(IModel initialDateModel,
                            IModel startDateModel,
                            IModel endDateModel)
Deprecated. 
RestrictedDatePicker constructor

Parameters:
initialDateModel - A model representing the month to show when the widget is first loaded.
startDateModel - A model representing the start date to restrict the date picker to.
endDateModel - A model representing the end date to restrict the date picker to.
Method Detail

detach

public void detach(Component component)
Deprecated. 
Detaches the various initial, start and end date models that are associated with this picker.

Specified by:
detach in interface IBehavior
Overrides:
detach in class AbstractBehavior

setInitialDateModel

public void setInitialDateModel(IModel newInitialDateModel)
Deprecated. 
Set the initial date model.

Parameters:
newInitialDateModel - A model representing the initial date for this date picker; the widget will show the month specified when loaded.

setStartDateModel

public void setStartDateModel(IModel newStartDateModel)
Deprecated. 
Set the start date model.

Parameters:
newStartDateModel - A model representing the start date for this date picker; the user will be unable to select a date prior to this date, if it is specified.

setEndDateModel

public void setEndDateModel(IModel newEndDateModel)
Deprecated. 
Set the end date model.

Parameters:
newEndDateModel - A model representing the end date for this date picker; the user will be unable to select a date following this date, if it is specified.

configure

protected void configure(Map widgetProperties)
Deprecated. 
Configure the widget with the start and end dates specified.

Overrides:
configure in class DatePicker
Parameters:
widgetProperties - the current widget properties


Copyright © 2011 55 Minutes. All Rights Reserved.