|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.web.action.util.CalendarResourceIncluder
public class CalendarResourceIncluder
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.
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)
,
AbstractOrderableField.getVelocityParams(com.atlassian.jira.issue.Issue)
Constructor Summary | |
---|---|
CalendarResourceIncluder()
|
Method Summary | |
---|---|
boolean |
hasTranslation(Locale locale)
Checks if there is a translation for the pop-up calendar in the language of the given locale. |
void |
includeForLocale(Locale locale)
Include the javascript resources for the DHTML calendar. |
void |
includeIfTranslated(Locale locale)
Deprecated. use includeForLocale(java.util.Locale) instead. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CalendarResourceIncluder()
Method Detail |
---|
public boolean hasTranslation(Locale locale)
locale
- user's locale.
@Deprecated public void includeIfTranslated(Locale locale)
includeForLocale(java.util.Locale)
instead.
locale
- user's localepublic void includeForLocale(Locale locale)
locale
- The user's locale.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |