Interface IDatasource<TUIView>
- Namespace
- GroupeIsa.Neos.Designer.UIAbstractions
- Assembly
- GroupeIsa.Neos.Designer.UIAbstractions.dll
Provides the functionalities of a data source.
public interface IDatasource<TUIView> : IList<TUIView>, ICollection<TUIView>, IEnumerable<TUIView>, IEnumerable where TUIView : class, IUIView
Type Parameters
TUIView
Type of uiView.
- Inherited Members
Properties
DeletedItems
Gets the deleted items not yet saved.
IList<TUIView> DeletedItems { get; }
Property Value
- IList<TUIView>
IsLoaded
Gets a value indicating whether the datasource has been loading.
bool IsLoaded { get; }
Property Value
Remarks
IsLoaded can be false only for datasource related to a not embedded collection.
this[int]
Gets or sets the element at the specified index.
TUIView this[int index] { get; set; }
Parameters
index
intThe zero-based index of the element to get or set.
Property Value
- TUIView
The element at the specified index.
Methods
AcceptChanges()
Accepts all changes. The deleted items are definitely deleted and cannot be restored. The changes made on the items are accepted.
void AcceptChanges()
Clear()
Removes all items in the datasource.
void Clear()
RejectChanges()
Rejects all changes. The deleted items are restored. The added items are removed. The changes made on the items are rejected.
void RejectChanges()
RemoveAll(Predicate<TUIView>)
Removes all the elements that match the conditions defined by the specified predicate.
int RemoveAll(Predicate<TUIView> predicate)
Parameters
predicate
Predicate<TUIView>The predicate delegate that defines the conditions of the elements to remove.
Returns
- int
The number of elements removed from the data source.