补充部分官方文档里没有的Client Library以及代码提示Schema更新(二)

简介:
这次补充了所有的Data Access相关控件,现在似乎Atlas.js中最常用的Tag都已经写进了Schema。这次更新的Tag有:

<itemView />
<listView />
<dataSource />
<dataView />
<dataNavigator />
<xmlDataSource />
<xsltView />
<sortBehavior />
<propertyFilter />

  请 点击这里 下载,所有的下载链接均已更新。使用方式可以见我前一篇文章《 为VS.NET 2005增加Atlas Scripts的代码提示功能 》,那里的Schema下载也以更新。

  另外,XMLDataSource也出现了DataNavigator类似的问题,在它的代码里有:
this .getDescriptor  =   function () {
    
var  td  =  Sys.Data.DataSource.callBaseMethod( this , 'getDescriptor');
        
    ...
        
    
return  td;
}

  又是“Sys.Data.DataSource.callBaseMethod”了。哎,它们Code Review没有看出来吗?还好,似乎对结果没有什么影响……


  以下是我写的Client Library,希望对大家有所帮助。


ItemView Class

A control designed for viewing a single record at a time.

Syntax

Javascript

var  c  =  Sys.UI.Data.ItemView(associatedElement);
    .
    .
c.initialize();

Declarative

< itemView
    
accessKey ="accelerator key"
    cssClass
="CSS class"
    dataContext
="source for data binding operations"
    dataIndex
="the index of the currently selected item in the data source"
    enabled
="true|false"
    id
="identifier for looking up the component by name"
    propertyChanged
="event handler"
    tabIndex
="element's tab index"
    visibilityMode
="Hidden|Collapse"
    visible
="true|false"
>
    
< behaviors >
        
<!--  behaviors  -->
    
</ behaviors >
    
< bindings >
        
<!--  bindings  -->
    
</ bindings >
    
< emptyTemplate >
        
<!--  template  -->
    
</ emptyTemplate >
    
< itemTemplate >
        
<!--  template  -->
    
</ itemTemplate >
    
< propertyChanged >
        
<!--  actions  -->
    
</ propertyChanged >
</ itemView >

Script components:  required

Inherits:  Sys.UI.Data.DataControl




ListView Class

A control complements the ItemView control, which allows you to view a range of record that are selected by the bound DataSource control.

Syntax

Javascript

var  c  =  Sys.UI.Data.ListView(associatedElement);
    .
    .
c.initialize();

Declarative

< listView
    
accessKey ="accelerator key"
    alternatingItemCssClass="CSS class for alternating rows"
    cssClass
="CSS class"
    dataContext
="source for data binding operations"
    dataIndex
="the index of the currently selected item in the data source"
    enabled
="true|false"
    id
="identifier for looking up the component by name"
    itemCssClass="CSS class for individual items"
    itemTemplateParentElementId="identifier of the parent of the template"
    propertyChanged
="event handler"
    separatorCssClass="CSS class for the separator"
    selectedItemCssClass="CSS class for the selected item"
    tabIndex
="element's tab index"
    visibilityMode
="Hidden|Collapse"
    visible
="true|false"
>
    
< behaviors >
        
<!--  behaviors  -->
    
</ behaviors >
    
< bindings >
        
<!--  bindings  -->
    
</ bindings >
    
< emptyTemplate >
        
<!--  template  -->
    
</ emptyTemplate >
    
< itemTemplate >
        
<!--  template  -->
    
</ itemTemplate >
    <layoutTemplate>
        
<!-- template -->
    
</layoutTemplate>
    <separatorTemplate>
        
<!-- template -->
    
</separatorTemplate>

    
< propertyChanged >
        
<!--  actions  -->
    
</ propertyChanged >
</ listView >

Script components:  required

Inherits:  Sys.UI.Data.DataControl




DataSource Class

A control creates the "connection" between your controls and the back-end datasets.

Syntax

Javascript

new Sys.Data.DataSource();

Declarative

<dataSource
    autoLoad="true|false"
    dataAvailable="event handler"
    dataContext
="source for data binding operations"
    id
="identifier for looking up the component by name"
    initialData="the initial data when the page loads"
    propertyChanged
