silverorange Code


Swat.SwatCalendar
/Swat/SwatCalendar.php at line 20

Class SwatCalendar

SwatObject
└─SwatUIObject
└─SwatWidget
└─SwatControl
└─SwatCalendar

public class SwatCalendar
extends SwatControl

Pop-up calendar widget

This widget uses JavaScript to display a popup date selector. It is used inside the SwatDateEntry widget but can be used by itself as well.

Copyright:
2004-2006 silverorange
License:
http://www.gnu.org/copyleft/lesser.html LGPL License 2.1

Field Summary
Date

$valid_range_end

End date of the valid range (exclusive).

Date

$valid_range_start

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

getCSSClassNames()

Gets the array of CSS classes that are applied to this calendar widget.

protected string

getInlineJavaScript()

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

Field Detail

/Swat/SwatCalendar.php at line 36

valid_range_end

public Date $valid_range_end

End date of the valid range (exclusive).


/Swat/SwatCalendar.php at line 29

valid_range_start

public Date $valid_range_start

Start date of the valid range (inclusive).


Constructor Detail

/Swat/SwatCalendar.php at line 48

SwatCalendar

public SwatCalendar(string id)

Creates a new calendar

Parameters:
id - a non-visible unique id for this widget.
See Also:
SwatWidget::__construct()

Method Detail

/Swat/SwatCalendar.php at line 75

display

public void display()

Displays this calendar widget


/Swat/SwatCalendar.php at line 117

getCSSClassNames

protected array getCSSClassNames()

Gets the array of CSS classes that are applied to this calendar widget

Returns:
the array of CSS classes that are applied to this calendar widget.
See Also:
SwatUIObject::getCSSClassString()

/Swat/SwatCalendar.php at line 132

getInlineJavaScript

protected string getInlineJavaScript()

Gets inline calendar JavaScript

Inline JavaScript is the majority of the calendar code.

Returns:
inline JavaScript used by this user-interface object.

/Swat/SwatCalendar.php at line 176

getInlineJavaScriptTranslations

protected string getInlineJavaScriptTranslations()

Gets translatable string resources for the JavaScript object for this widget

Returns:
translatable JavaScript string resources for this widget.

silverorange Code