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
              extended by com.atlassian.jira.issue.customfields.option.OptionsImpl
All Implemented Interfaces:
Options, Serializable, Cloneable, Iterable, Collection, List, RandomAccess

public class OptionsImpl
extends ArrayList
implements Options

See Also:
Serialized Form

Field Summary
(package private) static long serialVersionUID
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
OptionsImpl(List options, FieldConfig relatedField, CollectionReorderer reorderer, OptionsManager optionsManager)
           
 
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 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
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

OptionsImpl

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

getRootOptions

public List 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

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 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

getOptionById

public Option getOptionById(Long optionId)
Specified by:
getOptionById in interface Options

getRelatedFieldConfig

public FieldConfig getRelatedFieldConfig()
Specified by:
getRelatedFieldConfig in interface Options


Copyright © 2002-2007 Atlassian. All Rights Reserved.