com.atlassian.jira.plugin.renderer
Class JiraRendererModuleDescriptorImpl

java.lang.Object
  extended by com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
      extended by com.atlassian.jira.plugin.AbstractJiraModuleDescriptor<JiraRendererPlugin>
          extended by com.atlassian.jira.plugin.renderer.JiraRendererModuleDescriptorImpl
All Implemented Interfaces:
JiraResourcedModuleDescriptor<JiraRendererPlugin>, JiraRendererModuleDescriptor, com.atlassian.plugin.ModuleDescriptor<JiraRendererPlugin>, com.atlassian.plugin.Resourced, com.atlassian.plugin.StateAware

public class JiraRendererModuleDescriptorImpl
extends AbstractJiraModuleDescriptor<JiraRendererPlugin>
implements JiraRendererModuleDescriptor

Descriptor that defines a JiraRendererModule.


Field Summary
static String TEMPLATE_NAME_CSS
           
static String TEMPLATE_NAME_EDIT
           
static String TEMPLATE_NAME_JS
           
 
Fields inherited from class com.atlassian.jira.plugin.AbstractJiraModuleDescriptor
RESOURCE_TYPE_I18N
 
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
moduleClass, moduleClassName, plugin, resources, singleton
 
Constructor Summary
JiraRendererModuleDescriptorImpl(JiraAuthenticationContext authenticationContext, ApplicationProperties applicationProperties, com.atlassian.plugin.module.ModuleFactory moduleFactory)
           
 
Method Summary
 String getCss()
           
 String getEditVM(String value, String issueKey, String rendererType, String fieldId, String fieldName, Map params, boolean singleLine)
          This render an editable input field for the given values based on the edit template provided for the renderer.
 String getJavaScript(String contextPath)
           
 boolean isCSSTemplateExists()
           
 boolean isEditTemplateExists()
           
 boolean isJavaScriptTemplateExists()
           
 
Methods inherited from class com.atlassian.jira.plugin.AbstractJiraModuleDescriptor
assertResourceExists, createModule, createVelocityParams, disabled, enabled, getAuthenticationContext, getClassLoader, getDescription, getHtml, getHtml, getI18nBean, getModule, getName, getText, getText, init, isResourceExist
 
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, destroy, equals, getCompleteKey, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getParams, getPlugin, getPluginKey, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hashCode, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, provideValidationRules, satisfiesMinJavaVersion, setPlugin, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.plugin.JiraResourcedModuleDescriptor
getHtml, getHtml, getI18nBean
 
Methods inherited from interface com.atlassian.plugin.ModuleDescriptor
destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModule, getModuleClass, getName, getParams, getPlugin, getPluginKey, hashCode, init, isEnabledByDefault, isSystemModule, satisfiesMinJavaVersion
 
Methods inherited from interface com.atlassian.plugin.Resourced
getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation
 

Field Detail

TEMPLATE_NAME_CSS

public static final String TEMPLATE_NAME_CSS
See Also:
Constant Field Values

TEMPLATE_NAME_JS

public static final String TEMPLATE_NAME_JS
See Also:
Constant Field Values

TEMPLATE_NAME_EDIT

public static final String TEMPLATE_NAME_EDIT
See Also:
Constant Field Values
Constructor Detail

JiraRendererModuleDescriptorImpl

public JiraRendererModuleDescriptorImpl(JiraAuthenticationContext authenticationContext,
                                        ApplicationProperties applicationProperties,
                                        com.atlassian.plugin.module.ModuleFactory moduleFactory)
Method Detail

getCss

public String getCss()
Specified by:
getCss in interface JiraRendererModuleDescriptor

getJavaScript

public String getJavaScript(String contextPath)
Specified by:
getJavaScript in interface JiraRendererModuleDescriptor

getEditVM

public String getEditVM(String value,
                        String issueKey,
                        String rendererType,
                        String fieldId,
                        String fieldName,
                        Map params,
                        boolean singleLine)
This render an editable input field for the given values based on the edit template provided for the renderer.

Specified by:
getEditVM in interface JiraRendererModuleDescriptor
Returns:
the renderered html for the edit input

isCSSTemplateExists

public boolean isCSSTemplateExists()
Specified by:
isCSSTemplateExists in interface JiraRendererModuleDescriptor

isJavaScriptTemplateExists

public boolean isJavaScriptTemplateExists()
Specified by:
isJavaScriptTemplateExists in interface JiraRendererModuleDescriptor

isEditTemplateExists

public boolean isEditTemplateExists()
Specified by:
isEditTemplateExists in interface JiraRendererModuleDescriptor


Copyright © 2002-2012 Atlassian. All Rights Reserved.