com.pyxis.greenhopper.jira.fields
Class LabelField
java.lang.Object
com.pyxis.greenhopper.jira.fields.AbstractIssueField
com.pyxis.greenhopper.jira.fields.AbstractTextField
com.pyxis.greenhopper.jira.fields.LabelField
- All Implemented Interfaces:
- IssueField, IssueTextField
public class LabelField
- extends AbstractTextField
This class handles both, the system label field as well as the custom label field.
Field Summary |
static java.lang.String |
COMMA
|
static java.lang.String |
SPACE
|
Fields inherited from class com.pyxis.greenhopper.jira.fields.AbstractIssueField |
GREENHOPPER_PLUGIN, GROUP_PICKER, id, idLong, label, log, MULTI_GROUP_PICKER, MULTI_SELECT, MULTI_USER_PICKER, NUMBER, SELECT, TEXT, TEXT_AREA, TEXT_FIELD, USER_PICKER |
Constructor Summary |
LabelField()
|
LabelField(com.atlassian.jira.issue.fields.CustomField customField)
|
Methods inherited from class com.pyxis.greenhopper.jira.fields.AbstractIssueField |
equals, getCssType, getId, getIdAsLong, getJsonDisplayTemplate, getLabel, getTransitionTemplate, getUpdateTemplate, hashCode, isClickable, isCorner, validate |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
SPACE
public static final java.lang.String SPACE
- See Also:
- Constant Field Values
COMMA
public static final java.lang.String COMMA
- See Also:
- Constant Field Values
LabelField
public LabelField(com.atlassian.jira.issue.fields.CustomField customField)
LabelField
public LabelField()
getCustomField
public com.atlassian.jira.issue.fields.CustomField getCustomField()
getEditTemplate
public java.lang.String getEditTemplate()
- Specified by:
getEditTemplate
in interface IssueField
- Overrides:
getEditTemplate
in class AbstractTextField
getDisplayTemplate
public java.lang.String getDisplayTemplate()
- Specified by:
getDisplayTemplate
in interface IssueField
- Overrides:
getDisplayTemplate
in class AbstractTextField
getCreateTemplate
public java.lang.String getCreateTemplate()
- Specified by:
getCreateTemplate
in interface IssueField
- Overrides:
getCreateTemplate
in class AbstractTextField
isCustomField
public boolean isCustomField()
- Specified by:
isCustomField
in interface IssueField
- Overrides:
isCustomField
in class AbstractIssueField
getDefaultValue
public java.lang.Object getDefaultValue(BoardIssue boardIssue)
getDisplayValue
public java.lang.String getDisplayValue(BoardIssue boardIssue)
getValue
public java.lang.Object getValue(BoardIssue boardIssue)
getLink
public java.lang.String getLink(BoardIssue boardIssue,
java.lang.String value)
- Specified by:
getLink
in interface IssueField
- Overrides:
getLink
in class AbstractIssueField
updateValue
public void updateValue(BoardIssue boardIssue,
java.lang.String newValue)
throws GreenHopperException,
java.lang.Exception
- Throws:
GreenHopperException
java.lang.Exception
asSetofLabels
public static java.util.Set<com.atlassian.jira.issue.label.Label> asSetofLabels(java.lang.String splitableValues,
java.lang.String del)
asSet
public static java.util.Set<java.lang.String> asSet(java.lang.String splitableValues)
isNumeric
public boolean isNumeric()
getDefaultDisplayValue
public java.lang.String getDefaultDisplayValue(BoardIssue boardIssue)
getTooltipValue
public java.lang.String getTooltipValue(BoardIssue boardIssue)
canEdit
public boolean canEdit(BoardIssue boardIssue)
doValidate
protected void doValidate(BoardIssue boardIssue,
java.lang.String newValue)
throws GreenHopperException
- Specified by:
doValidate
in class AbstractIssueField
- Throws:
GreenHopperException
Copyright © 2007-2011 Atlassian. All Rights Reserved.