com.atlassian.jira.issue.customfields.option
Class OptionsImpl

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Option>
              extended by 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

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
OptionsImpl(List<Option> options, FieldConfig relatedField, CollectionReorderer<Option> reorderer, OptionsManager optionsManager)
           
 
Method Summary
 Option addOption(Option parent, String value)
           
 void decrementSequence(Option option)
           
 void disableOption(Option option)
           
 void enableOption(Option option)
           
 Option getOptionById(Long optionId)
           
 Option getOptionForValue(String value, Long parentOptionId)
           
 FieldConfig getRelatedFieldConfig()
           
 List<Option> getRootOptions()
          This is the same as getOptions(null)
 void incrementSequence(Option option)
           
 void moveOptionToPosition(Map<Integer,Option> positionsToOptions)
           
 void moveToLastSequence(Option option)
           
 void moveToStartSequence(Option option)
           
 void removeOption(Option option)
           
 void setValue(Option option, String value)
           
 void sortOptionsByValue(Option parentOption)
           
 
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 class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

OptionsImpl

public OptionsImpl(List<Option> options,
                   FieldConfig relatedField,
                   CollectionReorderer<Option> reorderer,
                   OptionsManager optionsManager)
Method Detail

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.