|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.chainedoptions.support.NoSortStrategy
public class NoSortStrategy
Strategy that does not perform any sorting and returns the first item in the list as default value.
Constructor Summary | |
---|---|
NoSortStrategy()
|
Method Summary | |
---|---|
java.util.List |
adjustAndSort(java.util.List options,
java.lang.Object context)
Do nothing, just return the supplied list. |
java.lang.String |
getDefaultValue(java.util.List options,
java.lang.Object context)
Returns the value of the first item in the list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoSortStrategy()
Method Detail |
---|
public java.util.List adjustAndSort(java.util.List options, java.lang.Object context)
adjustAndSort
in interface ChainedOptionStrategy
options
- the list to return.context
- ignored for this implementation.
LabelValueBean
public java.lang.String getDefaultValue(java.util.List options, java.lang.Object context)
getDefaultValue
in interface ChainedOptionStrategy
options
- the list of options.context
- ignored for this implementation.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |