|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type of the objects that can be added to
a ListOption
.public interface ListOptionSelector<T>
Instances of this class is responsible for offering a
list of objects that can be added to a ListOption
.
It's also responsible for generating IDs and creating
string representations of the objects.
Method Summary | |
---|---|
java.lang.String |
getId(T t)
Gets the id that should be used to identify an object in a ListOption . |
T |
getObject(java.lang.String id)
Gets an object using the specific id. |
java.util.List<T> |
getOptions()
Gets all available options. |
java.lang.String |
toString(T t)
Returns a human readable presentation of the given object. |
Method Detail |
---|
java.util.List<T> getOptions()
ListOption
.T getObject(java.lang.String id)
id
- The string identifying the object.
java.lang.String getId(T t)
ListOption
.
t
- The id.
java.lang.String toString(T t)
t
- The object to create a string representation for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |