The class provides a convenience method for updateing it's children data UpdateChildren(Object[], Object[]). This method should be called from within the View.update(Object[], Object[]) methods in the subclasses.
The following tables list the members exposed by the ViewSupport type.
Public Methods
Name | Description | |
---|---|---|
![]() | AddView |
Add a view to the viewable object.
|
![]() | AttachesTo |
Return null if the view will accept being attached to a particular object.
|
![]() ![]() | DumpChildViews |
Convenience method for logging the child views of a Viewable. Only logs if
debug is enabled.This is a recursive method.
|
![]() ![]() | DumpUpdateParams |
Convenience method for logging the parameters passed to the update method.
Only logs if debug is enabled.
|
![]() | Equals | (Inherited from Object.) |
![]() ![]() | FindDescendent |
Find the descendent view in the view tree under the parent view returning
the list of view nodesbetween the parent view and the descendent view. Returns
null if the descendent view is not found.Returns an empty list if the descendent
view is a child view of the parent view.
|
![]() | GetEnumerator |
Returns an enumerator that iterates through the collection.
|
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | GetViews |
Returns all added views.
|
![]() | RemoveView |
Remove a view.
|
![]() ![]() | ShallowCopyView |
Copies the view by copying the bean properties of the view but does not
copy the views children,does not copy or set the property for the parent view.
|
![]() | ToString | (Inherited from Object.) |
![]() | Update |
Notify that data has been added or removed from the Viewable parent.
The last object in the newData array of objects would be the newest object added to the parent view.
The first object of the oldData array of objects would be the oldest object removed from the parent view.
If the call to update contains new (inserted) data, then the first argument will be a non-empty list and the second will be empty. Similarly, if the call is a notification of deleted data, then the first argument will be empty and the second will be non-empty. Either the newData or oldData will be non-null. This method won't be called with both arguments being null, but either one could be null. The same is true for zero-length arrays. Either newData or oldData will be non-empty. If both are non-empty, then the update is a modification notification. When update() is called on a view by the parent object, the data in newData will be in the collection of the parent, and its data structures will be arranged to reflect that. The data in oldData will not be in the parent's data structures, and any access to the parent will indicate that that data is no longer there. |
![]() | UpdateChildren | Overloaded. |
Protected Methods
Name | Description | |
---|---|---|
![]() | Finalize | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
Protected Fields
Name | Description | |
---|---|---|
![]() | parent |
Parent viewable to this view - directly accessible by subclasses.
|
Protected Constructors
Name | Description | |
---|---|---|
![]() | ViewSupportNew |
Constructor
|
Public Properties
Name | Description | |
---|---|---|
![]() | EventType |
Provides metadata information about the type of object the event collection contains.
|
![]() | HasViews |
Test is there are any views to the Viewable.
|
![]() | Id |
Gets the unique id for the view
|
![]() | Parent |
Gets or sets the View's parent Viewable.
|
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() | IEnumerable.System.Collections.IEnumerable.GetEnumerator |
Returns an enumerator that iterates through a collection.
|