Package io.vertigo.ui.core
Class ClusterUiList<O extends io.vertigo.datamodel.structure.model.DtObject>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<UiObject<O>>
-
- io.vertigo.ui.core.AbstractUiListUnmodifiable<O>
-
- io.vertigo.ui.core.ClusterUiList<O>
-
- Type Parameters:
O
- the type of entity
- All Implemented Interfaces:
UiList<O>
,Serializable
,Iterable<UiObject<O>>
,Collection<UiObject<O>>
,List<UiObject<O>>
public final class ClusterUiList<O extends io.vertigo.datamodel.structure.model.DtObject> extends AbstractUiListUnmodifiable<O>
Wrapper d'affichage des listes d'objets métier.- Author:
- npiedeloup
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class io.vertigo.ui.core.AbstractUiListUnmodifiable
entityStoreManager, NB_MAX_ELEMENTS, transactionManager
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkFormat(UiMessageStack uiMessageStack)
Vérifie les UiObjects de la liste et remplis la pile d'erreur.String
getCode()
String
getLabel()
String
getListType()
Long
getTotalCount()
io.vertigo.datamodel.structure.model.DtList<O>
mergeAndCheckInput(List<DtObjectValidator<O>> validators, UiMessageStack uiMessageStack)
Vérifie les UiObjects de la liste, met à jour les objets métiers et retourne la liste.protected io.vertigo.datamodel.structure.model.DtList<O>
obtainDtList()
Récupère la liste des elements.String
toString()
-
Methods inherited from class io.vertigo.ui.core.AbstractUiListUnmodifiable
clearUiObjectBuffer, get, getById, getDtDefinition, getIdFieldName, getObjectType, getUiObjectBuffer, indexOf, initUiObjectByIdIndex, initUiObjectByKeyIndex, listForClient, obtainUiObjectByIdMap, size
-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
-
-
-
-
Method Detail
-
obtainDtList
protected io.vertigo.datamodel.structure.model.DtList<O> obtainDtList()
Récupère la liste des elements. Peut-être appelé souvant : doit assurer un cache local (transient au besoin) si chargement.- Specified by:
obtainDtList
in classAbstractUiListUnmodifiable<O extends io.vertigo.datamodel.structure.model.DtObject>
- Returns:
- Liste des éléments
-
mergeAndCheckInput
public io.vertigo.datamodel.structure.model.DtList<O> mergeAndCheckInput(List<DtObjectValidator<O>> validators, UiMessageStack uiMessageStack)
Vérifie les UiObjects de la liste, met à jour les objets métiers et retourne la liste.- Parameters:
validators
- Validateur à utilisé, peut-être spécifique à l'objet.uiMessageStack
- Pile des messages qui sera mise à jour- Returns:
- Liste métier validée.
-
checkFormat
public boolean checkFormat(UiMessageStack uiMessageStack)
Vérifie les UiObjects de la liste et remplis la pile d'erreur.- Parameters:
uiMessageStack
- Pile des messages qui sera mise à jour
-
toString
public String toString()
- Overrides:
toString
in classAbstractCollection<UiObject<O extends io.vertigo.datamodel.structure.model.DtObject>>
-
getCode
public String getCode()
-
getLabel
public String getLabel()
-
getListType
public String getListType()
-
getTotalCount
public Long getTotalCount()
-
-