org.wicketstuff.jquery.datepicker
Class DatePickerOptions

java.lang.Object
  extended by org.wicketstuff.jquery.Options
      extended by org.wicketstuff.jquery.datepicker.DatePickerOptions
All Implemented Interfaces:
java.io.Serializable

public class DatePickerOptions
extends Options

see http://kelvinluck.com/assets/jquery/datePicker/v2/demo/documentation.html

Author:
dwayne (David Bernard)
See Also:
Serialized Form

Nested Class Summary
static class DatePickerOptions.HPos
           
static class DatePickerOptions.VPos
           
 
Field Summary
 boolean dynamicLocalizedMessages
           
 
Fields inherited from class org.wicketstuff.jquery.Options
options_
 
Constructor Summary
DatePickerOptions()
           
 
Method Summary
 DatePickerOptions allowDateInPast(boolean allowInPast, java.lang.String datePattern)
          allowing (or not) selection of Date in paste (default : false)
 DatePickerOptions clickInput(boolean v)
          clickInput (Boolean): If the matched element is an input type="text" and this option is true then clicking on the input will cause the date picker to appear.
 DatePickerOptions closeOnSelect(boolean v)
          closeOnSelect (Boolean): Whether to close the date picker when a date is selected.
 DatePickerOptions createButton(boolean v)
          createButton (Boolean): Whether to create a .dp-choose-date anchor directly after the matched element which when clicked will trigger the showing of the date picker.
 DatePickerOptions displayClose(boolean v)
          displayClose (Boolean): Whether to create a "Close" button within the date picker popup.
 DatePickerOptions dynamicLocalizedMessages(boolean v)
           
 DatePickerOptions endDate(java.lang.String v)
          endDate (String): The last date that can be selected.
 DatePickerOptions horizontalOffset(int v)
          horizontalOffset (Number): The number of pixels offset from the defined horizontalPosition of this date picker that it should pop up in.
 DatePickerOptions horizontalPosition(DatePickerOptions.HPos v)
          horizontalPosition (Number): The horizontal alignment of the popped up date picker to the matched element.
 DatePickerOptions hoverClass(java.lang.String v)
          hoverClass (String): The class to attach to each cell when you hover over it (to allow you to use hover effects in IE6 which doesn't support the :hover pseudo-class on elements other than links).
 DatePickerOptions month(int v)
          month (Number): The month to render when the date picker is opened (NOTE that months are zero based).
 DatePickerOptions selectMultiple(boolean v)
          selectMultiple (Boolean): Whether a user should be able to select multiple dates with this date picker.
 DatePickerOptions showYearNavigation(boolean v)
          showYearNavigation (Boolean): Whether to display buttons which allow the user to navigate through the months a year at a time.
 DatePickerOptions startDate(java.lang.String v)
          startDate (String): The first date date can be selected.
 DatePickerOptions verticalOffset(int v)
          verticalOffset (Number): The number of pixels offset from the defined verticalPosition of this date picker that it should pop up in.
 DatePickerOptions verticalPosition(DatePickerOptions.VPos v)
          verticalPosition (Number): The vertical alignment of the popped up date picker to the matched element.
 DatePickerOptions year(int v)
          year (Number): The year to render when the date picker is opened.
 
Methods inherited from class org.wicketstuff.jquery.Options
get, get, set, set, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dynamicLocalizedMessages

public boolean dynamicLocalizedMessages
Constructor Detail

DatePickerOptions

public DatePickerOptions()
Method Detail

month

public DatePickerOptions month(int v)
month (Number): The month to render when the date picker is opened (NOTE that months are zero based). Default is today's month.


year

public DatePickerOptions year(int v)
year (Number): The year to render when the date picker is opened. Default is today's year.


startDate

public DatePickerOptions startDate(java.lang.String v)
startDate (String): The first date date can be selected.


endDate

public DatePickerOptions endDate(java.lang.String v)
endDate (String): The last date that can be selected.


createButton

public DatePickerOptions createButton(boolean v)
createButton (Boolean): Whether to create a .dp-choose-date anchor directly after the matched element which when clicked will trigger the showing of the date picker. Default is true.


showYearNavigation

public DatePickerOptions showYearNavigation(boolean v)
showYearNavigation (Boolean): Whether to display buttons which allow the user to navigate through the months a year at a time. Default is true.


closeOnSelect

public DatePickerOptions closeOnSelect(boolean v)
closeOnSelect (Boolean): Whether to close the date picker when a date is selected. Default is true.


displayClose

public DatePickerOptions displayClose(boolean v)
displayClose (Boolean): Whether to create a "Close" button within the date picker popup. Default is false.


selectMultiple

public DatePickerOptions selectMultiple(boolean v)
selectMultiple (Boolean): Whether a user should be able to select multiple dates with this date picker. Default is false.


clickInput

public DatePickerOptions clickInput(boolean v)
clickInput (Boolean): If the matched element is an input type="text" and this option is true then clicking on the input will cause the date picker to appear.


verticalPosition

public DatePickerOptions verticalPosition(DatePickerOptions.VPos v)
verticalPosition (Number): The vertical alignment of the popped up date picker to the matched element. Default is TOP.


horizontalPosition

public DatePickerOptions horizontalPosition(DatePickerOptions.HPos v)
horizontalPosition (Number): The horizontal alignment of the popped up date picker to the matched element. One of $.dpConst.POS_LEFT and $.dpConst.POS_RIGHT.


verticalOffset

public DatePickerOptions verticalOffset(int v)
verticalOffset (Number): The number of pixels offset from the defined verticalPosition of this date picker that it should pop up in. Default in 0.


horizontalOffset

public DatePickerOptions horizontalOffset(int v)
horizontalOffset (Number): The number of pixels offset from the defined horizontalPosition of this date picker that it should pop up in. Default in 0.


hoverClass

public DatePickerOptions hoverClass(java.lang.String v)
hoverClass (String): The class to attach to each cell when you hover over it (to allow you to use hover effects in IE6 which doesn't support the :hover pseudo-class on elements other than links). Default is dp-hover. Pass false if you don't want a hover class.


allowDateInPast

public DatePickerOptions allowDateInPast(boolean allowInPast,
                                         java.lang.String datePattern)
allowing (or not) selection of Date in paste (default : false)


dynamicLocalizedMessages

public DatePickerOptions dynamicLocalizedMessages(boolean v)


Copyright © 2010. All Rights Reserved.