wicket.extensions.markup.html.datepicker
Class DatePickerSettings

java.lang.Object
  extended by wicket.extensions.markup.html.datepicker.DatePickerSettings
All Implemented Interfaces:
java.io.Serializable

public class DatePickerSettings
extends java.lang.Object
implements java.io.Serializable

The settings of the date picker component. Use this to customize the datepicker (e.g. the icon, locale, format, etc).

Author:
Eelco Hillenius
See Also:
Serialized Form

Constructor Summary
DatePickerSettings()
          Construct.
 
Method Summary
 java.lang.String getAlign()
          Gets the align.
 int getFirstDay()
          Gets the firstDay.
 wicket.ResourceReference getIcon()
          Gets the icon.
 java.lang.String getIfFormat(java.util.Locale locale)
          Gets the format string that will be used to enter the date in the input field based on the provided locale.
 wicket.ResourceReference getLanguage(java.util.Locale currentLocale)
          Gets the language.
static wicket.ResourceReference getLanguageFromMap(java.util.Locale currentLocale)
          Gets the language.
 wicket.ResourceReference getStyle()
          Gets the style.
 java.lang.String getTimeFormat()
          Gets the timeFormat.
 boolean isElectric()
          Gets the electric.
 boolean isMode()
          Gets the mode.
 boolean isShowOthers()
          Gets the showOthers.
 boolean isShowsTime()
          Gets the showsTime.
 boolean isWeekNumbers()
          Gets the weekNumbers.
 wicket.ResourceReference newButtonIconBlue()
          create a button icon.
 wicket.ResourceReference newButtonIconPlain()
          create a button icon.
 wicket.ResourceReference newButtonIconRed()
          create a button icon.
 wicket.ResourceReference newStyleAqua()
          Create a style
 wicket.ResourceReference newStyleBlue()
          Create a style
 wicket.ResourceReference newStyleGreen()
          Create a style
 wicket.ResourceReference newStyleSummer()
          Create a style
 wicket.ResourceReference newStyleSystem()
          Create a style
 wicket.ResourceReference newStyleTas()
          Create a style
 wicket.ResourceReference newStyleWin2k1()
          Create a style
 wicket.ResourceReference newStyleWin2k2()
          Create a style
 wicket.ResourceReference newStyleWin2kCold1()
          Create a style
 wicket.ResourceReference newStyleWin2kCold2()
          Create a style
 wicket.ResourceReference newStyleWinter()
          Create a style
 void setAlign(java.lang.String align)
          Sets the align.
 void setElectric(boolean electric)
          Sets the electric.
 void setFirstDay(int firstDay)
          Sets the firstDay.
 void setIcon(wicket.ResourceReference icon)
          Sets the icon.
 void setIfFormat(java.lang.String ifFormat)
          Deprecated. The format is extracted from the java datefomatter format string
 void setLanguage(wicket.ResourceReference language)
          Sets the language.
 void setMode(boolean mode)
          Sets the mode.
 void setShowOthers(boolean showOthers)
          Sets the showOthers.
 void setShowsTime(boolean showsTime)
          Deprecated. The format is extracted from the java datefomatter format string
 void setStyle(wicket.ResourceReference style)
          Sets the style.
 void setTimeFormat(java.lang.String timeFormat)
          Deprecated. The format is extracted from the java datefomatter format string
 void setWeekNumbers(boolean weekNumbers)
          Sets the weekNumbers.
 java.lang.String toScript(java.util.Locale locale, java.lang.String format)
          Return the properties as a script.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatePickerSettings

public DatePickerSettings()
Construct.

Method Detail

getLanguageFromMap

public static wicket.ResourceReference getLanguageFromMap(java.util.Locale currentLocale)
Gets the language.

Parameters:
currentLocale - the current locale
Returns:
language

getAlign

public java.lang.String getAlign()
Gets the align.

Returns:
align

getFirstDay

public int getFirstDay()
Gets the firstDay.

Returns:
firstDay

getIcon

public wicket.ResourceReference getIcon()
Gets the icon.

Returns:
icon

getIfFormat

public java.lang.String getIfFormat(java.util.Locale locale)
Gets the format string that will be used to enter the date in the input field based on the provided locale. Should return Javascript notation, like '%m/%d/%Y'.

Parameters:
locale - The locale
Returns:
The date format

getLanguage

public wicket.ResourceReference getLanguage(java.util.Locale currentLocale)
Gets the language.

