Ignore:
Timestamp:
03/09/10 17:37:10 (14 years ago)
Author:
patdui
Message:
  • reimplemented my drag and drop editor
  • created search functionality for isocat conceptLinks.
  • added some flexUnit tests and cleanup error handling
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/Editor.mxml

    r206 r224  
    2323                                           click="saveProfile()"/>
    2424                </mx:HBox>
    25         <mx:Text id="errorMessageField"
    26                                          text="{uploadService.message}" visible='{uploadService.message != ""}' includeInLayout='{uploadService.message != ""}' />
     25                <mx:Text id="errorMessageField"
     26                                 text="{uploadService.message}"
     27                                 visible='{uploadService.message != ""}'
     28                                 includeInLayout='{uploadService.message != ""}'/>
    2729                <mx:ProgressBar id="uploadProgress"
    28                                                         label=""
    29                                                         mode="manual"
    30                                                         visible="false"
    31                                                         includeInLayout="false"/>
     30                                                label=""
     31                                                mode="manual"
     32                                                visible="false"
     33                                                includeInLayout="false"/>
    3234
    3335                <mx:VBox width="100%"
     
    3537                        <comp:CMDComponentXMLEditor id="xmlEditor"
    3638                                                                                cmdSpec="{cmdSpec}"
    37                                                                                 width="50%"
    38                                                                                 toolTip="drag components from list to add..." editorChange="handleEditorChange(event)" />
    39                         <mx:DataGrid id="dataGrid"
    40                                                  width="50%"
    41                                                  dragEnabled="true"
    42                                                  dataProvider="{componentsSrv.itemDescriptions}"
    43                                                  columns="{browserColumns.getComponentColumns()}"
    44                                                  allowMultipleSelection="true"/>
    45 
     39                                                                                editorChange="handleEditorChange(event)"/>
     40                        <mx:VBox styleName="borderStyles">
     41                <mx:Label text="Drag items onto edit canvas"/>
     42                                <mx:HBox id="palette">
     43                                        <mx:Canvas width="60"
     44                                                           height="60"
     45                                                           backgroundColor="blue"
     46                                                           borderStyle="solid"
     47                                                           id="ComponentDrag"
     48                                                           mouseMove="enableComponentDrag(event);"
     49                                                           >
     50                                        </mx:Canvas>
     51                                        <mx:Canvas width="45"
     52                                                           height="45"
     53                                                           backgroundColor="green"
     54                                                           borderStyle="solid"
     55                                                           id="ElementDrag"
     56                                                           mouseMove="enableElementDrag(event);">
     57                                        </mx:Canvas>
     58                                        <mx:Canvas width="30"
     59                                                           height="30"
     60                                                           backgroundColor="red"
     61                                                           borderStyle="solid"
     62                                                           id="AttributeDrag"
     63                                                           mouseMove="enableAttributeDrag(event);">
     64                                        </mx:Canvas>
     65                                </mx:HBox>
     66                                <browser:BrowserOverviewList id="componentsPaletteOverview"
     67                                                                                         browserDataProvider="{componentsSrv.itemDescriptions}"
     68                                                                                         browserColumns="{browserColumns.getComponentColumns()}"
     69                                                                                         creationComplete="initPaletteOverview();"/>
     70                        </mx:VBox>
    4671                </mx:VBox>
    47                 <mx:HBox width="100%"
    48                                  height="300">
    49                         <comp:ScrollableTextArea id="infoTextArea"
    50                                                                          styleName="xmlTextArea"
    51                                                                          editable="false"
    52                                                                          text="{cmdSpec.toXml()}"
    53                                                                          width="50%"
    54                                                                          height="300"/>
    55                 </mx:HBox>
    5672        </mx:VBox>
    5773
Note: See TracChangeset for help on using the changeset viewer.