Ignore:
Timestamp:
08/17/12 13:39:15 (12 years ago)
Author:
twagoo
Message:

Added collapse all/expand all buttons to component editor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/branches/ComponentRegistry-1.12.0/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/ItemEdit.as

    r2113 r2115  
    4949                        hideableForm.addChild(child);
    5050                }
     51               
     52                public function setDetailsVisibleState(visibleState:Boolean):void{
     53                        showToggleBox.visibleState = visibleState;
     54                }
     55               
     56               
     57               
     58                protected function setAllVisibleState(visibleState:Boolean):void{
     59                        setDetailsVisibleState(visibleState);
     60                        for(var i:int=0;i<numChildren;i++){
     61                                var child:Object = getChildAt(i);
     62                                if(child is ElementEdit || child is ComponentEdit){
     63                                        ItemEdit(child).setAllVisibleState(visibleState);
     64                                }
     65                        }
     66                }
     67               
     68                public function collapseAll():void{
     69                        setAllVisibleState(false);
     70                }
     71               
     72                public function expandAll():void{
     73                        setAllVisibleState(true);
     74                }
    5175        }
    5276}
Note: See TracChangeset for help on using the changeset viewer.