Parameters:
currentLocale - the current locale
Returns:
language

getStyle

public wicket.ResourceReference getStyle()
Gets the style.

Returns:
style

getTimeFormat

public java.lang.String getTimeFormat()
Gets the timeFormat.

Returns:
timeFormat

isElectric

public boolean isElectric()
Gets the electric.

Returns:
electric

isMode

public boolean isMode()
Gets the mode.

Returns:
mode

isShowOthers

public boolean isShowOthers()
Gets the showOthers.

Returns:
showOthers

isShowsTime

public boolean isShowsTime()
Gets the showsTime.

Returns:
showsTime

isWeekNumbers

public boolean isWeekNumbers()
Gets the weekNumbers.

Returns:
weekNumbers

newButtonIconBlue

public final wicket.ResourceReference newButtonIconBlue()
create a button icon.

Returns:
a button icon.

newButtonIconPlain

public final wicket.ResourceReference newButtonIconPlain()
create a button icon.

Returns:
a button icon.

newButtonIconRed

public final wicket.ResourceReference newButtonIconRed()
create a button icon.

Returns:
a button icon.

newStyleAqua

public final wicket.ResourceReference newStyleAqua()
Create a style

Returns:
a style

newStyleBlue

public final wicket.ResourceReference newStyleBlue()
Create a style

Returns:
a style

newStyleGreen

public final wicket.ResourceReference newStyleGreen()
Create a style

Returns:
a style

newStyleSummer

public final wicket.ResourceReference newStyleSummer()
Create a style

Returns:
a style

newStyleSystem

public final wicket.ResourceReference newStyleSystem()
Create a style

Returns:
a style

newStyleTas

public final wicket.ResourceReference newStyleTas()
Create a style

Returns:
a style

newStyleWin2k1

public final wicket.ResourceReference newStyleWin2k1()
Create a style

Returns:
a style

newStyleWin2k2

public final wicket.ResourceReference newStyleWin2k2()
Create a style

Returns:
a style

newStyleWin2kCold1

public final wicket.ResourceReference newStyleWin2kCold1()
Create a style

Returns:
a style

newStyleWin2kCold2

public final wicket.ResourceReference newStyleWin2kCold2()
Create a style

Returns:
a style

newStyleWinter

public final wicket.ResourceReference newStyleWinter()
Create a style

Returns:
a style

setAlign

public void setAlign(java.lang.String align)
Sets the align.

Parameters:
align - align

setElectric

public void setElectric(boolean electric)
Sets the electric.

Parameters:
electric - electric

setFirstDay

public void setFirstDay(int firstDay)
Sets the firstDay.

Parameters:
firstDay - firstDay

setIcon

public void setIcon(wicket.ResourceReference icon)
Sets the icon.

Parameters:
icon - icon

setIfFormat

public void setIfFormat(java.lang.String ifFormat)
Deprecated. The format is extracted from the java datefomatter format string

Sets the format string that will be used to enter the date in the input field. This format will be honored even if the input field is hidden. Use Javascript notation, like '%m/%d/%Y'.

Note: setting this field to a non-null value, overrides the lookup using dateformats.properties. To remove the override, pass null.

Parameters:
ifFormat - the data format

setLanguage

public void setLanguage(wicket.ResourceReference language)
Sets the language.

Parameters:
language - language

setMode

public void setMode(boolean mode)
Sets the mode.

Parameters:
mode - mode

setShowOthers

public void setShowOthers(boolean showOthers)
Sets the showOthers.

Parameters:
showOthers - showOthers

setShowsTime

public void setShowsTime(boolean showsTime)
Deprecated. The format is extracted from the java datefomatter format string

Sets the showsTime.

Parameters:
showsTime - showsTime

setStyle

public void setStyle(wicket.ResourceReference style)
Sets the style.

Parameters:
style - style

setTimeFormat

public void setTimeFormat(java.lang.String timeFormat)
Deprecated. The format is extracted from the java datefomatter format string

Sets the timeFormat.

Parameters:
timeFormat - timeFormat

setWeekNumbers

public void setWeekNumbers(boolean weekNumbers)
Sets the weekNumbers.

Parameters:
weekNumbers - weekNumbers

toScript

public java.lang.String toScript(java.util.Locale locale,
                                 java.lang.String format)
Return the properties as a script.

Parameters:
locale - the current locale
format -
Returns:
the properties as a script


Copyright © 2004-2008 Wicket developers. All Rights Reserved.