Class IUIViewExtensions
- Namespace
- GroupeIsa.Neos.Designer.UIAbstractions
- Assembly
- GroupeIsa.Neos.Designer.UIAbstractions.dll
Represents an extension of IUIView.
public static class IUIViewExtensions
- Inheritance
-
IUIViewExtensions
- Inherited Members
Methods
AcceptChanges(IUIView)
Accepts all changes. Current changes are accepted. Original values can no longer be restored. A new item is no longer new. A virtual item is no longer virtual.
public static void AcceptChanges(this IUIView uiView)
Parameters
uiView
IUIViewItem.
Clone(IUIView)
Clones this instance.
public static IUIView Clone(this IUIView uiView)
Parameters
uiView
IUIViewUI view.
Returns
- IUIView
A cloned instance.
GetInvalidValue(IUIView, string)
Get the invalid value of a property.
public static string? GetInvalidValue(this IUIView uiView, string propertyName)
Parameters
Returns
- string
Invalid value of the property.
GetKeyValues(IUIView)
Gets the values of the key of the item.
public static object[] GetKeyValues(this IUIView uiView)
Parameters
uiView
IUIViewItem.
Returns
- object[]
The values of the key of the item.
GetOriginalValue(IUIView, string)
Get the original value of property name.
public static object GetOriginalValue(this IUIView uiView, string propertyName)
Parameters
Returns
- object
The original value.
GetPersistenceError(IUIView)
Gets the API error if the item persistence item has failed.
public static IApiError? GetPersistenceError(this IUIView uiView)
Parameters
uiView
IUIViewItem.
Returns
- IApiError
API Error.
GetValidationMessages(IUIView)
Gets the validation messages (Errors,Warnings,Informations).
public static IUIValidationMessage[] GetValidationMessages(this IUIView uiView)
Parameters
uiView
IUIViewItem.
Returns
- IUIValidationMessage[]
Validation messages (Errors,Warnings,Informations).
GetValue<T>(IUIView, string)
Get the value of a property.
public static T GetValue<T>(this IUIView uiView, string propertyName)
Parameters
Returns
- T
Value of the property.
Type Parameters
T
Value type.
HasChanges(IUIView)
Gets the value indicating whether the item has changes.
public static bool HasChanges(this IUIView uiView)
Parameters
uiView
IUIViewItem.
Returns
- bool
Value indicating whether the item has changes.
Remarks
The update of this indicator takes into account the modification (addition/deletion) of the embedded collections in the case of a master/detail model.
HasOriginalValue(IUIView, string)
Gets the value indicating whether the item has an original value.
public static bool HasOriginalValue(this IUIView uiView, string propertyName)
Parameters
Returns
- bool
True if the original value has a value.
IsNew(IUIView)
Gets the value indicating whether the item is new.
public static bool IsNew(this IUIView uiView)
Parameters
uiView
IUIViewItem.
Returns
- bool
Value indicating whether the item is new.
IsVirtual(IUIView)
Gets the value indicating whether the item is virtual.
public static bool IsVirtual(this IUIView uiView)
Parameters
uiView
IUIViewItem.
Returns
- bool
Value indicating whether the item is virtual.
MarkAsNew(IUIView)
Marks item as new.
public static void MarkAsNew(this IUIView uiView)
Parameters
uiView
IUIViewItems.
MarkAsVirtual(IUIView)
Marks item as virtual. Clears all orginalValues to set item has unchanged. If no changes after mark as virtual then the item was ignored by validation and the saving.
public static void MarkAsVirtual(this IUIView uiView)
Parameters
uiView
IUIViewItem.
RejectChanges(IUIView)
Rejects all changes. Original values are restored.
public static void RejectChanges(this IUIView uiView)
Parameters
uiView
IUIViewItem.
ResumeChangeTracking(IUIView)
Resume the change tracking.
public static void ResumeChangeTracking(this IUIView uiView)
Parameters
uiView
IUIViewItem.
SuspendChangeTracking(IUIView)
Suspends the change tracking.
public static void SuspendChangeTracking(this IUIView uiView)
Parameters
uiView
IUIViewItem.
ToApiRequestData(IUIView)
Converts the item to a serializable object.
public static IUIView ToApiRequestData(this IUIView uiView)
Parameters
uiView
IUIViewUI view.
Returns
- IUIView
A json string.