<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          koalaGMLXML語法的界面框架

          聯(lián)合創(chuàng)作 · 2023-09-28 08:23

          koalaGML用類似于jsp的xml語法來允許開發(fā)人員從XML文檔(這一文檔定義了界面布局與內(nèi)容)中快速生成功能豐富的圖形用戶界面。

          實現(xiàn)上面這個界面的代碼是:

          <!--
              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>

          瀏覽 19
          點贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  天天日天天色 | 免费在线看黄的网站 | 在线观看2区 | 操美女B 操情无码 | 手机在线观看小视频 |