context node binding implementation detail

61 阅读1分钟

Created by Jerry Wang, last modified on Jun 06, 2015

 

clipboard1

 

 

 

clipboard2

 

 

if mode is "share collection wrapper", both context node will use component context node's collection wrapper. 

If mode is "share collection wrapper's collection",  

clipboard3

 

The core of the attach method is, the view context node's collection wrapper's collection reference points to the target's one.

clipboard4

 

So when the source node ( view context node )'s collection wrapper is filled with new bol entity:

clipboard5

 

clipboard6

 

clipboard7

 

clipboard8

 

clipboard9

 

clipboard10

 

clipboard11