ArcGIS viewer for Flex (container label of widgets)

Source: Internet
Author: User

<Widgetcontainer>This label defines a component container, which is a conceptual structure. This is not directly visible on the browser user interface. It can be grouped for management purposes to aggregate components in the viewer application. The component container components referenced in the configuration file of the application in the browser will behave similarly on the browser's user interface and will be on the widget tray. See the details of browser components in ArcGIS flex.

 

It has the following properties:

  • Left-Number of shards on the left edge of the application window.
  • Right-Number of workers at the right edge of the application window.
  • Top-Number of workers at the edge of the application window.
  • Bottom-Number of shards at the bottom edge of the application window.
  • Layout-Determine the layout of components in the container. There are four types: horizontal (default), vertical, fixed, and floating (horizontal (default), vertical, fixed, and float ).

The first four attributes are similar to <widget> labels: Left, right, top, and bottom. The location of the component containers involved in <widgetcontainer> is in the main browser application window. See the details of the mini-tool tag. However, these attributes are not fulfilled if the layout attribute of the component container is set to either horizontal or vertical.

 

The layout property refers to how Multiple widgets are displayed in the widget container in the viewer application (when their dialog window opens. The layout of the four options displayed.

 

When<Widget>The tag is a child-to-<widgetcontainer> label is a management component container. Therefore, Widgets inherit and follow the attributes set by the component container. As shown in the sample code in the config. xml file, the US address search and search component European address is a horizontal component managed by containers:

<Widgetcontainer layout = "horizontal"> <br/> <widget label = "find U. s. address "<br/> icon =" assets/images/I _target.png "<br/> Config =" widgets/locate/locatewidget_us.xml "<br/> url =" widgets/locate/locatewidget.swf "/> <br/> <widget label =" find European addresses "<br/> icon =" assets/images/I _pin2.png "<br/> Config =" widgets/locate/ locatewidget_eu.xml "<br/> url =" widgets/locate/locatewidget.swf "/> <br/>... <br/> </widgetcontainer> 

 

For details, see the information topic tag <widget> and its attributes. Widgets can also be grouped in the container of the widget. This makes the collected organization aim at the UI part of the viewer. Components can be divided into container components using the tag <widgetgroup>-this is a sub-tag <widget>, and the parent tag <widgetcontainer>.

 

<Widgetgroup>Has the following attributes:

Label-The name of the group.

Icon-The icon is used in the widget tray part group. I _folder.png.

As shown in the code example in the XML configuration file, the address lookup and lookup parts in the United States are the address locator parts group in Europe:

<Widgetcontainer layout = "horizontal"> <br/> <widgetgroup label = "locators"> <br/> <widget label = "find U. s. address "<br/> icon =" assets/images/I _target.png "<br/> Config =" widgets/locate/locatewidget_us.xml "<br/> url =" widgets/locate/locatewidget.swf "/> <br/> <widget label =" find European addresses "<br/> icon =" assets/images/I _pin2.png "<br/> Config =" widgets/locate/ locatewidget_eu.xml "<br/> url =" widgets/locate/locatewidget.swf "/> <br/>... <br/> </widgetgroup> <br/> </widgetcontainer> 

 

The widget group appears in the browser's user interface and folder icon component tray. When you click it, the components of its members are displayed in the drop-down list.

The browser of flex ArcGIS can be used as a container for multiple parts on its user interface. The container and a widget can have multiple parts. Note that widgets cannot be dragged from one container to another. Nor can widgets be dragged out of a widget container and end users added as part of the browser's user interface.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.