没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Custom Commands and Tools
在 Web ADF 中有很多 geospatial functionality,你也可以添加你自己的 geospatial functionality。
你可以添加定制的 tools,commands,和 tasks。这篇文档将关注在定制 tools 和 commands。获得更
多关于定制 tasks 的信息,请查看 Writing a custom task。
Commands
一个command触发服务器端方法,且不需要客户端互动。一个command需要一个command JS
P标签显示。一个command的样子可以通过style, styleClass, defaultImage, selectedImage, hoverIm
age, disabledImage, toolTip, 和 toolText attributes来定制。服务器端的方法可以通过action或者acti
onListener属性触发。Action属性需要是一个绑定java方法的方法,这个方法不接受参数并且返
回一个String。这个方法可以用来执行一些业务逻辑和控制页面导航。actionListener属性需要
是一个绑定java方法的方法,这个方法接受一个类型为 javax.faces.event.ActionEvent的参数,这
个方法可以用来执行一些业务逻辑,但是对页面导航没有效果。你也可以指定action Listener通
过使用一个jsf的actionListener的标签,让其属性指向执行javax.faces.event.ActionListener接口的j
ava类。
Web ADF提供一些的标准的commands:
Zoom to full extent
Zoom to previous extent
Zoom to next extent
Directional pan
Tools
一个tool需要客户断互动才能触发服务器端方法。一个tool是一个tool JSP标签表现。一个tool
的外观可以通过ethod. A tool is represented by a tool JSP tag. A tool's look can be customized by usi
ng the style, styleClass, defaultImage, selectedImage, hoverImage, disabledImage, toolTip, and toolTe
xt属性来定制。这个clientAction属性指定哪个客户断脚本被执行,客户端脚本可以用 cursor, lin
eWidth, and lineColor定制。
资源评论
汪云飞记录本
- 粉丝: 123
- 资源: 42
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功