什么是Web dnpro以及自己的感悟

来源:互联网 发布:62078端口入侵iphone 编辑:程序博客网 时间:2024/05/14 14:00
Web Dynpro is a client-independent programming model on the SAP NetWeaver technology platform and is used to develop user interfaces for professional business applications. It can be used to design user interfaces for both Java and ABAP applications. It is based on the Model-View-Controller paradigm, which ensures that the business logic is separated from the presen-tation logic. This architecture is visible, for example in the Web Dynpro perspective of the SAP NetWeaver Developer Studio (NWDS).


Web Dynpro ABAP or Web Dynpro for ABAP (WD4A, WDA) is SAP's standard UI technology for developing Web applications in the ABAP environment. It consists of a runtime environment and a graphical development environment. It is equipped with special Web Dynpro tools that are integrated in ABAP Workbench.
Many of the things that application developers require to develop accessible applications are already integrated into the Web Dynpro framework or can be provided by SAP NetWeaver Por-tal for certain users or user groups. Application developers do not need to worry about any of the following:
• Predefined speech synthesis for screen readers (name, state, and value of the UI elements, or instructions for using the keyboard)
• Keyboard access to the UI elements
• Tab chain of the UI elements (defined by the layout container)
• Skipping UI elements and groups for quicker navigation within a view element
• Special style templates with user-defined color schemes
• Support for large fonts and scaling
• Semantic colors (colors that have a symbolic meaning, such as green or red for statuses)

• Keyboard commands

翻译:

web dynpro 是基于Sap NetWeaver技术平台上的客户端独立的程序组件,被用于为业务应用开发用户接口。用户接口又分为Java和ABAP两种程序接口。它也是基于Model-View-Controller(MVC)模式开发,保证业务层逻辑和表现层逻辑分离。同时这种架构是可视化的,举例我们可以在NWDS中的Webdnpro视图中可见。
同时Web Dnpro ABAP或者Web Dynpro for ABAP是SAP在ABAP环境下开发Web应用程序的标准UI技术。它包含运行时环境和图形开发环境。它相当于在ABAP工作空间下特殊的Web dnpro工具。程序开发人员需要的许多东西已经到Webdnpro framework 或者已经被Sap NetWeaver portal提供给特定的用户或用户组。程序开发人员不需要考虑如下内容:
1.  屏幕阅读器
2, 键盘访问UI元素
2. UI空间的Tab链
3. UI元素和UI组之间的快捷跳转
4. 使用用户特定颜色的自定义主题样式模板
5. 支持大字体和缩放
6. 语义色彩
6. 键盘命令


对Webdnpro 开发的认识

1.  webdnpro for java是基于Sap NetWeaver 标准框架之上的二次开发,比传统的开源Java开发难度要低。

2. 有标准的UI控件库,通过绑定Node节点快速生成界面,界面不是很美观,但是满足业务应用需求;

3. 采用MVC模式开发,展现逻辑和业务逻辑分离。业务逻辑方法定义在组件中,便于页面层调用;

4. 程序是基于action事件触发的

5. 一个Webdnpro程序,通常包含一个Application,每个Application可以一个Component,一个Component中包含一个或多个View,一个Component下包含一个或多个Window.

Component是public的,可定义为公开组件,供其他外部Component引用,同时被对public 的组件中定义的方法也可以被其他控件引用到。这也是我们为什么把业务逻辑方法写到Component中的原因。在View中使用wdThis.wdGetXXXComponet().methods();可以直接调用到组件中的方法。

6. 每个Application相当于一个功能模块,每个Applicaiton在Sap NetWeaver CE平台中配置为一个页面,可以将页面到对应的工作集,工作集也可以添加到对应的角色中。


0 0
原创粉丝点击