zoukankan      html  css  js  c++  java
  • 2010年8月26日周四_underStanding Flex_FlexComponets_7.4

    /********************************************************************************/

    //Flex components

    //2010年8月26日

    //Version 2.0

    /*******************************************************************************/

    The ArcGIS API for Flex provides built-in MXML visual components and containers.

    ArcGIS API  for Flex 提供内嵌的MXML可视化租组件和容器。

    Components

    Components, sometimes referred to as controls, are interface widgets that can be added to your application. Adobe Flex components include Button, Label, Form, and TextInput; ArcGIS API for Flex components include ArcGISDynamicMapServiceLayer, ArcGISTiledMapServiceLayer, and ArcIMSMapServiceLayer.

    MXML is used for most layout purposes; however, you can also use ActionScript 3.0 to create and modify components.

    To see Flex components in action, use Adobe's Flex Component Explorer or Tour de Flex applications.

    组件

    Components(组件),有的时候称之为控件,是接口部件,她可以被添家到你的应用程序中。 Adobe Flex 组件包括按钮、标签、表单、和文本输入框;ArcGIS API for Flex组件包括:ArcGISDynamicMapServiceLayer,ArcGISTiledMapServiceLayer和ArcIMSMapServiceLayer。

    MXML大多数用于部件目的; 尽管如此,你让然可以使用ActionScript3.0创建和重定义组件。

    如果先查看Flex组件的动作,请查阅Adobe's Flex Component Explorer or Tour de Flex applications.

    Containers

    Containers are layout tools that position the interface widgets or data in the application. Adobe Flex containers are Application, HBox, and Accordion; the ArcGIS API for Flex container is Map.

    Containers provide a hierarchical(分等级的) structure that allows you to control the layout characteristics of child components. Components defined within a container are called children. At the root of any Flex application is a single container: the Application container.

    容器:

    Containers是一个布局的工具,设置接口组件或者数据在应用程序中的页面位置。Adobe Flex 容器为:应用程序、HBOX,和Accordion;

    ArcGIS API for Flex 类型的容器是Map。

    Containers提供了一个分等级的构造,它允许你控制容器子控件的布局风格。 定义在一个容器里面的组件我们称之为:子控件、 任何Application的根节点都是一个单独的容器:应用程序容器。

     

    Application containers

    The Application container holds all other containers and components. By default, its children are laid out vertically, but you can set them to horizontal or absolute. If the application's layout is absolute, each child component must have an x- and y-coordinate or it will be displayed at 0,0.

    The Application container can also be formatted using any of the style parameters such as backgroundGradientColors and verticalGap.

    For more information about laying out your Flex application, see the Flex 3 Getting Started Guide Wiki article Designing a UI Layout.

    应用程序容器

    Application容器包含着所有的其他的容器和组件。 默认情况下,她的子控件是垂直放置的,但是你也可以设置它们为水平排列,或者绝对排列。如果应用程序的布局为绝对布局,每一个子组件都必须有一个X和一个Y坐标系统,否则它们将显示在(0,0)位置。

    应用程序组件可以被任何格式的样式参数修饰,比如:backgroundGradientColors,verticalGap、

    更多的关于如何对你的应用程序进行布局,查看Flex 3.0入门教程中的Designing a UI Layout章节。

     

  • 相关阅读:
    准备改进回复功能
    今天的任务
    日历已加上
    web.config中globalization设置的问题
    Request获取url信息的各种方法比较
    增加了高级评论功能
    如何修改日历的CSS
    推荐有关MasterPages的三篇文章
    如何定制日历控件显示的星期文字
    FreeTextBox的问题终于解决了
  • 原文地址:https://www.cnblogs.com/xingchen/p/1808818.html
Copyright © 2011-2022 走看看