免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1839 | 回复: 0
打印 上一主题 下一主题

kjava客户端模板配置 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-02-10 14:59 |只看该作者 |倒序浏览
如何在服务端配置用于在kjava客户端显示的 xml文档模板?用拖拉拽图标的方式,就像快速编辑一新闻网页一样。自动生成这样的文档:

<?xml version="1.0" encoding="utf-8"?>
<xmldoc>
  <!--背景图片绘制-->
  <draw name="picture" path="bg.png"  x="0" y="0" width="180" height="196" />

  <!--绘线-->
  <draw name="line"  sx="0"   sy="72"   ex="180" ey="72"   r="203" g="210" b="216"  width="1"/>
  <draw name="line"  sx="0"   sy="123"  ex="180" ey="123"  r="203" g="210" b="216"  width="1"/>
  <draw name="line"  sx="60"  sy="22"   ex="60"  ey="174"  r="203" g="210" b="216"  width="1"/>
  <draw name="line"  sx="120" sy="22"   ex="120" ey="174"  r="203" g="210" b="216"  width="1"/>

  <!--标题-->
  <control type="carea" name="ctl_formtitle" spos="55,0" epos="123,22" value="山东移动门户"   fontname="Arial"  fontx="1"  fonty="1" fontstyle="Regular"  fontsize="13"  r="254" g="254" b="254"/>

  <!--可控点击和显示区 主菜单栏-->
  <control type="carea" name="mainmenu_exit" spos="0,174" epos="35,195" value="退出"  selectbitmap="button_down.png"  fontname="arial"  fontx="12"  fonty="7" fontstyle="regular"  fontsize="10"  r="254" g="254" b="254"/>
  <control type="carea" name="mainmenu_option" spos="145,174" epos="179,195" value="选择"  selectbitmap="button_down.png"  fontname="arial"  fontx="12"  fonty="7" fontstyle="regular"  fontsize="10"  r="254" g="254" b="254"/>

  <!--menu right imagelist-->
  <imagecomponect type="imagelist" name="lstoptionmenu" parent="" tabindex="0">
    <property name="bounds" x="100" y="124" width="80" height="60" />
    <property name="borderstyle" value="single"/>
    <property name="direction"     value="vertical" />
    <property name="imagesubitemback"     value="xuanzhong.png" />
  </imagecomponect>

  <!--主菜单栏 内容1-->
  <imagecomponect type="imagebutton" name="mainmenu_open" mode="link"  parent="lstoptionmenu">
    <property name="bounds" x="0" y="0" width="80" height="20"/>
    <property name="backimage"  value=""   />
    <property name="icon"       value=""  />
    <property name="text"  value="打开" fontname="arial"  fontx="10"  fonty="5" fontstyle="regular"  fontsize="10"  r="1" g="82" b="129" />
    <property name="selecttextcolor"  fontname="arial"  fontx="10"  fonty="5" fontstyle="regular"  fontsize="10" r="1" g="82" b="129"/>
  </imagecomponect>
  <!--主菜单栏 内容3-->
  <imagecomponect type="imagebutton" name ="mainmenu_about" mode="link"  parent="lstoptionmenu">
    <property name="bounds" x="0" y="20" width="80" height="20"/>
    <property name="backimage"  value=""   />
    <property name="icon"       value=""  x="0" y="0" width="240" height="31" />
    <property name="text"  value="关于" fontname="arial"  fontx="10"  fonty="5" fontstyle="regular"  fontsize="10"  r="1" g="82" b="129" />
    <property name="selecttextcolor"  fontname="arial"  fontx="10"  fonty="5" fontstyle="regular"  fontsize="10" r="1" g="82" b="129"/>
  </imagecomponect>
  <!--主菜单栏 内容4-->
  <imagecomponect type="imagebutton" name ="mainmenu_exit" mode="link"  parent="lstoptionmenu">
    <property name="bounds" x="0" y="40" width="80" height="20"/>
    <property name="backimage"  value=""  />
    <property name="icon"       value=""  x="0" y="0" width="240" height="31" />
    <property name="text"  value="退出" fontname="arial"  fontx="10"  fonty="5" fontstyle="regular"  fontsize="10"  r="1" g="82" b="129" />
    <property name="selecttextcolor"  fontname="arial"  fontx="10"  fonty="5" fontstyle="regular"  fontsize="10" r="1" g="82" b="129"/>
  </imagecomponect>


  <!--  button定义  mode = "link" | "non"-->
  <imagecomponect type="imagebutton" name="bt_lf" mode="link"  parent="">
    <property name="bounds" x="0" y="22" width="60" height="50"/>
    <property name="backimage"  value="hotservice_2.png"   />
    <property name="icon"       value="hotservice_1.png"   x="0" y="0" width="60" height="50" />
    <property name="remark"     value="热点服务"/>
  </imagecomponect>

  <imagecomponect type="imagebutton" name="bt_pi" mode="link"  parent="">
    <property name="bounds" x="50" y="22" width="59" height="50"/>
    <property name="backimage"  value="business_2.png"   />
    <property name="icon"       value="business_1.png"    x="0" y="0" width="59" height="50"/>
    <property name="remark"     value="业务搜索"/>   
  </imagecomponect>

  <imagecomponect type="imagebutton" name="bt_cm" mode="link"  parent="">
    <property name="bounds" x="100" y="22" width="59" height="50"/>
    <property name="backimage"  value="newproduct_2.png"   />
    <property name="icon"       value="newproduct_1.png"    x="0" y="0" width="59" height="50"  />
    <property name="remark"     value="新品推荐"/>   
  </imagecomponect>

</xmldoc>
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP