Package io.vertigo.ui.core
Class UiListUnmodifiable<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.UiListUnmodifiable<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 UiListUnmodifiable<O extends io.vertigo.datamodel.structure.model.DtObject>
extends AbstractUiListUnmodifiable<O>
Wrapper d'affichage des listes d'objets métier.
- Author:
- npiedeloup
- See Also:
-
Field Summary
Fields inherited from class io.vertigo.ui.core.AbstractUiListUnmodifiable
entityStoreManager, NB_MAX_ELEMENTS, transactionManagerFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionUiListUnmodifiable(io.vertigo.datamodel.structure.model.DtList<O> dtList, Optional<io.vertigo.datamodel.structure.definitions.DtFieldName<O>> keyFieldNameOpt) Constructeur. -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckFormat(UiMessageStack uiMessageStack) Vérifie les UiObjects de la liste et remplis la pile d'erreur.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>Récupère la liste des elements.toString()Methods inherited from class io.vertigo.ui.core.AbstractUiListUnmodifiable
clearUiObjectBuffer, get, getById, getDtDefinition, getIdFieldName, getObjectType, getUiObjectBuffer, indexOf, initUiObjectByIdIndex, initUiObjectByKeyIndex, listForClient, obtainUiObjectByIdMap, sizeMethods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods 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
-
Constructor Details
-
Method Details
-
obtainDtList
Récupère la liste des elements. Peut-être appelé souvant : doit assurer un cache local (transient au besoin) si chargement.- Specified by:
obtainDtListin 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
Vérifie les UiObjects de la liste et remplis la pile d'erreur.- Parameters:
uiMessageStack- Pile des messages qui sera mise à jour
-
toString
- Overrides:
toStringin classAbstractCollection<UiObject<O extends io.vertigo.datamodel.structure.model.DtObject>>
-