Changeset 2116


Ignore:
Timestamp:
08/17/12 14:03:10 (12 years ago)
Author:
twagoo
Message:

Also placed expand/collapse links at the bottom of the editor

File:
1 edited

Legend:

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

    r2115 r2116  
    166166                        handleHeader(_spec);
    167167                       
    168                         var collapseExpandBox:HBox = new HBox();
    169                         collapseExpandBox.addChild(createCollapseAllButton());
    170                         collapseExpandBox.addChild(createExpandAllButton());
    171                         addChild(collapseExpandBox);
     168                        addChild(createCollapseExpandBox());
    172169                       
    173170                        handleElements(_firstComponent.cmdElements);
     
    175172                        handleComponents(_firstComponent.cmdComponents);
    176173                        addComponentAddButton();
    177                                                
     174                       
     175                        addChild(createCollapseExpandBox());
     176
    178177                        trace("Created editor view in " + (getTimer() - start) + " ms.");
     178                }
     179               
     180                private function createCollapseExpandBox():HBox{
     181                        var collapseExpandBox:HBox = new HBox();
     182                        collapseExpandBox.addChild(createCollapseAllButton());
     183                        collapseExpandBox.addChild(createExpandAllButton());
     184                        return collapseExpandBox;
    179185                }
    180186               
     
    182188                        var button:LabelButton = new LabelButton(collapseAll,  "Collapse all");
    183189                        button.setStyle("color","blue");
     190                        button.toolTip = "Collapse all components and elements in this editor";
    184191                        return button;
    185192                }
     
    197204                        var button:LabelButton = new LabelButton(expandAll,  "Expand all");
    198205                        button.setStyle("color","blue");
     206                        button.toolTip = "Expand all components and elements in this editor";
    199207                        return button;
    200208                }               
Note: See TracChangeset for help on using the changeset viewer.