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, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitadd, 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, toArrayparallelStream, removeIf, streampublic OptionsImpl(List<Option> options, FieldConfig relatedField, OptionsManager optionsManager)
public List<Option> getRootOptions()
OptionsgetOptions(null)getRootOptions in interface Optionspublic Option getOptionForValue(String value, Long parentOptionId)
getOptionForValue in interface Optionspublic void removeOption(Option option)
removeOption in interface Optionspublic void sortOptionsByValue(Option parentOption)
sortOptionsByValue in interface Optionspublic void moveOptionToPosition(Map<Integer,Option> positionsToOptions)
moveOptionToPosition in interface Optionspublic void moveToStartSequence(Option option)
moveToStartSequence in interface Optionspublic void incrementSequence(Option option)
incrementSequence in interface Optionspublic void decrementSequence(Option option)
decrementSequence in interface Optionspublic void moveToLastSequence(Option option)
moveToLastSequence in interface Optionspublic void disableOption(Option option)
disableOption in interface Optionspublic void enableOption(Option option)
enableOption in interface Optionspublic Option getOptionById(Long optionId)
getOptionById in interface Optionspublic FieldConfig getRelatedFieldConfig()
getRelatedFieldConfig in interface OptionsCopyright © 2002-2018 Atlassian. All Rights Reserved.