public class OptionsImpl extends ArrayList<Option> implements Options
modCount
Constructor and Description |
---|
OptionsImpl(List<Option> options,
FieldConfig relatedField,
OptionsManager optionsManager) |
Modifier and Type | Method and Description |
---|---|
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) |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
public OptionsImpl(List<Option> options, FieldConfig relatedField, OptionsManager optionsManager)
public List<Option> getRootOptions()
Options
getOptions(null)
getRootOptions
in interface Options
public Option getOptionForValue(String value, Long parentOptionId)
getOptionForValue
in interface Options
public void removeOption(Option option)
removeOption
in interface Options
public void sortOptionsByValue(Option parentOption)
sortOptionsByValue
in interface Options
public void moveOptionToPosition(Map<Integer,Option> positionsToOptions)
moveOptionToPosition
in interface Options
public void moveToStartSequence(Option option)
moveToStartSequence
in interface Options
public void incrementSequence(Option option)
incrementSequence
in interface Options
public void decrementSequence(Option option)
decrementSequence
in interface Options
public void moveToLastSequence(Option option)
moveToLastSequence
in interface Options
public void disableOption(Option option)
disableOption
in interface Options
public void enableOption(Option option)
enableOption
in interface Options
public Option getOptionById(Long optionId)
getOptionById
in interface Options
public FieldConfig getRelatedFieldConfig()
getRelatedFieldConfig
in interface Options
Copyright © 2002-2021 Atlassian. All Rights Reserved.