|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.chainedoptions.support.FirstItemStrategy
public class FirstItemStrategy
A ChainedOptionStrategy that adds no extra items and returns the first in the option list as default value.
Constructor Summary | |
---|---|
FirstItemStrategy()
|
Method Summary | |
---|---|
java.util.List |
adjustAndSort(java.util.List options,
java.lang.Object context)
Just sort the options for this implementation. |
java.lang.String |
getDefaultValue(java.util.List options,
java.lang.Object context)
Return the value of the first item as default value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FirstItemStrategy()
Method Detail |
---|
public java.util.List adjustAndSort(java.util.List options, java.lang.Object context)
adjustAndSort
in interface ChainedOptionStrategy
options
- the options to sort.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 |