com.atlassian.jira.issue.customfields.option
Class OptionsImpl
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Option>
com.atlassian.jira.issue.customfields.option.OptionsImpl
- All Implemented Interfaces:
- Options, Serializable, Cloneable, Iterable<Option>, Collection<Option>, List<Option>, RandomAccess
public class OptionsImpl
- extends ArrayList<Option>
- implements Options
- See Also:
- Serialized Form
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
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 |
OptionsImpl
public OptionsImpl(List<Option> options,
FieldConfig relatedField,
CollectionReorderer<Option> reorderer,
OptionsManager optionsManager)
getRootOptions
public List<Option> getRootOptions()
- Description copied from interface:
Options
- This is the same as
getOptions(null)
- Specified by:
getRootOptions
in interface Options
getOptionForValue
public Option getOptionForValue(String value,
Long parentOptionId)
- Specified by:
getOptionForValue
in interface Options
setValue
public void setValue(Option option,
String value)
- Specified by:
setValue
in interface Options
addOption
public Option addOption(Option parent,
String value)
- Specified by:
addOption
in interface Options
removeOption
public void removeOption(Option option)
- Specified by:
removeOption
in interface Options
sortOptionsByValue
public void sortOptionsByValue(Option parentOption)
- Specified by:
sortOptionsByValue
in interface Options
moveOptionToPosition
public void moveOptionToPosition(Map<Integer,Option> positionsToOptions)
- Specified by:
moveOptionToPosition
in interface Options
moveToStartSequence
public void moveToStartSequence(Option option)
- Specified by:
moveToStartSequence
in interface Options
incrementSequence
public void incrementSequence(Option option)
- Specified by:
incrementSequence
in interface Options
decrementSequence
public void decrementSequence(Option option)
- Specified by:
decrementSequence
in interface Options
moveToLastSequence
public void moveToLastSequence(Option option)
- Specified by:
moveToLastSequence
in interface Options
disableOption
public void disableOption(Option option)
- Specified by:
disableOption
in interface Options
enableOption
public void enableOption(Option option)
- Specified by:
enableOption
in interface Options
getOptionById
public Option getOptionById(Long optionId)
- Specified by:
getOptionById
in interface Options
getRelatedFieldConfig
public FieldConfig getRelatedFieldConfig()
- Specified by:
getRelatedFieldConfig
in interface Options
Copyright © 2002-2012 Atlassian. All Rights Reserved.