| org.apache.wicket.markup.html.WebComponent org.apache.wicket.extensions.yui.calendar.AbstractCalendar
AbstractCalendar | abstract public class AbstractCalendar extends WebComponent (Code) | | Abstract calendar component based on the YUI (Yahoo User Interface library)
javascript widget.
Although this component by itself is fully functional, it doesn't do much
other than just displaying the calendar. Hence, this class is abstract.
An easy way to build upon this component is to override
AbstractCalendar.appendToInit(String,String,String,StringBuffer) and add event
handlers etc. in the YUI widget's initialization function.
See YUI's calendar
documentation for more info.
author: eelcohillenius See Also: CalendarPopup |
Field Summary | |
final public static DateFormat | FORMAT_DATE Format to be used when configuring YUI calendar. | final public static DateFormat | FORMAT_PAGEDATE For specifying which page (month/year) to show in the calendar, use this
format for the date. |
Constructor Summary | |
public | AbstractCalendar(String id) Construct. | public | AbstractCalendar(String id, boolean contributeDependencies) Construct.
Parameters: id - The component id Parameters: contributeDependencies - Whether to contribute the packaged dependencies. |
FORMAT_DATE | final public static DateFormat FORMAT_DATE(Code) | | Format to be used when configuring YUI calendar. Can be used when using
the "selected" property.
|
FORMAT_PAGEDATE | final public static DateFormat FORMAT_PAGEDATE(Code) | | For specifying which page (month/year) to show in the calendar, use this
format for the date. This is to be used together with the property
"pagedate"
|
AbstractCalendar | public AbstractCalendar(String id)(Code) | | Construct. Contributes packaged dependencies.
Parameters: id - The component id |
AbstractCalendar | public AbstractCalendar(String id, boolean contributeDependencies)(Code) | | Construct.
Parameters: id - The component id Parameters: contributeDependencies - Whether to contribute the packaged dependencies. Pass false incase you want to include the dependencies manually in your ownpage, e.g. when you want to keep them in your web applicationdir. To contribute yourself (in case you want to pass false),your page header should look like:<script type="text/javascript" src="yahoo.js"></script> <script type="text/javascript" src="dom.js"></script> <script type="text/javascript" src="event.js"></script> <script type="text/javascript" src="calendar.js"></script> <link rel="stylesheet" type="text/css" href="calendar.css" /> |
appendToInit | protected void appendToInit(String markupId, String javascriptId, String javascriptWidgetId, StringBuffer b)(Code) | | Append javascript to the initialization function for the YUI widget. Can
be used by subclasses to conveniently extend configuration without having
to write a separate contribution.
Parameters: markupId - The markup id of the calendar component Parameters: javascriptId - the non-name spaced javascript id of the widget Parameters: javascriptWidgetId - the name space id of the widget Parameters: b - the buffer to append the script to |
configureWidgetProperties | protected void configureWidgetProperties(Map widgetProperties)(Code) | | Gives overriding classes the option of adding (or even changing/
removing) configuration properties for the javascript widget. See the widget's
documentation for the available options. If you want to override/
remove properties, you obviously should call
super#setWidgetProperties(Properties) first.
Parameters: widgetProperties - the current widget properties |
|
|