某個 swing 元件的 action listener 通常會使用 inner class 的技巧來處理. inner class 代表著一種 "live in" 的概念, 若 B 類別相依在 A類別, 沒有 A 就沒有 B 類別, 則 B 類別可以成為 A 類別的 inner class.
Inner class 的特性.
an inner class lets us avoid the encapsulation problem because it can access all the members of its enclosing instance.
2011年1月3日 星期一
2010年12月22日 星期三
2010年12月6日 星期一
建置 Eclipse + Glassfish 開發環境
IBM RAD 太貴, 要練習, 先架 Eclipse + Glassfish. 等到 WAR 及 JAR files 寫好後再用 AST 組裝 EAR 檔案, 並上傳至 WAS 61
2010年5月25日 星期二
2010年5月12日 星期三
Cost types in Oracle Inventory
Oracle Inventory is installed with three predefined cost
types: Frozen, Average, and Pending. These are costs currently in use
for an item and include material and overhead charges. See: Defining
Cost Types, Oracle Cost Management User’s Guide.
types: Frozen, Average, and Pending. These are costs currently in use
for an item and include material and overhead charges. See: Defining
Cost Types, Oracle Cost Management User’s Guide.
2010年5月11日 星期二
2010年5月7日 星期五
訂閱:
文章 (Atom)