org.odlabs.wiquery.ui.datepicker
Class DateOption

java.lang.Object
  extended by org.odlabs.wiquery.ui.datepicker.DateOption
All Implemented Interfaces:
Serializable, IComplexOption

public class DateOption
extends Object
implements IComplexOption

$Id: DateOption.java

Bean for the defaultDate, maxDate, minDate option for the DatePicker component

Since:
1.0
Author:
Julien Roche
See Also:
Serialized Form

Constructor Summary
DateOption(Date dateParam)
          Constructor
DateOption(Short shortParam)
          Constructor
DateOption(String literalParam)
          Constructor
 
Method Summary
 Date getDateParam()
           
 CharSequence getJavascriptOption()
          Method retrieving the javascript representation of this complex option
 String getLiteralParam()
           
 Short getShortParam()
           
 void setDateParam(Date dateParam)
          Set's the date parameter
 void setLiteralParam(String literalParam)
          Set's the literal parameter
 void setShortParam(Short shortParam)
          Set's the short parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateOption

public DateOption(Short shortParam)
Constructor

Parameters:
shortParam - Short parameter

DateOption

public DateOption(String literalParam)
Constructor

Parameters:
literalParam - literal parameter

DateOption

public DateOption(Date dateParam)
Constructor

Parameters:
dateParam - short parameter
Method Detail

getDateParam

public Date getDateParam()
Returns:
the dateParam

getLiteralParam

public String getLiteralParam()
Returns:
the literalParam

getShortParam

public Short getShortParam()
Returns:
the shortParam

getJavascriptOption

public CharSequence getJavascriptOption()
Description copied from interface: IComplexOption
Method retrieving the javascript representation of this complex option

Specified by:
getJavascriptOption in interface IComplexOption
Returns:
the javascript

setDateParam

public void setDateParam(Date dateParam)
Set's the date parameter

Parameters:
dateParam - short parameter

setLiteralParam

public void setLiteralParam(String literalParam)
Set's the literal parameter

Parameters:
literalParam - literal parameter

setShortParam

public void setShortParam(Short shortParam)
Set's the short parameter

Parameters:
shortParam - short parameter


Copyright © 2012. All Rights Reserved.