XML语法的界面框架 koalaGML

码农软件 · 软件分类 · GUI开发框架 · 2019-08-10 18:41:58

软件介绍

koalaGML用类似于jsp的xml语法来允许开发人员从XML文档(这一文档定义了界面布局与内容)中快速生成功能丰富的图形用户界面。

实现上面这个界面的代码是:

<!--
    Document   : combobox2.xml
    Created on : October 28, 2002, 9:56 AM
    Author     : Ricardo Zuasti
    Description:
        Combobox usage example II.
-->
<form language="java" width="230" height="200" locationx="0" locationy="0" resizable="yes">
        
<head>
                
<title>
                        koaLaGML comboBox example
                
</title>
        
</head>
        
<body>
                
<space height="10" />
                
<combobox id="combo1" selected="2" width="150" height="25" enable="yes">
                    
<option value="1" caption="bird" />
                    
<option value="2" caption="pig" /> 
                
</combobox>                
                
<space height="10" />
                
                
<inputtext id="txtCaption" width="150" height="25" text="caption" enable="yes" />
                
<inputtext id="txtValue" width="150" height="25" text="value" enable="yes" />

                
<space height="10" />
                
                
<button caption="add" enable="yes" fork="no">
                        
<scriptlet type="onclick" language="java">
                            form.getComboBox("combo1").addItem(
                                form.getInputText("txtCaption").getText(),
                                form.getInputText("txtValue").getText());
                        
</scriptlet>
                
</button>
                
                
<space height="10" />
                
                
<button caption="show" enable="yes" fork="no">
                        
<scriptlet type="onclick" language="java">
                            form.getLabel("label1").setCaption(
                                form.getComboBox("combo1").getCaption() + " - " + 
                                form.getComboBox("combo1").getValue());
                        
</scriptlet>
                
</button>
                
                
<space height="10" />
                
                
<label id="label1" caption="make a choice and enjoy it" />
                
                
<space height="10" />
        
</body>
</form>

本文地址:https://codercto.com/soft/d/12079.html

大数据供应链

大数据供应链

娜达·R·桑德斯 (Nada R. Sanders) / 丁晓松 / 中国人民大学出版社 / 2015-7-1 / CNY 55.00

第一本大数据供应链落地之道的权威著作,全球顶级供应链管理专家娜达·桑德斯博士聚焦传统供应链模式向大数据转型,助力工业4.0时代智能供应链构建。 在靠大数据驱动供应链处于领先地位的企业中,45% 是零售商,如沃尔玛、亚马逊,而22%是快消企业,如戴尔电脑。他们都前所未有地掌控了自己的供应链。在库存管理、订单履行率、原材料和产品交付上具有更为广阔的视野。利用具有预见性的大数据分析结果,可以使供需......一起来看看 《大数据供应链》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

html转js在线工具
html转js在线工具

html转js在线工具