SwatObject
└─SwatUIObject
└─SwatWidget
└─SwatControl
└─SwatCalendar
public class SwatCalendar
extends SwatControl
| Field Summary | |
|---|---|
| Date | End date of the valid range (exclusive). |
| Date | Start date of the valid range (inclusive). |
| Constructor Summary | |
|---|---|
SwatCalendar(string id) Creates a new calendar. |
|
| Method Summary | |
|---|---|
| void | display() Displays this calendar widget. |
| protected array | Gets the array of CSS classes that are applied to this calendar widget. |
| protected string | Gets inline calendar JavaScript. |
| protected string | getInlineJavaScriptTranslations() Gets translatable string resources for the JavaScript object for this widget. |
| Methods inherited from Swat.SwatControl | |
|---|---|
| addMessage, getNote, printWidgetTree | |
| Methods inherited from Swat.SwatWidget | |
|---|---|
| addCompositeWidget, addMessage, confirmCompositeWidgets, copy, createCompositeWidgets, display, displayHtmlHeadEntries, getCSSClassNames, getCompositeWidget, getCompositeWidgets, getFocusableHtmlId, getHtmlHeadEntrySet, getMessages, hasMessage, init, isDisplayed, isInitialized, isProcessed, isSensitive, printWidgetTree, process, replaceWithContainer | |
| Methods inherited from Swat.SwatUIObject | |
|---|---|
| addComment, addJavaScript, addStyleSheet, addTangoAttribution, copy, getCSSClassNames, getCSSClassString, getFirstAncestor, getHtmlHeadEntrySet, getInlineJavaScript, getUniqueId, isVisible | |
public Date $valid_range_end
End date of the valid range (exclusive).
public Date $valid_range_start
Start date of the valid range (inclusive).
public SwatCalendar(string id)
Creates a new calendar
id - a non-visible unique id for this widget.public void display()
Displays this calendar widget
protected array getCSSClassNames()
Gets the array of CSS classes that are applied to this calendar widget
protected string getInlineJavaScript()
Gets inline calendar JavaScript
Inline JavaScript is the majority of the calendar code.
protected string getInlineJavaScriptTranslations()
Gets translatable string resources for the JavaScript object for this widget
Pop-up calendar widget
This widget uses JavaScript to display a popup date selector. It is used inside the
SwatDateEntrywidget but can be used by itself as well.