Class AbstractUiListModifiable<D extends DtObject>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<UiObject<D>>
io.vertigo.vega.engines.webservice.json.AbstractUiListModifiable<D>
- Type Parameters:
D- Type d'objet
- All Implemented Interfaces:
UiList<D>,Serializable,Iterable<UiObject<D>>,Collection<UiObject<D>>,List<UiObject<D>>
- Direct Known Subclasses:
UiListModifiable
public abstract class AbstractUiListModifiable<D extends DtObject>
extends AbstractList<UiObject<D>>
implements UiList<D>, Serializable
Version modifiable des UiList.
- Author:
- npiedeloup
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractUiListModifiable(DtList<D> dtList, String inputKey) Constructor.AbstractUiListModifiable(DtList<D> dtList, String inputKey, Consumer<U> postInit) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleancheckFormat(UiMessageStack uiMessageStack) Vérifie les UiObjects de la liste et remplis la pile d'erreur.createUiObject(D dto) booleanget(int row) inthashCode()intGet indexOf element : support UiObject and DtObject.iterator()mergeAndCheckInput(List<DtObjectValidator<D>> validators, UiMessageStack uiMessageStack) Vérifie les UiObjects de la liste, met à jour les objets métiers et retourne la liste.remove(int index) booleanintsize()protected StringtoContextKey(String locInputKey, int index) Methods inherited from class java.util.AbstractList
add, addAll, clear, lastIndexOf, listIterator, listIterator, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods 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, addAll, addAll, clear, contains, containsAll, isEmpty, lastIndexOf, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
-
Constructor Details
-
AbstractUiListModifiable
Constructor.- Parameters:
dtList- Inner DtList
-
AbstractUiListModifiable
-
-
Method Details
-
getObjectType
- Specified by:
getObjectTypein interfaceUiList<D extends DtObject>- Returns:
- the object type of the list
-
createUiObject
-
getDtDefinition
- Specified by:
getDtDefinitionin interfaceUiList<D extends DtObject>- Returns:
- DtDefinition de l'objet métier
-
toContextKey
-
remove
- Parameters:
dto- Element to removed- Returns:
- If element was removed
-
remove
-
add
- Parameters:
dto- Element to add- Returns:
- true (as specified by Collection.add)
-
add
-
getDtListDelta
- Returns:
- DtListDelta
-
get
-
indexOf
Get indexOf element : support UiObject and DtObject. UiObject is always build over a DtObject. -
size
public int size() -
checkFormat
Vérifie les UiObjects de la liste et remplis la pile d'erreur.- Specified by:
checkFormatin interfaceUiList<D extends DtObject>- Parameters:
uiMessageStack- Pile des messages qui sera mise à jour- Returns:
- if the object is valid (no format errors) if it's not valid you must not call mergeAndCheckInput
-
mergeAndCheckInput
public DtList<D> mergeAndCheckInput(List<DtObjectValidator<D>> validators, UiMessageStack uiMessageStack) Vérifie les UiObjects de la liste, met à jour les objets métiers et retourne la liste.- Specified by:
mergeAndCheckInputin interfaceUiList<D extends DtObject>uiMessageStack- Pile des messages qui sera mise à jour- Returns:
- Liste métier valid�e.
-
iterator
-
equals
-
hashCode
public int hashCode()
-