com.atlassian.jira.issue.customfields.option
Interface Options

All Superinterfaces:
Collection, List
All Known Implementing Classes:
GenericImmutableOptions, OptionsImpl

public interface Options
extends List


Method Summary
 Option addOption(Option parent, String value)
           
 void decrementSequence(Option option)
           
 Option getOptionById(Long optionId)
           
 Option getOptionForValue(String value, Long parentOptionId)
           
 FieldConfig getRelatedFieldConfig()
           
 List getRootOptions()
          This is the same as getOptions(null)
 void incrementSequence(Option option)
           
 void moveOptionToPosition(Map positionsToOptions)
           
 void moveToLastSequence(Option option)
           
 void moveToStartSequence(Option option)
           
 void removeOption(Option option)
           
 void sortOptionsByValue(Option parentOption)
           
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Method Detail

getRootOptions

public List getRootOptions()
This is the same as getOptions(null)


getOptionById

public Option getOptionById(Long optionId)

getOptionForValue

public Option getOptionForValue(String value,
                                Long parentOptionId)

addOption

public Option addOption(Option parent,
                        String value)

removeOption

public void removeOption(Option option)

moveToStartSequence

public void moveToStartSequence(Option option)

incrementSequence

public void incrementSequence(Option option)

decrementSequence

public void decrementSequence(Option option)

moveToLastSequence

public void moveToLastSequence(Option option)

getRelatedFieldConfig

public FieldConfig getRelatedFieldConfig()

sortOptionsByValue

public void sortOptionsByValue(Option parentOption)

moveOptionToPosition

public void moveOptionToPosition(Map positionsToOptions)


Copyright © 2002-2006 Atlassian. All Rights Reserved.