- 论坛徽章:
- 0
|
如何在服务端配置用于在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> |
|