Class DatePicker.ShowDay
- java.lang.Object
-
- org.wicketstuff.jwicket.ui.datepicker.DatePicker.ShowDay
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- DatePicker
public static class DatePicker.ShowDay extends Object implements Serializable
This Class controls the visibility of a single day rectangle in the DatePicker popup and the ability to select this day and an optional text popup for a single day.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ShowDay(Date date, boolean selectable)If the day corresponding to parameterdayshould be selectable, the parameterselectableshould be set totrue, if not it should be set tofalse.ShowDay(Date date, boolean selectable, String cssClass)If the day corresponding to parameterdayshould be selectable, the parameterselectableshould be set totrue, if not it should be set tofalse.ShowDay(Date date, boolean selectable, String cssClass, String tooltip)If the day corresponding to parameterdayshould be selectable, the parameterselectableshould be set totrue, if not it should be set tofalse.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCssClass()DategetDate()StringgetTooltip()booleanisSelectable()voidsetCssClass(String value)voidsetDate(Date value)voidsetSelectable(boolean value)voidsetTooltip(String value)StringtoString()
-
-
-
Constructor Detail
-
ShowDay
public ShowDay(Date date, boolean selectable)
If the day corresponding to parameterdayshould be selectable, the parameterselectableshould be set totrue, if not it should be set tofalse.- Parameters:
date- the dayselectable-trueif the day should be selectable andfalseif the day sould net be selectable.
-
ShowDay
public ShowDay(Date date, boolean selectable, String cssClass)
If the day corresponding to parameterdayshould be selectable, the parameterselectableshould be set totrue, if not it should be set tofalse. The CSS class of the day can be controlled with parametercssClass.- Parameters:
date- the dayselectable-trueif the day should be selectable andfalseif the day sould net be selectable.cssClass- regardless fromselectablestate of the day this CSS class is assigned to the day rectangle
-
ShowDay
public ShowDay(Date date, boolean selectable, String cssClass, String tooltip)
If the day corresponding to parameterdayshould be selectable, the parameterselectableshould be set totrue, if not it should be set tofalse. The CSS class of the day can be controlled with parametercssClass.- Parameters:
date- the dayselectable-trueif the day should be selectable andfalseif the day sould net be selectable.cssClass- regardless fromselectablestate of the day this CSS class is assigned to the day rectangletooltip- a tooltip text to be shon wehn the mouse is placed over the given day
-
-
Method Detail
-
getDate
public Date getDate()
-
setDate
public void setDate(Date value)
-
isSelectable
public boolean isSelectable()
-
setSelectable
public void setSelectable(boolean value)
-
getCssClass
public String getCssClass()
-
setCssClass
public void setCssClass(String value)
-
getTooltip
public String getTooltip()
-
setTooltip
public void setTooltip(String value)
-
-