="event handler"
    serviceURL="the URL of the web service that will supply the data"
    serviceType="DataService|Handler"
>
    
< bindings >
        
<!--  bindings  -->
    
</ bindings >
    <dataAvailable>
        
<!-- actions -->
    
</dataAvailable>
    <parameters prop1="value1" prop2="value2" ... />
     < propertyChanged >
        
<!--  actions  -->
    
</ propertyChanged >
</ dataSource >

Script components:  required

Inherits:  Sys.Component




DataView Class

A control gives a filtered view of a of data source.

Syntax

Javascript

new Sys.Data.DataView();

Declarative

<dataSource
    dataContext ="source for data binding operations"
    id
="identifier for looking up the component by name"
    pageIndex="the current index of page"
    pageSize="the size of page"

    propertyChanged ="event handler"
    sortColumn="the column for sorting"
    sortDirection="Ascending|Descending"
>
    
< bindings >
        
<!--  bindings  -->
    
</ bindings >
    <filters>
        
<!-- filters -->
    
</filters>
     < propertyChanged >
        
<!--  actions  -->
    
</ propertyChanged >
</ dataSource >

Script components:  required

Inherits:  Sys.Component




DataNavigator Class

A control gives page navigation for a data view.

Syntax

Javascript

var  c  =  new Sys.UI.Data.DataNavigator(associatedElement);
    .
    .
c.initialize();

Declarative

< itemView
    
accessKey ="accelerator key"
    cssClass
="CSS class"
    dataContext
="source for data binding operations"
    dataView="the data view of page navigation"
    enabled ="true|false"
    id
="identifier for looking up the component by name"
    propertyChanged
="event handler"
    tabIndex
="element's tab index"
    visibilityMode
="Hidden|Collapse"
    visible
="true|false"
>
    
< behaviors >
        
<!--  behaviors  -->
    
</ behaviors >
    
< bindings >
        
<!--  bindings  -->
    
</ bindings >
     < propertyChanged >
        
<!--  actions  -->
    
</ propertyChanged >
</ itemView >

Script components:  required

Inherits:  Sys.UI.Control




XMLDataSource Class

A datasouce for xml data.

Syntax

Javascript

new Sys.Data.XMLDataSource();

Declarative

<xmlDataSource
    autoLoad="true|false"
    documentAvailable="event handler"
    dataContext
="source for data binding operations"
    id
="identifier for looking up the component by name"
    initialDocument="the initial document when the page loads"
    propertyChanged
="event handler"
    serviceURL="the URL of the web service that will supply the data"
    xpath="the xpath for getting part of xml"
>
    
< bindings >
        
<!--  bindings  -->
    
</ bindings >
    <documentAvailable>
        
<!-- actions -->
    
</documentAvailable>
    <parameters prop1="value1" prop2="value2" ... />
     < propertyChanged >
        
<!--  actions  -->
    
</ propertyChanged >
</ xmlDataSource >

Script components:  required

Inherits:  Sys.Component




XSLTView Class

A control to show data by converting xml data with xslt.

Syntax

Javascript

var  c  =  new Sys.UI.Data.XSLTView(associatedElement);
    .
    .
c.initialize();

Declarative

< itemView
    
accessKey ="accelerator key"
    cssClass
="CSS class"
    dataContext
="source for data binding operations"
    enabled
="true|false"
    id
="identifier for looking up the component by name"
    propertyChanged
="event handler"
    tabIndex
="element's tab index"
    visibilityMode
="Hidden|Collapse"
    visible
="true|false"
>
    
< behaviors >
        
<!--  behaviors  -->
    
</ behaviors >
    
< bindings >
        
<!--  bindings  -->
    
</ bindings >
    <parameters prop1="value1" prop2="value2" ... />
    
< propertyChanged >
        
<!--  actions  -->
    
</ propertyChanged >
</ itemView >

Script components:  required

Inherits:  Sys.UI.Control




SortBehavior Class

A behavior to sort the data of a dataview.

Syntax

Javascript

new  Sys.UI.Data.SortBehavior();

Declarative

< sortBehavior
    dataContext
