Changeset 2112
- Timestamp:
- 08/17/12 11:37:24 (12 years ago)
- 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 141 141 drawFocus(false); 142 142 }); 143 hideableForm.addChild(addComponentLabel);143 addChild(addComponentLabel); 144 144 } 145 145 … … 158 158 drawFocus(false); 159 159 }); 160 hideableForm.addChild(addElementLabel);160 addChild(addElementLabel); 161 161 } 162 162 … … 279 279 comp.setStyle("paddingLeft", "50"); 280 280 if (!addComponentLabel) { 281 hideableForm.addChild(comp);281 addChild(comp); 282 282 } else { 283 hideableForm.addChildAt(comp, hideableForm.getChildIndex(addComponentLabel));283 addChildAt(comp, getChildIndex(addComponentLabel)); 284 284 } 285 285 } … … 288 288 var comp:CMDComponent = ComponentEdit(event.currentTarget).component; 289 289 _component.removeComponent(comp); 290 hideableForm.removeChild(event.currentTarget as DisplayObject);290 removeChild(event.currentTarget as DisplayObject); 291 291 } 292 292 … … 302 302 elem.addEventListener(ElementEdit.REMOVE_ELEMENT_EVENT, removeElement); 303 303 if (!addElementLabel) { 304 hideableForm.addChild(elem);304 addChild(elem); 305 305 } else { 306 hideableForm.addChildAt(elem, hideableForm.getChildIndex(addElementLabel));306 addChildAt(elem, getChildIndex(addElementLabel)); 307 307 } 308 308 } … … 311 311 var elem:CMDComponentElement = ElementEdit(event.currentTarget).element; 312 312 _component.removeElement(elem); 313 hideableForm.removeChild(event.currentTarget as DisplayObject);313 removeChild(event.currentTarget as DisplayObject); 314 314 } 315 315 -
ComponentRegistry/branches/ComponentRegistry-1.12.0/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/ComponentSummary.mxml
r2110 r2112 31 31 </mx:HBox> 32 32 33 <mx:HBox minWidth="1 50">33 <mx:HBox minWidth="160"> 34 34 <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}" /> 50 36 </mx:HBox> 51 37 -
ComponentRegistry/branches/ComponentRegistry-1.12.0/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/ElementSummary.mxml
r2108 r2112 41 41 <mx:HBox> 42 42 --> 43 <mx:HBox minWidth="1 50">43 <mx:HBox minWidth="160"> 44 44 <mx:Label text="Cardinality: " fontWeight="bold"/> 45 <mx:Label text="{element.cardinalityMin+' :'+element.cardinalityMax}" />45 <mx:Label text="{element.cardinalityMin+' - '+element.cardinalityMax}" /> 46 46 </mx:HBox> 47 47
Note: See TracChangeset
for help on using the changeset viewer.