|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlocal.tomas.faces.ui.EntitySelectListHandler<K,E>
K - key typeE - type of objects to select frompublic abstract class EntitySelectListHandler<K,E>
Abstract base class for select list handler. A select list handler is used to let the user select from a list of objects.
| Constructor Summary | |
|---|---|
EntitySelectListHandler()
|
|
| Method Summary | |
|---|---|
protected abstract List<E> |
getBaseList()
Get base list. |
K |
getFirstItemKey()
Get key of first item. |
String |
getFirstItemLabel()
Get label of first item. |
E |
getItem(K key)
Get item for key. |
protected abstract K |
getKey(E entity)
Get key for entity. |
protected abstract String |
getLabel(E entity)
Get label for entity. |
List<javax.faces.model.SelectItem> |
getSelectList()
Get select list used for display. |
void |
reset()
Reset the instance. |
void |
setFirstItemKey(K firstItemKey)
Set key of first item. |
void |
setFirstItemLabel(String firstItemLabel)
Set label of first item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntitySelectListHandler()
| Method Detail |
|---|
public K getFirstItemKey()
public void setFirstItemKey(K firstItemKey)
firstItemKey - key of first item to set.public String getFirstItemLabel()
public void setFirstItemLabel(String firstItemLabel)
firstItemLabel - The label to set.public E getItem(K key)
key - the key
public List<javax.faces.model.SelectItem> getSelectList()
public void reset()
protected abstract K getKey(E entity)
entity - The entity.
protected abstract String getLabel(E entity)
entity - The entity.
protected abstract List<E> getBaseList()
|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||