com.atlassian.jira.web.action.util
Class CalendarResourceIncluder
java.lang.Object
com.atlassian.jira.web.action.util.CalendarResourceIncluder
public class CalendarResourceIncluder
- extends Object
This class exists to get around problems with calling out to other methods in velocity.
For the date pickers, we need to include the javascript for the calendar. However, many of the
date pickers are generated in velocity, where it is not easy to call out to WebResourceManager (see
macros.vm
).
This class gives you a nice way of including resources.
- See Also:
CustomFieldUtils.buildParams(com.atlassian.jira.issue.fields.CustomField,com.atlassian.jira.issue.fields.config.FieldConfig,com.atlassian.jira.issue.Issue,com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem,Object,java.util.Map,webwork.action.Action,java.util.Map)
,
GenericDateSearcher.getVelocityParams(com.atlassian.jira.issue.search.SearchContext,com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem,com.atlassian.jira.issue.transport.FieldValuesHolder,java.util.Map,webwork.action.Action)
,
AbstractOrderableField.getVelocityParams(com.atlassian.jira.issue.Issue)
Method Summary |
boolean |
hasTranslation(Locale locale)
Checks if there is a translation for pop-up calendar for language of the given locale. |
void |
includeIfTranslated(Locale locale)
Call this method when you want to include the "jira.webresources:calendar" resource (probably because you
are about to use the DHTML calendar) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CalendarResourceIncluder
public CalendarResourceIncluder()
hasTranslation
public boolean hasTranslation(Locale locale)
- Checks if there is a translation for pop-up calendar for language of the given locale.
- Parameters:
locale
- user's locale
- Returns:
- true if calendar is translated, false otherwise
- Since:
- v3.12
includeIfTranslated
public void includeIfTranslated(Locale locale)
- Call this method when you want to include the "jira.webresources:calendar" resource (probably because you
are about to use the DHTML calendar)
- Parameters:
locale
- user's locale- Since:
- v3.12
Copyright © 2002-2007 Atlassian. All Rights Reserved.