Changes between Version 5 and Version 6 of PAGE_ELEMENT_GROUPING_R0


Ignore:
Timestamp:
04/07/09 23:57:09 (16 years ago)
Author:
peko
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PAGE_ELEMENT_GROUPING_R0

    v5 v6  
    6969   * public static Group createGroup(Page page, List<Frame> frames) - which will create a Group of elements and make it the root group (its parent container should be the page). 
    7070   * public static void deleteGroup(Group group) - which will ungroup a previously created group. (the examples explained above). 
     71  * The Frame class should be able to provide a parentContainer - the Group that it is part of, or null if it is not grouped. 
     72   * The parentContainer will be an auto property that depends on a container value property with package visibility. This way no grouping and stuff will be done except from the Group class. 
     73 * Examples: 
     74  * Grouping three frames will end up having the following tree in the model: 
     75{{{ 
     76                            page 
     77                            /   \ 
     78                           /     \ 
     79                          /       \ 
     80                   @Own-ed      groups(size==1) 
     81                   frames       / 
     82                               / 
     83                              /  
     84                            group[0] 
     85                            /      \ 
     86                           /        \ 
     87                frames(size==3) groups(size==0)  
     88                    / |  \       
     89                   /  |   \ 
     90                  /   |    \ 
     91                 /    |     \ 
     92            frame1  frame2  frame3 
     93}}} 
     94  * Note that we do not change the own-ed frames in the Page. We have one group and clicking on either frame should select all the group. 
    7195 * The actual grouping control will be done through the HaloButtons created for this. 
    7296  * Selected elements will be able to be grouped.