Changeset 2112


Ignore:
Timestamp:
08/17/12 11:37:24 (12 years ago)
Author:
twagoo
Message:

Took component child elements and components out of the hideable area

Location:
ComponentRegistry/branches/ComponentRegistry-1.12.0/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor
Files:
3 edited

Legend:

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

    r2109 r2112  
    141141                                drawFocus(false);
    142142                        });
    143                         hideableForm.addChild(addComponentLabel);
     143                        addChild(addComponentLabel);
    144144                }
    145145               
     
    158158                                drawFocus(false);
    159159                        });
    160                         hideableForm.addChild(addElementLabel);
     160                        addChild(addElementLabel);
    161161                }
    162162               
     
    279279                        comp.setStyle("paddingLeft", "50");
    280280                        if (!addComponentLabel) {
    281                                 hideableForm.addChild(comp);
     281                                addChild(comp);
    282282                        } else {
    283                                 hideableForm.addChildAt(comp, hideableForm.getChildIndex(addComponentLabel));
     283                                addChildAt(comp, getChildIndex(addComponentLabel));
    284284                        }
    285285                }
     
    288288                        var comp:CMDComponent = ComponentEdit(event.currentTarget).component;
    289289                        _component.removeComponent(comp);
    290                         hideableForm.removeChild(event.currentTarget as DisplayObject);
     290                        removeChild(event.currentTarget as DisplayObject);
    291291                }
    292292               
     
    302302                        elem.addEventListener(ElementEdit.REMOVE_ELEMENT_EVENT, removeElement);
    303303                        if (!addElementLabel) {
    304                                 hideableForm.addChild(elem);
     304                                addChild(elem);
    305305                        } else {
    306                                 hideableForm.addChildAt(elem, hideableForm.getChildIndex(addElementLabel));
     306                                addChildAt(elem, getChildIndex(addElementLabel));
    307307                        }
    308308                }
     
    311311                        var elem:CMDComponentElement = ElementEdit(event.currentTarget).element;
    312312                        _component.removeElement(elem);
    313                         hideableForm.removeChild(event.currentTarget as DisplayObject);
     313                        removeChild(event.currentTarget as DisplayObject);
    314314                }
    315315               
  • ComponentRegistry/branches/ComponentRegistry-1.12.0/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/ComponentSummary.mxml

    r2110 r2112  
    3131                </mx:HBox>
    3232               
    33                 <mx:HBox minWidth="150">
     33                <mx:HBox minWidth="160">
    3434                        <mx:Label text="Cardinality: " fontWeight="bold"/>
    35                         <mx:Label text="{component.cardinalityMin+':'+component.cardinalityMax}" />
    36                 </mx:HBox>
    37                
    38                 <mx:HBox minWidth="120"
    39                                  visible="{component.cmdComponents.length > 0}"
    40                                  includeInLayout="{component.cmdComponents.length > 0}">
    41                         <mx:Label text="Child components: " fontWeight="bold"/>
    42                         <mx:Label text="{component.cmdComponents.length}" />
    43                 </mx:HBox>
    44 
    45                 <mx:HBox minWidth="120"
    46                                  visible="{component.cmdElements.length > 0}"
    47                                  includeInLayout="{component.cmdElements.length > 0}">
    48                         <mx:Label text="Child elements: " fontWeight="bold"/>
    49                         <mx:Label text="{component.cmdElements.length}" />
     35                        <mx:Label text="{component.cardinalityMin+' - '+component.cardinalityMax}" />
    5036                </mx:HBox>
    5137
  • ComponentRegistry/branches/ComponentRegistry-1.12.0/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/ElementSummary.mxml

    r2108 r2112  
    4141        <mx:HBox>       
    4242                -->
    43                 <mx:HBox minWidth="150">
     43                <mx:HBox minWidth="160">
    4444                        <mx:Label text="Cardinality: " fontWeight="bold"/>
    45                         <mx:Label text="{element.cardinalityMin+':'+element.cardinalityMax}" />
     45                        <mx:Label text="{element.cardinalityMin+' - '+element.cardinalityMax}" />
    4646                </mx:HBox>
    4747       
Note: See TracChangeset for help on using the changeset viewer.