="source for data binding operations"

    dataView="the data view for sorting"
    id="identifier for looking up the component by name"
    propertyChanged="event handler"
    sortAscendingCssClass="CSS class when sort the data order by asc"
    sortColumn="the column to sort"
    sortDescendingCssClass="CSS class when sort the data order by desc"
>
    
< bindings >
        
<!--  bindings  -->
    
</ bindings >
    
< propertyChanged >
        
<!--  actions  -->
    
</ propertyChanged >
</ sortBehavior >

Script components:  required

Inherits:  Sys.UI.Behavior




PropertyFilter Class

Syntax

Javascript

new  Sys.Data.PropertyFilter();

Declarative

<propertyFilter
    dataContext
="source for data binding operations"

    id="identifier for looking up the component by name"
    property="the property to filter"
    propertyChanged="event handler"
    value="the value to display"
>
    
< bindings >
        
<!--  bindings  -->
    
</ bindings >
    
< propertyChanged >
        
<!--  actions  -->
    
</ propertyChanged >
</ sortBehavior >

Script components:  required

Inherits:  Sys.Data.DataFilter



本文转自 jeffz 51CTO博客,原文链接:http://blog.51cto.com/jeffz/60942,如需转载请自行联系原作者

相关实践学习
基于Hologres轻松玩转一站式实时仓库
本场景介绍如何利用阿里云MaxCompute、实时计算Flink和交互式分析服务Hologres开发离线、实时数据融合分析的数据大屏应用。
阿里云实时数仓实战 - 项目介绍及架构设计
课程简介 1)学习搭建一个数据仓库的过程,理解数据在整个数仓架构的从采集、存储、计算、输出、展示的整个业务流程。 2)整个数仓体系完全搭建在阿里云架构上,理解并学会运用各个服务组件,了解各个组件之间如何配合联动。 3&nbsp;)前置知识要求 &nbsp; 课程大纲 第一章&nbsp;了解数据仓库概念 初步了解数据仓库是干什么的 第二章&nbsp;按照企业开发的标准去搭建一个数据仓库 数据仓库的需求是什么 架构 怎么选型怎么购买服务器 第三章&nbsp;数据生成模块 用户形成数据的一个准备 按照企业的标准,准备了十一张用户行为表 方便使用 第四章&nbsp;采集模块的搭建 购买阿里云服务器 安装 JDK 安装 Flume 第五章&nbsp;用户行为数据仓库 严格按照企业的标准开发 第六章&nbsp;搭建业务数仓理论基础和对表的分类同步 第七章&nbsp;业务数仓的搭建&nbsp; 业务行为数仓效果图&nbsp;&nbsp;
相关文章
|
7月前
|
SQL BI 数据库
介绍一款 ABAP 代码搜索工具 RS_ABAP_SOURCE_SCAN 的使用方法
介绍一款 ABAP 代码搜索工具 RS_ABAP_SOURCE_SCAN 的使用方法
81 0
|
4月前
|
移动开发
解决uniapp发布H5项目生产环境运行报错index.63b34199.css:1 Failed to load resource: the server responded with a
解决uniapp发布H5项目生产环境运行报错index.63b34199.css:1 Failed to load resource: the server responded with a
|
Linux Go C++
VS CODE插件扩展无法使用的解决办法
VS CODE插件扩展无法使用的解决办法
2103 1
VS CODE插件扩展无法使用的解决办法
DHL
|
算法 前端开发 安全
Kotlin StateFlow 搜索功能的实践 DB + NetWork
这篇文章主要来分析一下 PokemonGo 搜索功能的实践
DHL
428 0
Kotlin StateFlow 搜索功能的实践 DB + NetWork
|
JSON 数据格式
UI5 extension project clone到WebIDE里后报找不到.project.json错误消息的处理
UI5 extension project clone到WebIDE里后报找不到.project.json错误消息的处理
UI5 extension project clone到WebIDE里后报找不到.project.json错误消息的处理
|
Java Android开发
如何实现SAP GUI的自定义语法检查(Syntax check)
如何实现SAP GUI的自定义语法检查(Syntax check)
212 0
如何实现SAP GUI的自定义语法检查(Syntax check)
如何使用代码获得ABAP repository object不同版本的内容
Created by Jerry Wang, last modified on Dec 21, 2014
86 0