Chapter 10

Components


10. 元件 (Components)

元件類別 (components)

視窗元件配置 (layout components)

元件使用和調整 (use and adjust components)

共同屬性設定 (common properties)

元件觸發事件 (event)

 

 

jLIVE Builder™ 的元件是以 Java™ Swing 為基礎物件 (base object),內部以 MVC (Model, View, Controller) 運作的資料關聯元件 (data-aware component)。清單方塊 (Listbox)、下拉式清單方塊 (Combobox)、資料表元件 (Grid) 提供虛擬 (virtual mode) 讀取模式,不論連結的資料量多寡,皆能以最佳的效率呈現資料;統計圖元件 (Chart component) 以背景執行緒 (background thread) 運算、讀取資料,統計圖形以隨到資料即時繪製方式,呈現隨資料變化的動態統計圖示;計時器元件 (Timer),除了時間的顯示外,亦提供多執行緒 (multi-thread) 的事件流程 (event flow);備忘錄元件 (Memo)、圖片元件 (Image),可以直接連結儲存於資料表的二進位圖檔資料或圖檔路徑名稱;條碼元件 (Barcode) 是客製(third party)元件,採用條碼專業公司 Automation 所開發的元件為基礎物件,佈建執行 (deployment) 時須向 Automation 購買授權。

 

 

 

元件類別 (components)

 

 

 

▲Top

 

 

元件使用和調整 (use and adjust components)

  • 程式設計期 (design time)
     

    • 設定共同屬性 (common properties):格式 (format)、 外框 (border) 、字型 (font)。
       

    • 設定資料連結 (data binding) :聯結資料欄位(data Field)、運算公式 (formula) 。
       

    • 設定特殊屬性 (extra properties):元件個別的操作屬性。
       

    • 設定啟動事件 (fire event):依元件類別引發動作事件 (action)、 值變事件 (change)、 GainFocus事件、LostFocus事件、雙擊事件 (double click)、 右鍵事件 (right click)。
       

  • 程式執行期 (run time)
     

    • 調整元件位置 (position)、尺寸 (size)、顯示 (visible)、致能 (enable)、字型(font)、前背景顏色(foreground and background color)
       

      • 以啟動事件 (fire event)方式:引發元件事件 (component event) 中位置(position)、尺寸(Size)、顯示 (visible)、致能 (enable)、字型 (font)、前背景顏色 (foreground and background color) 的事件。

      • 以運算公式 (formula) 方式:SetProp("元件名稱", "屬性", "") ,參閱元件 Get-Set Component Properties
         

    • 調整元件Focus
       

      • 以啟動事件 (fire event)方式:引發元件事件 (component event) 中 Focus 事件。

      • 以運算公式 (formula)方式:SetProp(ComponentName, "focus", "1")。
         

    • 調整元件內含值
       

      • 以啟動事件 (fire event)方式:引發元件事件 (component event) 中內含值事件。

      • 以運算公式 (formula)方式:SetProp("元件名稱", "屬性", "") ,參閱元件 GertSet Component Properties

 

▲Top



Copyright © 2001~ 2004 Probe Technology . All Rights Reserved.

Questions, comments, and suggestions to Service@probe.com.tw