org.wicketstuff.jwicket.ui.datepicker
Class DatePicker.ShowDay

java.lang.Object
  extended by 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
DatePicker.ShowDay(Date date, boolean selectable)
          If the day corresponding to parameter day should be selectable, the parameter selectable should be set to true, if not it should be set to false.
DatePicker.ShowDay(Date date, boolean selectable, String cssClass)
          If the day corresponding to parameter day should be selectable, the parameter selectable should be set to true, if not it should be set to false.
DatePicker.ShowDay(Date date, boolean selectable, String cssClass, String tooltip)
          If the day corresponding to parameter day should be selectable, the parameter selectable should be set to true, if not it should be set to false.
 
Method Summary
 String getCssClass()
           
 Date getDate()
           
 String getTooltip()
           
 boolean isSelectable()
           
 void setCssClass(String value)
           
 void setDate(Date value)
           
 void setSelectable(boolean value)
           
 void setTooltip(String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatePicker.ShowDay

public DatePicker.ShowDay(Date date,
                          boolean selectable)
If the day corresponding to parameter day should be selectable, the parameter selectable should be set to true, if not it should be set to false.

Parameters:
date - the day
selectable - true if the day should be selectable and false if the day sould net be selectable.

DatePicker.ShowDay

public DatePicker.ShowDay(Date date,
                          boolean selectable,
                          String cssClass)
If the day corresponding to parameter day should be selectable, the parameter selectable should be set to true, if not it should be set to false. The CSS class of the day can be controlled with parameter cssClass.

Parameters:
date - the day
selectable - true if the day should be selectable and false if the day sould net be selectable.
cssClass - regardless from selectable state of the day this CSS class is assigned to the day rectangle

DatePicker.ShowDay

public DatePicker.ShowDay(Date date,
                          boolean selectable,
                          String cssClass,
                          String tooltip)
If the day corresponding to parameter day should be selectable, the parameter selectable should be set to true, if not it should be set to false. The CSS class of the day can be controlled with parameter cssClass.

Parameters:
date - the day
selectable - true if the day should be selectable and false if the day sould net be selectable.
cssClass - regardless from selectable state of the day this CSS class is assigned to the day rectangle
tooltip - 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)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2016. All rights reserved.