|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wicket.extensions.markup.html.datepicker.DatePickerSettings
public class DatePickerSettings
The settings of the date picker component. Use this to customize the datepicker (e.g. the icon, locale, format, etc).
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 |
---|
public DatePickerSettings()
Method Detail |
---|
public static wicket.ResourceReference getLanguageFromMap(java.util.Locale currentLocale)
currentLocale
- the current locale
public java.lang.String getAlign()
public int getFirstDay()
public wicket.ResourceReference getIcon()
public java.lang.String getIfFormat(java.util.Locale locale)
locale
- The locale
public wicket.ResourceReference getLanguage(java.util.Locale currentLocale)
currentLocale
- the current locale
public wicket.ResourceReference getStyle()
public java.lang.String getTimeFormat()
public boolean isElectric()
public boolean isMode()
public boolean isShowOthers()
public boolean isShowsTime()
public boolean isWeekNumbers()
public final wicket.ResourceReference newButtonIconBlue()
public final wicket.ResourceReference newButtonIconPlain()
public final wicket.ResourceReference newButtonIconRed()
public final wicket.ResourceReference newStyleAqua()
public final wicket.ResourceReference newStyleBlue()
public final wicket.ResourceReference newStyleGreen()
public final wicket.ResourceReference newStyleSummer()
public final wicket.ResourceReference newStyleSystem()
public final wicket.ResourceReference newStyleTas()
public final wicket.ResourceReference newStyleWin2k1()
public final wicket.ResourceReference newStyleWin2k2()
public final wicket.ResourceReference newStyleWin2kCold1()
public final wicket.ResourceReference newStyleWin2kCold2()
public final wicket.ResourceReference newStyleWinter()
public void setAlign(java.lang.String align)
align
- alignpublic void setElectric(boolean electric)
electric
- electricpublic void setFirstDay(int firstDay)
firstDay
- firstDaypublic void setIcon(wicket.ResourceReference icon)
icon
- iconpublic void setIfFormat(java.lang.String ifFormat)
Note: setting this field to a non-null value, overrides the lookup using dateformats.properties. To remove the override, pass null.
ifFormat
- the data formatpublic void setLanguage(wicket.ResourceReference language)
language
- languagepublic void setMode(boolean mode)
mode
- modepublic void setShowOthers(boolean showOthers)
showOthers
- showOtherspublic void setShowsTime(boolean showsTime)
showsTime
- showsTimepublic void setStyle(wicket.ResourceReference style)
style
- stylepublic void setTimeFormat(java.lang.String timeFormat)
timeFormat
- timeFormatpublic void setWeekNumbers(boolean weekNumbers)
weekNumbers
- weekNumberspublic java.lang.String toScript(java.util.Locale locale, java.lang.String format)
locale
- the current localeformat
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |