com.atlassian.jira.issue.customfields.config.item
Class DefaultValueConfigItem

java.lang.Object
  extended by com.atlassian.jira.issue.customfields.config.item.DefaultValueConfigItem
All Implemented Interfaces:
FieldConfigItemType

public final class DefaultValueConfigItem
extends Object
implements FieldConfigItemType

A FieldConfigItemType that represents a default value for the field.


Constructor Summary
DefaultValueConfigItem()
           
 
Method Summary
 String getBaseEditUrl()
          Creates the base of the URL that links to the configuration screen for this type of configuration.
 Object getConfigurationObject(Issue issue, FieldConfig config)
          Returns an Object that holds the the configuration.
 String getDisplayName()
          The user interface name for this dimension of configuration.
 String getDisplayNameKey()
          The i18n key for the user interface name for this dimension of configuration.
 String getObjectKey()
          Returns a key unique among FieldConfigItemType implementations for the configuration value so it can be retrieved from a key-value pair store.
 String getViewHtml(FieldConfig config, FieldLayoutItem fieldLayoutItem)
          Renders a view of the current configuration as html.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultValueConfigItem

public DefaultValueConfigItem()
Method Detail

getDisplayName

public String getDisplayName()
Description copied from interface: FieldConfigItemType
The user interface name for this dimension of configuration.

Specified by:
getDisplayName in interface FieldConfigItemType
Returns:
the name.

getDisplayNameKey

public String getDisplayNameKey()
Description copied from interface: FieldConfigItemType
The i18n key for the user interface name for this dimension of configuration.

Specified by:
getDisplayNameKey in interface FieldConfigItemType
Returns:
the i18n key.

getViewHtml

public String getViewHtml(FieldConfig config,
                          FieldLayoutItem fieldLayoutItem)
Description copied from interface: FieldConfigItemType
Renders a view of the current configuration as html.

Specified by:
getViewHtml in interface FieldConfigItemType
Returns:
the view html.

getObjectKey

public String getObjectKey()
Description copied from interface: FieldConfigItemType
Returns a key unique among FieldConfigItemType implementations for the configuration value so it can be retrieved from a key-value pair store.

Specified by:
getObjectKey in interface FieldConfigItemType
Returns:
the configuration key.

getConfigurationObject

public Object getConfigurationObject(Issue issue,
                                     FieldConfig config)
Description copied from interface: FieldConfigItemType
Returns an Object that holds the the configuration.

Specified by:
getConfigurationObject in interface FieldConfigItemType
Returns:
the configuration value.

getBaseEditUrl

public String getBaseEditUrl()
Description copied from interface: FieldConfigItemType
Creates the base of the URL that links to the configuration screen for this type of configuration.

Specified by:
getBaseEditUrl in interface FieldConfigItemType
Returns:
the URL.


Copyright © 2002-2013 Atlassian. All Rights Reserved.