锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲午夜精品一区二区公牛电影院,亚洲视频日韩视频,精品亚洲成A人在线观看青青http://m.tkk7.com/jayliu/category/1271.htmlWe are extremely fortunate not to know precisely the kind of world we live in zh-cnTue, 27 Feb 2007 12:38:16 GMTTue, 27 Feb 2007 12:38:16 GMT60SWT/Jface寮鍙戝叆闂ㄦ寚鍗?鍗佷竴) http://m.tkk7.com/jayliu/archive/2005/11/06/18399.html騫?/dc:creator>騫?/author>Sun, 06 Nov 2005 05:09:00 GMThttp://m.tkk7.com/jayliu/archive/2005/11/06/18399.htmlhttp://m.tkk7.com/jayliu/comments/18399.htmlhttp://m.tkk7.com/jayliu/archive/2005/11/06/18399.html#Feedback3http://m.tkk7.com/jayliu/comments/commentRss/18399.htmlhttp://m.tkk7.com/jayliu/services/trackbacks/18399.htmlJFace涓殑宸ュ叿鏉″拰鑿滃崟

鍓嶄竴鑺備腑鎴戜滑綆鍗曚粙緇嶄簡涓涓?/SPAN>Action銆傚叾瀹炴墍璋撶殑Action灝辨槸涓涓渶甯哥敤鐨勪簨浠訛紝涓句釜渚嬪瓙鏉ヨ錛屽浜庝竴涓寜閽潵璇村畠鍙互鏈夊涓簨浠訛紝姣斿鎸夐敭錛岀劍鐐癸紝榧犳爣錛岀瓑絳夌瓑絳夊惂錛屼絾鏄疄闄呬笂鍦ㄤ嬌鐢ㄧ▼搴忕殑鏃跺欙紝鎴戜滑鏈鍏沖績鐨勶紝灝辨槸鎸変笅鍘昏繖涓寜閽細鍙戠敓浠涔堬紝榪欎釜鍏跺疄灝辨槸鎵璋撶殑Action銆傚鏋滃ぇ瀹朵互鍓嶅仛榪?/SPAN>swing/awt鍙樻垚鐨勮瘽錛屽簲璇ュAction涓嶄細闄岀敓銆?/SPAN>

鍦?/SPAN>JFace閲岄潰錛屼竴涓?/SPAN>Action鍙互瀵瑰簲澶氫釜GUI瀵硅薄錛岃繖浜涘璞″氨鏄墍璋撶殑Contribution Item銆傛瘮濡傛垜浠湪涓鑸▼搴忛噷闈㈠緢甯歌鐨勨滄枃浠垛濊彍鍗曪紝涓嬮潰閮戒細鏈夆滄柊寤衡濓紝鈥滀繚瀛樷濈瓑絳夈傚悓鏃舵垜浠彲浠ュ湪宸ュ叿鏉′笂鏀劇疆鐩稿簲鐨勬寜閽紝閭d箞榪欎簺閮芥槸鏈夌浉鍚岀殑鍔熻兘錛屽湪JFace閲岄潰鎴戜滑鍙互鍙啓涓涓?/SPAN>Action錛岀劧鍚庢妸瀹冩槧灝勫埌涓嶅悓鐨?/SPAN>ContributionItem鍘伙紝鑰屼笉蹇呬負姣忎釜閮ㄤ歡閮藉啓涓涓插鐞嗕簨浠躲?/SPAN>

鎴戜滑涓嬮潰榪樻槸閫氳繃涓涓畝鍗曠殑渚嬪瓙鏉ヨ鏄庯紝鍦?/SPAN>JFace涓庝箞浣跨敤鑿滃崟鍜屽伐鍏鋒潯榪欎袱縐嶆渶鍩烘湰涔熸槸鏈鏈夌敤鐨?/SPAN>Contribution Item銆?/SPAN>

鎴戜滑榪欎釜紼嬪簭鍐欏緱寰堝偦錛屽氨鏄竴涓厜縐冪鐨勭獥鍙d笂鍋氫簡涓涓彍鍗曞拰宸ュ叿鏉℃寜閽紝鍔熻兘涔熷彧鏈変竴涓紝灝辨槸姣忔鐐逛竴涓嬶紝灝卞脊鍑轟竴涓緭鍏ユ鏉ラ棶浣犲悕瀛楁槸浠涔堬紝鐒跺悗鏄劇ず涓涓?/SPAN>Hello, xxx涔嬬被鐨勩?/SPAN>

棣栧厛鎴戜滑榪樻槸鏉ュ啓涓涓?/SPAN>Action綾伙細

 1 
 2 public class SayHiAction extends Action {
 3     private Shell shell;
 4 
 5     public SayHiAction(Shell shell) {
 6         super();
 7         this.shell = shell;
 8         this.setText("Say&Hi@Ctrl+H");
 9     }
10 
11     @Override
12     public void run() {
13         InputDialog input = new InputDialog(shell, "Input your name",
14                 "Please input your name here:"nullnull);
15         if (input.open() == Window.OK) {
16             MessageDialog.openInformation(shell, "Hello""Hello, "
17                     + input.getValue() + "!");
18         }
19 
20     }
21 
22 }
23 



浠g爜孌?/SPAN> 17

榪欏彧鏄竴涓緢綆鍗曠殑Action綾伙紝娌℃湁澶鍙鐨勩?/SPAN>

鐒跺悗鎴戜滑鍒涘緩涓涓?/SPAN>ApplicationWindow綾伙細

 1 
 2 public class Hiyou extends ApplicationWindow {
 3 
 4     private SayHiAction hiaction;
 5     public Hiyou(Shell parentShell) {
 6         super(parentShell);
 7         hiaction=new SayHiAction(getShell());
 8         addMenuBar();
 9         addToolBar(SWT.FLAT | SWT.WRAP);
10     }
11 
12     @Override
13     protected ToolBarManager createToolBarManager(int style) {
14         ToolBarManager toolbar=new ToolBarManager();
15         toolbar.add(hiaction);
16         return toolbar;
17     }
18 
19     @Override
20     protected MenuManager createMenuManager() {
21         MenuManager menubar=new MenuManager();
22         MenuManager fileMenu=new MenuManager("&File");
23         fileMenu.add(hiaction);
24         menubar.add(fileMenu);
25         return menubar;
26     }
27 
28     /**
29      * @param args
30      */
31     public static void main(String[] args) {
32         Hiyou window=new Hiyou(null);
33         window.setBlockOnOpen(true);
34         window.open();
35         Display.getCurrent().dispose();
36     }
37 
38 }
39 

 

浠g爜孌?/SPAN> 18

澶у鍙兘宸茬粡娉ㄦ剰鍒頒簡錛屽湪榪欓噷闈㈡垜浠噸杞戒簡createMenuManager鍜?/SPAN>createToolBarManager涓や釜鏂規硶錛屽畠浠殑鐢ㄩ斿氨鍜屽悕瀛椾竴鏍鳳紝涓涓槸鐢ㄦ潵鍒涘緩鑿滃崟鐨勶紝涓涓槸鐢ㄦ潵鍒涘緩宸ュ叿鏉$殑銆傞噸杞戒簡榪欎袱涓柟娉曚互鍚庯紝閫氳繃鍦ㄦ瀯閫犲嚱鏁頒腑璋冪敤addMenuBar鍜?/SPAN>addToolBar璁╁伐鍏鋒潯鍜岃彍鍗曟樉紺哄嚭鏉ャ?/SPAN>

榪欓噷鍊煎緱涓鎻愮殑鏄?/SPAN>MenuManager鍜?/SPAN>ToolBarManager綾伙紝濡傛灉澶у緲諱竴涓?/SPAN>API鏂囨。鐨勮瘽浼氬彂鐜板畠浠兘鏄墍璋撶殑contribution manager錛堝疄鐜頒簡IConntributionManager鎺ュ彛錛夛紝浣犲彲浠ラ氳繃榪欎簺contribution manager鏉ュ疄鐜板鐗瑰畾緇勪歡鐨勭鐞嗭紙娣誨姞鍒犻櫎絳夌瓑錛夈?/SPAN>

鍏蜂綋鍒拌彍鍗曠殑鍒涘緩錛岀湅浜嗘垜浠笂闈㈢殑浠g爜灝卞緢鏄庣櫧浜嗭紝灝辯洿鎺ヨ皟鐢ㄧ浉搴?/SPAN>MenuManager鐨?/SPAN>add鏂規硶鎶?/SPAN>action娣誨姞涓婂氨鍙互浜嗐?/SPAN>JFace浼氳嚜鍔ㄦ壘鍒拌繖涓?/SPAN>Action鐨?/SPAN>getText鏂規硶璁劇疆鑿滃崟鐨勬枃瀛椼傚鏋滄槸鏈夊ソ鍑犲眰鑿滃崟錛岄偅涔堝彧瑕佸湪閲嶆柊new涓涓?/SPAN>MenuManager娣誨姞鍒板凡鏈夌殑MenuManager閲岄潰灝卞彲浠ヤ簡銆傚氨璞″墠闈唬鐮佷腑鐨勶細

menubar.add(fileMenu);



鑷充簬宸ュ叿鏉″氨鏇寸畝鍗曚簡錛屽垱寤轟竴涓?/SPAN>ToolBarManager鐒跺悗鐩存帴add瀵瑰簲鐨?/SPAN>Action灝卞彲浠ヤ簡銆?/SPAN>

娣誨姞鍥炬爣

濡傛灉鑿滃崟鍙槸鏂囧瓧榪樻病鏈変粈涔堬紝濡傛灉浣犵殑宸ュ叿鏉¢兘鏄枃瀛楁槸涓嶆槸浼氭樉寰楀共宸村反鐨勶紵鍏跺疄鍙鎴戜滑涓?/SPAN>Action璁劇疆ImageDescriptor灝卞彲浠ヤ簡錛屾瘮濡備綘鍙互鑷繁鐢諱竴涓浘鏍囦繚瀛樺埌Action鐨勫寘涓嬮潰錛堟垜鐢諱簡涓涓?/SPAN>hi.gif錛夛紝鐒跺悗鎶?/SPAN>Action鐨勬瀯閫犲嚱鏁版敼鍐欐垚榪欐牱錛?BR>

public SayHiAction(Shell shell) {
        
super();
        
this.shell = shell;
        
this.setText("Say&Hi@Ctrl+H");
        
this.setImageDescriptor(ImageDescriptor.createFromFile(this.getClass(),
                
"hi.gif"));
    }



澶у娉ㄦ剰鏈鍚庝竴鍙ヨ瘽錛屽氨鏄負action璁劇疆鍥炬爣鐨勩傜劧鍚庡啀榪愯涓涓嬪氨浼氬彂鐜拌彍鍗曞拰宸ュ叿鏍忛兘鏈夊浘鏍囦簡銆?/SPAN>

緇撴潫璇?o:p>

榪欎竴緋誨垪鐨勬枃绔犻檰闄嗙畫緇啓鍒頒粖澶╋紝涔熷氨鍐欏畬浜嗐傚洖澶寸湅涓涓嬶紝铏界劧鍐呭閮藉緢嫻呮樉錛屼笉榪囨垜瑙夊緱鍦?/SPAN>swt鍜?/SPAN>JFace涓枃璧勬枡緙轟箯鐨勪粖澶╋紝鍙兘涔熷彲浠ョ粰澶у甯︽潵涓浜涘惎榪備粖鍚庢垜榪樹細鍐欎竴浜?/SPAN>eclipse騫沖彴寮鍙戠殑鏂囩珷錛屽ぇ瀹跺彲浠ョ櫥闄嗗埌鎴戠殑blog錛?/SPAN>http://blog.csdn.net/jayliu錛夋煡鐪嬨?/SPAN>

鍙﹀澶у涔熷彲浠ョ櫥闄嗗埌鍦ㄤ腑鍥?/SPAN>Eclipse紺懼尯錛?/SPAN>http://www.eclipseworld.org錛夛紝鍦ㄩ偅閲屼綘涔熷彲浠ユ壘鍒板緢澶氱殑甯姪鍜屾敮鎸侊紝褰撶劧錛屼綘涔熷彲浠ュ湪閭i噷鎵懼埌鎴戙?/SPAN>



]]>
SWT/Jface寮鍙戝叆闂ㄦ寚鍗?鍗?http://m.tkk7.com/jayliu/archive/2005/10/14/15537.html騫?/dc:creator>騫?/author>Fri, 14 Oct 2005 09:42:00 GMThttp://m.tkk7.com/jayliu/archive/2005/10/14/15537.htmlhttp://m.tkk7.com/jayliu/comments/15537.htmlhttp://m.tkk7.com/jayliu/archive/2005/10/14/15537.html#Feedback5http://m.tkk7.com/jayliu/comments/commentRss/15537.htmlhttp://m.tkk7.com/jayliu/services/trackbacks/15537.htmlJFace涓殑浜嬩歡妯″紡

澶у濂斤紝鍥犱負宸ヤ綔鐨勪簨鎯呮悶浜嗕竴涓鏈堬紝鐜板湪緇堜簬鏆傛椂瀹夊畾涓嬫潵浜嗐傝繖涓緋誨垪鐨勬枃绔犳垜涔熶細緇х畫寰涓嬪啓銆?/SPAN>

鍦ㄨ繖涓鑺備腑錛屾垜浼氬悜澶у浠嬬粛JFace涓殑浜嬩歡妯″紡銆傚叾瀹炴垜鐩鎬俊榪欑瘒鏂囩珷鐨勮鑰呭簲璇ュぇ閮ㄥ垎閮戒細鎺ヨЕeclipse錛岃繖鏍峰彲鑳戒篃浼氭帴瑙﹁繃eclipse鐨勬彃浠跺紑鍙戙傚氨鏄病鏈夋帴瑙﹁繃錛屽ぇ瀹朵篃鍙兘浼氭湁鍦?/SPAN>eclipse閲岄潰鏂板緩宸ョ▼鐨勬椂鍊欏嚭浜庡悇縐嶅師鍥狅紙姣斿濂藉蹇冿級鐐逛簡plug-in project鐨勬椂鍊欏惂銆傚叾瀹炰綔涓轟竴涓▼搴忓憳鏉ヨ錛屼繚鎸佸ソ濂囨槸寰堥噸瑕佺殑銆傚鏋滀綘澶ф鐪嬭繃涓涓?/SPAN>plug-in project鐨勭粨鏋勶紝铏界劧鍙兘涓嶈兘鍏ㄩ儴鐞嗚В錛屼絾鏄垜鐩鎬俊涔熷簲璇ュAction涔嬬被鏈変竴浜涗簡瑙c傛垜浠繖涓鑺備富瑕佸氨鏄洿緇?/SPAN>Action鏉ュ啓鐨勩備負浜嗗鍔犲彲璇繪э紝鎴戜滑棣栧厛浠嬬粛鍑犱釜鍚嶈瘝錛岃繖浜涘悕璇嶉兘鍙互浠?/SPAN>eclipse鐨勬枃妗d腑鎵懼埌銆?/SPAN>

浠涔堟槸Action

JFace涓殑涓涓?/SPAN>Action鍙互綆鍗曞湴鐞嗚В鎴愪竴涓?SPAN style="COLOR: blue">鍛戒護銆傞偅涔堝畠鍜?SPAN style="COLOR: blue">浜嬩歡鏈変粈涔堝叧緋誨憿錛熸瘮濡傝鎴戠偣浜嗕竴涓彍鍗曪紝閭d箞鐐瑰嚮鏈韓灝辨槸涓涓簨浠訛紝浣嗘槸榪欎釜浜嬩歡鐨勫獎鍝嶅氨鏄浉搴旂殑鍛戒護琚墽琛屼簡銆傚ぇ瀹舵棩甯鎬嬌鐢ㄧ殑涓浜涜蔣浠舵瘮濡?/SPAN>Office閮芥槸鏈夎彍鍗曞拰宸ュ叿鏍忕殑錛岃屼竴涓彍鍗曢」鍜屼竴涓伐鍏鋒爮鍙兘鎵ц鐨勬槸鍚屼竴涓懡浠ゃ傛瘮濡?/SPAN>Word閲岄潰瑕佹柊寤轟竴涓枃妗g殑璇濆彲浠ラ氳繃鈥?/SPAN>鏂囦歡鈥?/SPAN>鑿滃崟涓嬬殑鈥?/SPAN>鏂板緩鈥?/SPAN>瀹炵幇錛屼篃鍙互閫氳繃鐐瑰嚮宸ュ叿鏍忎笂鐩稿簲鐨勫浘鏍囧疄鐜般傝繖涓柊寤哄湴鍔熻兘鏈韓鍦?/SPAN>JFace閲岄潰鏄彲浠ヤ嬌鐢?/SPAN>Action鏉ュ疄鐜扮殑銆?/SPAN>

鍦?/SPAN>JFace閲岄潰錛?/SPAN>Action鍙互鍏寵仈鍒拌彍鍗曪紝宸ュ叿鏉★紝浠ュ強鎸夐挳錛堜篃灝辨槸Button錛夈傚綋鐒跺叧浜庡浣曞叧鑱旓紝鎴戜滑浼氬湪鍚庨潰鍚戝ぇ瀹惰緇嗕粙緇嶃?/SPAN>

Action鍦?/SPAN>JFace閲岄潰鐨勫畾涔夋槸涓涓帴鍙?/SPAN>org.eclipse.jface.action.IAction銆傚綋鐒跺疄闄呬笂浣犲啓紼嬪簭鐨勬椂鍊欏繀欏昏嚜宸辨潵瀹炵幇榪欎釜鎺ュ彛錛屽啓鍑鴻嚜宸辯殑Action綾繪潵銆?/SPAN>

IAction閲岄潰鏈閲嶈鐨勬柟娉曟槸run()錛屽畠涔熸槸浜嬩歡瑙﹀彂浠ュ悗鎵ц鐨勪唬鐮併傚叾浠栫殑鏂規硶閮芥槸涓浜涜緟鍔╂х殑鏂規硶錛屼笉鏄垜浠鍏蟲敞鐨勯噸鐐廣備負浜嗚兘澶熷皢綺懼姏闆嗕腑鍦ㄦ垜浠墍鍏蟲敞鐨勪簨鎯呬笂錛岄氬父鎴戜滑涓嶆槸瀹炵幇IAction鎺ュ彛錛岃屾槸閫氳繃緇ф壙org.eclipse.jface.action.Action榪欎釜鎶借薄綾繪潵瀹炵幇Action銆備笅闈㈡垜浠氳繃涓涓緥瀛愭潵璇存槑Action鐨勭敤娉曘?BR>

Hello,Action!

棣栧厛鎴戜滑鍏堜笉綆$敤鎴風晫闈紝鍏堝畾涔変竴涓渶綆鍗曠殑Action綾匯?BR>

 1 public class HelloAction extends Action{
 2     private Shell shell;
 3     
 4     public HelloAction(Shell shell) {    
 5         super("&Hello",Action.AS_PUSH_BUTTON);
 6         this.shell=shell;
 7     }
 8 
 9 
10     @Override
11     public void run() {
12         MessageDialog.openInformation(shell, "Hello""Hello,Action!");
13     }
14     
15 }
16 


浠g爜孌?/SPAN> 15

榪欐浠g爜鍏跺疄搴旇榪樻槸寰堝ソ璇繪噦鐨勩傚甫鍙傜殑鏋勯犲嚱鏁板甫榪涙潵涓涓?/SPAN>Shell瀹炰緥錛岃?/SPAN>run()鏂規硶璇存槑浜嗚繖涓?/SPAN>Action鐨勫姛鑳藉氨鏄樉紺轟竴涓璇濇銆傜5琛屼腑鐨勪唬鐮佽皟鐢ㄤ簡鐖剁被鐨勬瀯閫犲嚱鏁幫紝鍏朵腑絎竴涓弬鏁版槸Action瀵瑰簲鐨勬枃鏈紝鍓嶉潰鐨?/SPAN>&絎﹀彿琛ㄦ槑浜?/SPAN>H鏄儹閿紝鑰岀浜屼釜鍙傛暟鍒欐槸涓涓鏍煎弬鏁般傚鏋滃ぇ瀹剁戶緇悜鍚庣湅鐨勮瘽錛屽氨浼氬彂鐜拌繖涓?/SPAN>Action琚檮鍔犲湪浜嗕竴涓寜閽笂闈紝鑰屾寜閽笂鏄劇ず鐨勬枃鏈氨鏄?/SPAN>Hello錛屽鏋滀綘瀹氫箟鐨勯鏍間笉鏄?/SPAN>AS_PUSH_BUTTON鑰屾槸AS_RADIO_BUTTON鐨勮瘽灝變細鍙戠幇鎸夐挳宸茬粡涓嶆槸涓涓函綺圭殑鎸夐挳浜嗭紝鑰屾槸涓涓崟閫夐挳銆傜浉搴旂殑鍏朵粬椋庢牸鍙互鍙傜収Javadoc銆?BR>

 1 
 2 public class HelloJface extends ApplicationWindow {      
 3     public HelloJface(Shell shell) {
 4         super(shell);
 5     }
 6       @Override
 7     protected Control createContents(Composite parent) {
 8           HelloAction action=new HelloAction(parent.getShell());
 9           ActionContributionItem aci=new ActionContributionItem(action);
10           aci.fill(parent);
11           return parent;
12    }  
13    /**
14     * @param args
15     */
16    public static void main(String[] args) {
17 
18        HelloJface demo = new HelloJface(null);
19        demo.setBlockOnOpen(true);
20        demo.open();
21        Display.getCurrent().dispose();
22 
23    }
24 }


浠g爜孌?/SPAN> 16

鍜屽墠闈竴鑺傜殑浠g爜鐩告瘮錛屾垜浠彧鏄慨鏀逛簡createContents鏂規硶銆傞鍏堝垱寤轟簡涓涓?/SPAN>HelloAction鐨勫疄渚嬶紝鐒跺悗鍙堝垱寤轟簡涓涓?/SPAN>ActionContributionItem鐨勫疄渚嬶紝鏈鍚庤皟鐢ㄤ簡榪欎釜瀹炰緥鐨?/SPAN>fill鏂規硶灝嗘寜閽坊鍔犲埌紿楀彛涓紝榪欏氨鏄叏閮ㄤ簡銆傛槸涓嶆槸寰堢畝鍗曞憿錛熺▼搴忚繍琛屽嚭鏉ョ殑鏁堟灉濡備笅鍥撅細

r_helloaction.JPG

鍥?/SPAN> 16

鍙兘鐪嬩簡榪欎釜渚嬪瓙錛屼綘浼氳涓?/SPAN>ActionContributionItem榪欎釜綾昏〃紺虹殑灝辨槸涓涓寜閽簡銆備絾鏄疄闄呬笂騫朵笉鏄殑錛屽畠鍦ㄥ浘褰㈢晫闈笂琛ㄧず鎴愪粈涔堟牱瀛愶紝闅忕潃涓嶅悓鐨?/SPAN>fill璋冪敤鍙堟湁涓嶅悓銆傚湪涓嬩竴鑺備腑錛屾垜浼氬悜澶у娣卞叆浠嬬粛Contribution Item浠ュ強JFace涓殑鑿滃崟錛屽伐鍏鋒潯絳夌殑搴旂敤銆傝繖涓鑺傚氨鍒拌繖閲岀粨鏉熶簡錛屽洜涓哄垰鍒氭崲浜嗗伐浣滅幆澧冿紝鏈夊緢澶氫簨鎯呴渶瑕佸幓鍋氾紝鎵浠ュ啓寰楁瘮杈冪煭錛岃澶у瑙佽皡錛氾級銆?/SPAN>

 



]]>
鍦╓ebLogic涓嬌鐢℉ibernatehttp://m.tkk7.com/jayliu/archive/2005/07/11/7516.html騫?/dc:creator>騫?/author>Mon, 11 Jul 2005 11:17:00 GMThttp://m.tkk7.com/jayliu/archive/2005/07/11/7516.htmlhttp://m.tkk7.com/jayliu/comments/7516.htmlhttp://m.tkk7.com/jayliu/archive/2005/07/11/7516.html#Feedback1http://m.tkk7.com/jayliu/comments/commentRss/7516.htmlhttp://m.tkk7.com/jayliu/services/trackbacks/7516.html闃呰鍏ㄦ枃

]]>
J2SE5.0鏂扮壒鎬?--鍙橀暱鍙傛暟(Varargs)http://m.tkk7.com/jayliu/archive/2005/05/22/5055.html騫?/dc:creator>騫?/author>Sun, 22 May 2005 08:46:00 GMThttp://m.tkk7.com/jayliu/archive/2005/05/22/5055.htmlhttp://m.tkk7.com/jayliu/comments/5055.htmlhttp://m.tkk7.com/jayliu/archive/2005/05/22/5055.html#Feedback0http://m.tkk7.com/jayliu/comments/commentRss/5055.htmlhttp://m.tkk7.com/jayliu/services/trackbacks/5055.html鍙橀暱鍙傛暟錛?/SPAN>Varargs錛?/SPAN>

涓庢硾鍨嬩竴鏍鳳紝鍙橀暱鍙傛暟鏄?/SPAN>C++涓湁鑰?/SPAN>Java涓病鏈夌殑涓縐嶈璦鐗規э紝鍦ㄨ繃鍘誨鏋滄垜浠兂鍚戜竴涓嚱鏁頒紶閫掑彲鍙樻暟閲忕殑鍑芥暟錛屽氨蹇呴』棣栧厛灝嗚繖浜涘弬鏁版斁鍏ヤ竴涓暟緇勪腑錛岀劧鍚庡皢鏁扮粍浼犻掔粰鍑芥暟銆傚氨濡傚悓涓嬮潰鎵浣滅殑涓鏍鳳細

Object[] arguments = { 640, "kb", "anybody", "Bill Gates" };

String result = MessageFormat.format(

                   "{3}:{0,number,integer}{1} ought to be enough for {2}  ",

                   arguments);

 

鍦?/SPAN>J2SE5.0涓紝鍙傛暟浠嶇劧鏄鏀懼叆涓涓暟緇勪腑浼犵粰瀵瑰簲鐨勬柟娉曪紝浣嗘槸涓嶅悓鐨勬槸錛屼綘涓嶅啀闇瑕佹墜鍔ㄧ殑鍒涘緩鏁扮粍錛岃屾槸鍙渶瑕佸皢閭d簺鍙傛暟緗楀垪鍑烘潵錛屽叾浠栫殑宸ヤ綔鐢辮櫄鎷熸満鏇夸綘瀹屾垚銆傛墍浠ョ幇鍦ㄦ垜浠彲浠ヨ繖鏍峰啓錛?/SPAN>

String result = MessageFormat.format(

                                     "{3}:{0,number,integer}{1} ought to be enough for {2}  ",

                                     640, "kb", "anybody", "Bill Gates");

 

鎴戜滑閫氳繃涓涓ず渚嬪嚱鏁版潵璇存槑浣跨敤鍙橀暱鍙傛暟鍑芥暟鐨勫畾涔夈傝繖涓嚱鏁版墦鍗板嚭涓涓漢鍏葷殑鍑犳潯鐙楃殑鍚嶅瓧銆?/FONT>

private void printDogNames(String... dogs)

{

         System.out.println("I have " + dogs.length + " dogs:");

         for(String dogname:dogs)

         {

                   System.out.println(dogname);

         }

}

 

浜嬪疄涓婂彉闀垮弬鏁?/SPAN>dogs鏄竴涓暟緇勩?/SPAN>

涓涓嚱鏁扮殑鍙傛暟涓彧鑳芥湁涓涓彉闀垮弬鏁幫紝鎵浠ョ被浼間笅闈㈢殑瀹氫箟鏄?SPAN style="COLOR: red">涓嶅悎娉?/SPAN>鐨勶細

private void printDogNames(String... dogs,float... dogage)

 

濡傛灉鍐沖畾鎶婂嚱鏁板弬鏁拌緗負鍙彉闀垮害鐨勶紝浣犲繀欏繪兂鍒拌繖鏍蜂竴縐嶆儏鍐碉紝灝辨槸璋冪敤鐨勭▼搴忓緢鍙兘浼氫笉緇欎綘浼犱換浣曠殑鍙傛暟錛岃繖涓椂鍊欎綔涓哄弬鏁扮殑鏁扮粍length涓?/SPAN>0錛岃岃繖鍦ㄨ娉曚笂鏄畬鍏ㄥ悎娉曠殑錛屾墍浠ヤ綘蹇呴』鍦ㄥ嚱鏁板畾涔変腑鑰冭檻鍒拌繖縐嶆儏鍐點?/SPAN>

 



]]>
SWT/Jface寮鍙戝叆闂ㄦ寚鍗楋紙涓夛級 http://m.tkk7.com/jayliu/archive/2005/05/19/4875.html騫?/dc:creator>騫?/author>Thu, 19 May 2005 09:33:00 GMThttp://m.tkk7.com/jayliu/archive/2005/05/19/4875.htmlhttp://m.tkk7.com/jayliu/comments/4875.htmlhttp://m.tkk7.com/jayliu/archive/2005/05/19/4875.html#Feedback1http://m.tkk7.com/jayliu/comments/commentRss/4875.htmlhttp://m.tkk7.com/jayliu/services/trackbacks/4875.html闃呰鍏ㄦ枃

]]>
SWT/Jface寮鍙戝叆闂ㄦ寚鍗楋紙浜岋級http://m.tkk7.com/jayliu/archive/2005/05/18/4460.html騫?/dc:creator>騫?/author>Wed, 18 May 2005 02:35:00 GMThttp://m.tkk7.com/jayliu/archive/2005/05/18/4460.htmlhttp://m.tkk7.com/jayliu/comments/4460.htmlhttp://m.tkk7.com/jayliu/archive/2005/05/18/4460.html#Feedback4http://m.tkk7.com/jayliu/comments/commentRss/4460.htmlhttp://m.tkk7.com/jayliu/services/trackbacks/4460.html浠?/SPAN>Hello, world!寮濮嬩簡瑙?/SPAN>Display鍜?/SPAN>Shell

鍦ㄨ繖涓鑺備腑錛屾垜浠粠鍓嶉潰鎵鍒椾婦鍑烘潵鐨?/SPAN>Hello, world!紼嬪簭寮濮嬪swt榪涜涓浜涘垵姝ョ殑鎺㈢儲銆傛墍璋撶殑鍒濇鏄寚錛屾垜浠細浠嬬粛緙栧啓swt紼嬪簭鐨勫熀鏈濊礬錛屼互鍙婂涓や釜閲嶈鐨勭被:Display鍜?/SPAN>Shell浣滀竴浜涗粙緇嶃?BR>

鍥犱負榪欎竴鑺傚拰鍓嶄竴鑺傛槸鍒嗘垚涓や釜閮ㄥ垎璐村嚭鏉ョ殑錛屾墍浠ユ垜浠嶇劧灝?/SPAN>Hello, world!鐨勪唬鐮佹鍦ㄤ笅闈㈠垪鍑烘潵錛?/SPAN>

 1package swtjfacesample;
 2
 3import org.eclipse.swt.SWT;
 4import org.eclipse.swt.widgets.Display;
 5import org.eclipse.swt.widgets.Shell;
 6import org.eclipse.swt.widgets.Text;
 7
 8public class HelloSwt {
 9    /**
10     * Hello,world!
11     * 
12     * @param args
13     */

14       public static void main(String[] args) {
15        Display display = new Display();
16        Shell shell = new Shell(display);
17        
18        Text helloText = new Text(shell, SWT.CENTER);
19        helloText.setText("Hello,World!");
20        helloText.pack();
21        
22        shell.pack();
23        shell.open();
24
25        while (!shell.isDisposed()) {
26            if (!display.readAndDispatch()) {
27                display.sleep();
28            }

29        }

30        display.dispose();
31
32    }

33}


浠g爜孌?/EM> 2

榪欐紼嬪簭铏界劧寰堢畝鍗曪紝浣嗘槸瀹冨弽鏄犱簡鎴戜滑涔﹀啓swt紼嬪簭鐨勬楠わ紝榪欎簺姝ラ鏄細

1.      鍒涘緩涓涓?/SPAN>Display瀵硅薄

2.      鍒涘緩涓涓垨鑰呭涓?/SPAN>Shell瀵硅薄錛屼綘鍙互璁や負Shell浠h〃浜嗙▼搴忕殑紿楀彛銆?/SPAN>

3.      鍦?/SPAN>Shell鍐呭垱寤哄悇縐嶉儴浠訛紙widget錛?/SPAN>

4.      瀵瑰悇涓儴浠惰繘琛屽垵濮嬪寲錛堝瑙傦紝鐘舵佺瓑錛夛紝鍚屾椂涓哄悇縐嶉儴浠剁殑浜嬩歡鍒涘緩鐩戝惉鍣紙listener錛?/SPAN>

5.      璋冪敤Shell瀵硅薄鐨?/SPAN>open()鏂規硶浠ユ樉紺虹獥浣?/SPAN>

6.      鍚勭浜嬩歡榪涜鐩戝惉騫跺鐞嗭紝鐩村埌紼嬪簭鍙戝嚭閫鍑烘秷鎭?/SPAN>

7.      璋冪敤Display瀵硅薄鐨?/SPAN>dispose()鏂規硶浠ョ粨鏉熺▼搴忋?/SPAN>

 

鍦?/SPAN>Hello,world!紼嬪簭涓紝涓轟簡璁╃▼搴忔洿鍔犵畝鍗曪紝鎴戜滑娌℃湁鍒涘緩浜嬩歡鐩戝惉鍣紝鍦ㄤ互鍚庣殑鍐呭涓細榪涜涓撻棬浠嬬粛銆?/SPAN>

鐜板湪璁╂垜浠◢寰繁鍏ヤ竴浜涳紝鐪嬩竴涓嬭繖浜?/SPAN>Display,Shell鏈変粈涔堜綔鐢ㄤ互鑷充簬鎴戜滑姣忎釜紼嬪簭閮藉繀欏繪湁瀹冧滑瀛樺湪銆?/SPAN>

Display:涓庢搷浣滅郴緇熸矡閫氱殑妗ユ

鎴戜滑鍦ㄥ墠闈㈣榪囷紝姣忎釜swt紼嬪簭鍦ㄦ渶寮濮嬮兘蹇呴』鍒涘緩涓涓?/SPAN>Display瀵硅薄銆?/SPAN>Display瀵硅薄璧蜂粈涔堜綔鐢ㄥ憿錛熷畠鏄?/SPAN>swt涓庢搷浣滅郴緇熸矡閫氱殑涓搴фˉ姊併傚畠璐熻矗swt鍜屾搷浣滅郴緇熶箣闂寸殑閫氫俊銆傚畠灝?/SPAN>swt/JFace鐨勫悇縐嶈皟鐢ㄨ漿鍖栦負緋葷粺鐨勫簳灞傝皟鐢紝鎺у埗鎿嶄綔緋葷粺涓?/SPAN>swt鍒嗛厤鐨勮祫婧愩傚悓鏃舵垜浠篃鍙互閫氳繃Display瀵硅薄寰楀埌鎿嶄綔緋葷粺鐨勪竴浜涗俊鎭?/SPAN>

Display鏄竴涓?/SPAN>鈥?/SPAN>騫曞悗宸ヤ綔鑰?/SPAN>鈥?/SPAN>錛屽畠涓?/SPAN>swt/JFace鎻愪緵鏀寔錛屼絾鏄綘騫朵笉鑳藉浠庢煇涓敤鎴風晫闈腑鐪嬪埌瀹冪殑褰卞瓙銆?/SPAN>

鍦ㄥ墠闈㈢殑Hello,world!紼嬪簭涓紝鎴戜滑鍙互鐪嬪埌鏋勫緩涓涓?/SPAN>Display瀵硅薄鏄拰鏅氱殑Java瀵硅薄涓鏍烽氳繃鏋勯犲嚱鏁板疄鐜扮殑銆傚畠涓哄疄鐜板浘褰㈢晫闈㈠噯澶囦簡鏈鍩烘湰鐨勬潯浠躲傝屽湪紼嬪簭緇撴潫鏃舵垜浠繀欏繪樉寮忓湴璋冪敤dispose() 鏂規硶鏉ラ噴鏀劇▼搴忚繍琛屼腑鎵鑾峰緱鐨勮祫婧愩備竴鑸潵璇達紝涓涓▼搴忓彧闇瑕佷竴涓?/SPAN>Display瀵硅薄錛屽綋鐒舵病鏈変漢紱佹浣犲垱寤哄涓?/SPAN>Display瀵硅薄銆備絾鏄湪swt鐨?/SPAN>javadoc涓紝鎴戜滑鍙互鐪嬪埌鍏充簬榪欎釜闂涓浜涙弿榪幫細

鈥淎pplications which are built with SWT will almost always require only a single display. In particular, some platforms which SWT supports will not allow more than one active display. In other words, some platforms do not support creating a new display if one already exists that has not been sent the dispose() message.鈥?o:p>

Display鏈夌潃浼楀鐨勬柟娉曪紝鎴戜滑涓嶅彲鑳戒竴涓浠嬬粛銆傚湪榪欓噷鍙寫閫夊嚑涓彲鑳戒細姣旇緝甯哥敤鐨勪綔涓浜涚畝鍗曚粙緇嶃?/SPAN>

l         setData()鍜?/SPAN>getData()錛氳繖涓瀵瑰嚱鏁板厑璁告垜浠負Display瀵硅薄璁懼畾涓浜涙暟鎹紝setData()鐨勫弬鏁頒腑key鍜?/SPAN>value綾諱技浜庢垜浠湪浣跨敤Map瀵硅薄涓?/SPAN>key鍜?/SPAN>value鐨勫惈涔夈?/SPAN>

l         getShells()寰楀埌鍏寵仈鍒拌Display瀵硅薄鐨勬墍鏈夋病鏈?/SPAN>dispose鐨?/SPAN>Shell瀵硅薄

l         getCurrent()寰楀埌涓庣敤鎴蜂氦浜掔殑褰撳墠綰跨▼

l         readAndDispatch()寰楀埌浜嬩歡騫朵笖璋冪敤瀵瑰簲鐨勭洃鍚櫒榪涜澶勭悊

l         sleep()絳夊緟浜嬩歡鍙戠敓

Shell:紿楀彛

涓涓?/SPAN>Shell瀵硅薄灝辨槸涓涓獥鍙c備綘鍙互鍦ㄤ笂闈㈡斁緗悇縐嶉儴浠跺垱寤轟赴瀵岀殑鍥懼艦鐣岄潰銆?/SPAN>

鎴戜滑閮界煡閬撶獥鍙f湁寰堝縐嶏紝姣斿紿楀彛鏈夊彲浠ヨ皟鏁村ぇ灝忕殑錛屾湁涓嶅彲浠ョ殑錛屾湁鐨勬病鏈夋渶澶у寲鏈灝忓寲鎸夐挳銆傝繖浜涚獥浣撶殑鐗瑰緛鍦?/SPAN>swt涓鎴愪負椋庢牸錛?/SPAN>style錛夈備竴涓獥浣撶殑椋庢牸鍙互鐢ㄤ竴涓暣鏁拌繘琛屽畾涔夈傝繖浜涢鏍肩殑瀹氫箟鍦?/SPAN>org.eclipse.swt.SWT涓?/SPAN>

Shell瀵硅薄鍙敤鐨勯鏍煎寘鎷細BORDER, CLOSE, MIN, MAX, NO_TRIM, RESIZE, TITLE , PLICATION_MODAL, MODELESS, PRIMARY_MODAL,S YSTEM_MODAL

榪欎簺椋庢牸鎴戜滑涓嶄綔涓涓浠嬬粛錛屼綘鍙互浠庝粬浠瓧闈㈡剰涔夌湅鍑轟竴浜涘惈涔夋潵錛屽綋鐒朵篃鍙互鍙傝冨搴旂殑javadoc銆?/SPAN>

鎴戜滑鍙互鍦ㄤ竴涓?/SPAN>Shell鐨勬瀯閫犲嚱鏁頒腑瀹氫箟瀹冪殑椋庢牸錛屾瘮濡傚湪鍓嶉潰鐨?/SPAN>Hello,world!紼嬪簭涓紝鎴戜滑鍙互榪欐牱瀹氫箟Shell銆?/SPAN>

 

Shell shell = new Shell(display,SWT.CLOSE | SWT.SYSTEM_MODAL);

 

鏈鍚庡緱鍒扮殑紿椾綋娌℃湁鏈澶у寲鍜屾渶灝忓寲鎸夐挳錛屽茍涓斿ぇ灝忔槸鍥哄畾涓嶅彉鐨勩?/SPAN>

鍥犱負swt榪愯浜庡悇縐嶅鉤鍙頒箣涓婏紝鑰岃繖浜涘鉤鍙頒笂鐨勭獥鍙g鐞嗗櫒鍗冨樊涓囧埆錛屾墍浠ユ墍鏈夎繖浜涢鏍奸兘涓嶆槸鑲畾鍙互瀹炵幇鐨勩傚湪swt鐨?/SPAN>javadoc涓紝榪欒縐頒負鏆楃ず錛?/SPAN>hints錛夈?/SPAN>

Shell瀵硅薄鐨勬柟娉曞ぇ閮藉拰GUI鏈夊叧錛屾瘮濡?/SPAN>setEnabled()璁懼畾浜嗙獥浣撴槸鍚﹁兘澶熷拰鐢ㄦ埛榪涜浜や簰錛?/SPAN>setVisble()璁懼畾浜嗙獥浣撴槸鍚﹀彲瑙侊紝setActive()灝嗙獥浣撹涓哄綋鍓嶇殑媧誨姩紿楀彛銆?/SPAN>

鎴戜滑鍙互鐢?/SPAN>open()鏂規硶鎵撳紑涓涓獥浣擄紝close()鏂規硶鍏抽棴涓涓獥浣撱?/SPAN>

灝忕粨

鏈妭璁ㄨ浜?/SPAN>Display鍜?/SPAN>Shell鐨勪竴浜涙蹇碉紝榪欐槸鎴戜滑浠ュ悗榪涗竴姝ヤ簡瑙?/SPAN>swt鐨勫熀紜銆傚湪涓嬩竴鑺備腑錛屾垜灝嗕粙緇嶅悇縐嶉儴浠訛紙widget錛夌殑鐢ㄦ硶錛屾墍璋撻儴浠訛紝鏄寚鏂囨湰妗嗭紝鏍囩絳?/SPAN>UI瀹炰綋銆?/SPAN>



]]>
SWT/Jface寮鍙戝叆闂ㄦ寚鍗楋紙涓錛?/title><link>http://m.tkk7.com/jayliu/archive/2005/05/17/4389.html</link><dc:creator>騫?/dc:creator><author>騫?/author><pubDate>Tue, 17 May 2005 00:45:00 GMT</pubDate><guid>http://m.tkk7.com/jayliu/archive/2005/05/17/4389.html</guid><wfw:comment>http://m.tkk7.com/jayliu/comments/4389.html</wfw:comment><comments>http://m.tkk7.com/jayliu/archive/2005/05/17/4389.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.tkk7.com/jayliu/comments/commentRss/4389.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/jayliu/services/trackbacks/4389.html</trackback:ping><description><![CDATA[     鎽樿: SWT/Jface寮鍙戝叆闂ㄦ寚鍗?鍐欏湪鍓嶉潰鐨勮瘽 緇堜簬鍐沖畾鎻愯搗絎旀潵鍐欎竴綃囧叧浜巗wt鍜孞Face緙栫▼鐨勬枃绔犮傚湪寮濮嬩箣鍓嶏紝鎴戞兂鍏堜粙緇嶄竴涓嬩綘鑳藉浠庡皢瑕佸嚭鐜扮殑榪欎竴緋誨垪鏂囩珷閲屽緱鍒頒粈涔堬紝浠ュ強鏇撮噸瑕佺殑錛屼綘涓嶈兘寰楀埌浠涔堛傛垜浠殑鏃墮棿鏄姝や箣閲嶈錛屼互鑷充簬鎴戜滑寰堥毦瀹瑰繊鎶婂畠嫻垂鍦ㄨ嚜宸變笉鍏沖績鐨勪簨鎯呬笂銆?鍥犱負鎴戝垰寮濮嬪啓錛屾墍浠ュ埌搴曡繖浜涙枃绔犱細鍒嗘垚鍑犳鍙戝竷鍑烘潵錛屼篃寰堥毦璁層備絾鏄垜蹇冮噷澶т綋鏈夎繖鏍蜂竴涓彁綰層備篃灝辨槸璇達紝鎴戞墦綆椾粙緇嶄互涓嬫柟闈?..  <a href='http://m.tkk7.com/jayliu/archive/2005/05/17/4389.html'>闃呰鍏ㄦ枃</a><img src ="http://m.tkk7.com/jayliu/aggbug/4389.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/jayliu/" target="_blank">騫?/a> 2005-05-17 08:45 <a href="http://m.tkk7.com/jayliu/archive/2005/05/17/4389.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>ejb3.0鐨勫嚑鐐規樉钁楃壒鎬?/title><link>http://m.tkk7.com/jayliu/archive/2005/05/12/4241.html</link><dc:creator>騫?/dc:creator><author>騫?/author><pubDate>Thu, 12 May 2005 13:38:00 GMT</pubDate><guid>http://m.tkk7.com/jayliu/archive/2005/05/12/4241.html</guid><wfw:comment>http://m.tkk7.com/jayliu/comments/4241.html</wfw:comment><comments>http://m.tkk7.com/jayliu/archive/2005/05/12/4241.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.tkk7.com/jayliu/comments/commentRss/4241.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/jayliu/services/trackbacks/4241.html</trackback:ping><description><![CDATA[<P class=MsoList style="MARGIN: 0cm 0cm 11pt 75pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 75.0pt"><SPAN lang=EN-US style="mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-list: Ignore"><FONT face="Times New Roman"><FONT size=2>1.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">          </SPAN></FONT></SPAN></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT size=2>鍏冩暟鎹殑寮曞叆錛氫互娉ㄩ噴鐨勫艦寮忚〃紺哄厓鏁版嵁錛屽彇浠d簡榪囧幓澶ч噺鐨勯厤緗枃浠?/FONT></SPAN></P> <P class=MsoList style="MARGIN: 0cm 0cm 11pt 75pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 75.0pt"><SPAN lang=EN-US style="mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-list: Ignore"><FONT face="Times New Roman"><FONT size=2>2.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">          </SPAN></FONT></SPAN></SPAN><FONT size=2><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍚勭</SPAN><SPAN lang=EN-US><FONT face="Times New Roman">enterprise bean</FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鐨勫畾涔夐兘鍙渶瑕佸畾涔変竴浜?/SPAN><SPAN lang=EN-US><FONT face="Times New Roman">POJO</FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍜?/SPAN><SPAN lang=EN-US><FONT face="Times New Roman">POJI</FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">閰嶅悎鍏冩暟鎹嵆鍙畬鎴?/SPAN></FONT></P> <P class=MsoList style="MARGIN: 0cm 0cm 11pt 75pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 75.0pt"><SPAN lang=EN-US style="mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-list: Ignore"><FONT face="Times New Roman"><FONT size=2>3.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">          </SPAN></FONT></SPAN></SPAN><FONT size=2><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">鍥炶皟鏈哄埗錛?/SPAN><SPAN lang=EN-US><FONT face="Times New Roman">callback</FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錛変篃鏄敤鏅氱殑鏂規硶鍔犱互涓瀹氱殑娉ㄩ噴錛屼唬鏇夸簡鍘熸湁鐨?/SPAN><SPAN lang=EN-US><FONT face="Times New Roman">ejbCreate</FONT></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">涔嬬被鐨勬柟娉?/SPAN></FONT></P> <P class=MsoList style="MARGIN: 0cm 0cm 11pt 75pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 75.0pt"><FONT face="Times New Roman"><SPAN lang=EN-US style="mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-list: Ignore"><FONT size=2>4.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">          </SPAN></SPAN></SPAN><SPAN lang=EN-US><FONT size=2>AOP</FONT></SPAN></FONT><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT size=2>姒傚康鐨勫紩鍏ワ細鍏佽鍦ㄧ被瀹氫箟涓拰鍏朵粬綾諱腑瀵規柟娉曡繘琛屾嫤鎴?/FONT></SPAN></P> <P class=MsoList style="MARGIN: 0cm 0cm 11pt 75pt; TEXT-INDENT: -21pt; mso-list: l0 level1 lfo1; tab-stops: list 75.0pt"><SPAN lang=EN-US style="mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-list: Ignore"><FONT face="Times New Roman"><FONT size=2>5.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">          </SPAN></FONT></SPAN></SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT size=2>渚濊禆娉ㄥ叆錛氬厑璁擱氳繃娣誨姞鐗瑰畾娉ㄩ噴鍚戝睘鎬ф敞鍏ユ墍渚濊禆鐨勫璞?BR><BR>鎬葷殑鏉ヨ錛宔jb3.0鐩稿浜巈jb2.0鏉ヨ瀹炵幇鏇村姞綆鍗曚簡錛岀敋鑷蟲垜璁や負姣旂洰鍓嶇殑涓浜涜交閲忕駭瑙e喅鏂規錛堟瘮濡俿pring framework涔嬬被錛夎繕瑕佺畝鍗曘?/FONT></SPAN></P><img src ="http://m.tkk7.com/jayliu/aggbug/4241.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/jayliu/" target="_blank">騫?/a> 2005-05-12 21:38 <a href="http://m.tkk7.com/jayliu/archive/2005/05/12/4241.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>J2SE5.0鏂扮壒鎬хず渚?--寰幆璇彞鐨勫寮?/title><link>http://m.tkk7.com/jayliu/archive/2005/05/12/4202.html</link><dc:creator>騫?/dc:creator><author>騫?/author><pubDate>Thu, 12 May 2005 02:57:00 GMT</pubDate><guid>http://m.tkk7.com/jayliu/archive/2005/05/12/4202.html</guid><wfw:comment>http://m.tkk7.com/jayliu/comments/4202.html</wfw:comment><comments>http://m.tkk7.com/jayliu/archive/2005/05/12/4202.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.tkk7.com/jayliu/comments/commentRss/4202.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/jayliu/services/trackbacks/4202.html</trackback:ping><description><![CDATA[<H1 style="MARGIN: 11pt 0cm"><SPAN style="FONT-FAMILY: 榛戜綋; mso-ascii-font-family: Arial"><FONT style="BACKGROUND-COLOR: #e5e5e5" size=3>寰幆璇彞鐨勫寮?/FONT></SPAN></H1><FONT size=2><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'; mso-bidi-font-family: 'Courier New'">涔嬪墠綾諱技榪欐牱鐨勮鍙ワ細</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"> <TABLE class=MsoTableGrid style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: silver; MARGIN: auto auto auto 59.4pt; BORDER-LEFT: medium none; WIDTH: 378pt; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellSpacing=0 cellPadding=0 width=504 border=1> <TBODY> <TR style="mso-yfti-irow: 0; mso-yfti-lastrow: yes"> <TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 378pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" vAlign=top width=504> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2>void cancelAll(Collection c) { <o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2><SPAN style="mso-spacerun: yes">    </SPAN>for (Iterator i = c.iterator(); i.hasNext(); ) {<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2><SPAN style="mso-spacerun: yes">        </SPAN>TimerTask tt = (TimerTask) i.next();<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2><SPAN style="mso-spacerun: yes">        </SPAN>tt.cancel();<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2><SPAN style="mso-spacerun: yes">    </SPAN>}<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'">}</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT></P></TD></TR></TBODY></TABLE></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'; mso-bidi-font-family: 'Courier New'">浠ュ悗鍙互榪欐牱鍐欙細</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></P> <P class=MsoBodyText style="MARGIN: 0cm 0cm 11pt 54pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"> <TABLE class=MsoTableGrid style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: silver; MARGIN: auto auto auto 59.4pt; BORDER-LEFT: medium none; WIDTH: 378pt; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellSpacing=0 cellPadding=0 width=504 border=1> <TBODY> <TR style="mso-yfti-irow: 0; mso-yfti-lastrow: yes"> <TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 378pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" vAlign=top width=504> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2>void cancelAll(Collection c) {<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2><SPAN style="mso-spacerun: yes">    </SPAN>for (Object o : c)<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2><SPAN style="mso-spacerun: yes">   </SPAN><SPAN style="mso-spacerun: yes">     </SPAN>((TimerTask)o).cancel();<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2>}<o:p></o:p></FONT></SPAN></P></TD></TR></TBODY></TABLE></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"><FONT color=#000000><span id="4i84scq" class=CharCharCharCharCharCharCharCharCharCharCharCharCharCharCharChar><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">鏈夋椂鍊欐垜浠彲鑳藉啓鍑鴻繖鏍風殑浠g爜錛?/SPAN></SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"> <TABLE class=MsoTableGrid style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: silver; MARGIN: auto auto auto 59.4pt; BORDER-LEFT: medium none; WIDTH: 378pt; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellSpacing=0 cellPadding=0 width=504 border=1> <TBODY> <TR style="mso-yfti-irow: 0; mso-yfti-lastrow: yes"> <TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 378pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" vAlign=top width=504> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2>List suits = ...;<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2>List ranks = ...;<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2>List sortedDeck = new ArrayList();<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2>for (Iterator i = suits.iterator(); i.hasNext(); )<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2><SPAN style="mso-spacerun: yes">    </SPAN>for (Iterator j = ranks.iterator(); j.hasNext(); )<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2><SPAN style="mso-spacerun: yes">        </SPAN>sortedDeck.add(new Card(i.next(), j.next()));<o:p></o:p></FONT></SPAN></P></TD></TR></TBODY></TABLE></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><span id="aewukuu" class=CharCharCharCharCharCharCharCharCharCharCharCharCharCharCharChar><SPAN lang=EN-US><o:p><FONT face="Courier New" color=#0000ff> </FONT></o:p></SPAN></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"><FONT color=#000000><span id="o8ukyye" class=CharCharCharCharCharCharCharCharCharCharCharCharCharCharCharChar><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">榪欐浠g爜涓嶄細鎸夌収鎴戜滑璁炬兂鐨勯偅涔堝伐浣滐紝鍥犱負姣忔絎簩涓?/SPAN><SPAN lang=EN-US><FONT face="Courier New">for</FONT></SPAN></SPAN><span id="cqw8qc4" class=CharCharCharCharCharCharCharCharCharCharCharCharCharCharCharChar><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">璇彞鐨勬墽琛岄兘浼氬紩鍙?/SPAN><SPAN lang=EN-US><FONT face="Courier New">i.next()</FONT></SPAN></SPAN><span id="s4444oq" class=CharCharCharCharCharCharCharCharCharCharCharCharCharCharCharChar><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">鐨勬墽琛岋紝瀹為檯涓婃垜浠病鏈夎揪鍒板</SPAN><SPAN lang=EN-US><FONT face="Courier New">i</FONT></SPAN></SPAN><span id="8o4ggeg" class=CharCharCharCharCharCharCharCharCharCharCharCharCharCharCharChar><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">榪涜閬嶅巻鐨勭洰鐨勶紝鑰屼笖鍙兘浼氬紩璧蜂竴涓?/SPAN><SPAN lang=EN-US><FONT face="Courier New">NoSuchElementException</FONT></SPAN></SPAN><span id="a848ooe" class=CharCharCharCharCharCharCharCharCharCharCharCharCharCharCharChar><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">寮傚父銆?/SPAN><SPAN lang=EN-US><o:p></o:p></SPAN></SPAN></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"><FONT color=#000000><span id="4y4osq4" class=CharCharCharCharCharCharCharCharCharCharCharCharCharCharCharChar><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">瑙e喅鐨勪竴涓姙娉曟槸鏀瑰啓鎴愬涓嬩唬鐮侊細</SPAN></SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"> <TABLE class=MsoTableGrid style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: silver; MARGIN: auto auto auto 59.4pt; BORDER-LEFT: medium none; WIDTH: 378pt; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellSpacing=0 cellPadding=0 width=504 border=1> <TBODY> <TR style="mso-yfti-irow: 0; mso-yfti-lastrow: yes"> <TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 378pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" vAlign=top width=504> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2>for (Iterator i = suits.iterator(); i.hasNext(); ) {<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2><SPAN style="mso-spacerun: yes">    </SPAN>Suit suit = (Suit) i.next();<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2><SPAN style="mso-spacerun: yes">    </SPAN>for (Iterator j = ranks.iterator(); j.hasNext(); )<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2><SPAN style="mso-spacerun: yes">        </SPAN>sortedDeck.add(new Card(suit, j.next()));<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'">}</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT></P></TD></TR></TBODY></TABLE></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"><span id="e6o8sq4" class=CharCharCharCharCharCharCharCharCharCharCharCharCharCharCharChar><SPAN lang=EN-US><o:p><FONT face="Courier New" color=#0000ff> </FONT></o:p></SPAN></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"><FONT color=#000000><span id="kqcoi4o" class=CharCharCharCharCharCharCharCharCharCharCharCharCharCharCharChar><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">鍒╃敤</SPAN><SPAN lang=EN-US><FONT face="Courier New">java</FONT></SPAN></SPAN><span id="cysm844" class=CharCharCharCharCharCharCharCharCharCharCharCharCharCharCharChar><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">璇█鐨勬柊鐗規э紝鎴戜滑鍙互榪欐牱鍐欙細</SPAN></SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"> <TABLE class=MsoTableGrid style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: silver; MARGIN: auto auto auto 59.4pt; BORDER-LEFT: medium none; WIDTH: 378pt; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellSpacing=0 cellPadding=0 width=504 border=1> <TBODY> <TR style="mso-yfti-irow: 0; mso-yfti-lastrow: yes"> <TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 378pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" vAlign=top width=504> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2>for (Suit suit : suits)<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2><SPAN style="mso-spacerun: yes">    </SPAN>for (Rank rank : ranks)<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2><SPAN style="mso-spacerun: yes">        </SPAN>sortedDeck.add(new Card(suit, rank));<o:p></o:p></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'"><o:p><FONT size=2> </FONT></o:p></SPAN></P></TD></TR></TBODY></TABLE></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><span id="646gwyy" class=CharCharCharCharCharCharCharCharCharCharCharCharCharCharCharChar><SPAN lang=EN-US><o:p><FONT face="Courier New" color=#0000ff> </FONT></o:p></SPAN></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"><span id="y44a84m" class=CharCharCharCharCharCharCharCharCharCharCharCharCharCharCharChar><FONT color=#000000><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'">榪欐浠g爜鏄笉鏄緢婕備寒錛?/SPAN><SPAN lang=EN-US><o:p></o:p></SPAN></FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"></SPAN></FONT></P><img src ="http://m.tkk7.com/jayliu/aggbug/4202.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/jayliu/" target="_blank">騫?/a> 2005-05-12 10:57 <a href="http://m.tkk7.com/jayliu/archive/2005/05/12/4202.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>J2SE5.0鏂扮壒鎬хず渚?--鍘熺敓綾誨瀷鐨刟utoboxing鍜宎uto-unboxinghttp://m.tkk7.com/jayliu/archive/2005/05/12/4205.html騫?/dc:creator>騫?/author>Thu, 12 May 2005 02:57:00 GMThttp://m.tkk7.com/jayliu/archive/2005/05/12/4205.htmlhttp://m.tkk7.com/jayliu/comments/4205.htmlhttp://m.tkk7.com/jayliu/archive/2005/05/12/4205.html#Feedback1http://m.tkk7.com/jayliu/comments/commentRss/4205.htmlhttp://m.tkk7.com/jayliu/services/trackbacks/4205.html 

鍘熺敓綾誨瀷鐨?/SPAN>autoboxing鍜?/SPAN>auto-unboxing

鎴戜滑鐭ラ亾錛屽湪Java涓紝int,long絳夊師鐢熺被鍨嬩笉鏄竴涓戶鎵胯嚜Object鐨勭被錛屾墍浠ョ浉搴旂殑錛屾湁寰堝鎿嶄綔鎴戜滑閮戒笉鑳藉埄鐢ㄥ師鐢熺被鍨嬫搷浣滐紝姣斿鎯寵鎶婁竴涓暣鏁版斁鍏ュ埌涓涓泦鍚堜腑錛屾垜浠繀欏婚鍏堝垱寤轟竴涓?/SPAN>Integer瀵硅薄錛岀劧鍚庡啀灝嗚繖涓璞℃斁鍏ュ埌闆嗗悎涓傚綋鎴戜滑浠庨泦鍚堜腑鍙栨暟鐨勬椂鍊欙紝鍙栧嚭鏉ョ殑鏄竴涓?/SPAN>Integer瀵硅薄錛屽洜姝や笉鑳界洿鎺ュ瀹冧嬌鐢ㄥ姞鍑忎箻闄ょ瓑榪愮畻絎︼紝鑰屾槸蹇呴』鐢?/SPAN>Integer.intValue()鍙栧埌鐩稿簲鐨勫兼墠鍙互錛岃繖鏍風殑榪囩▼縐頒箣涓?/SPAN>boxing鍜?/SPAN>unboxing銆?/SPAN>

J2SE5.0鏀寔autoboxing鍜?/SPAN>auto-unboxing錛屼篃灝辨槸璇存垜浠互鍚庝笉闇瑕佸啀鎵嬪姩鍦板仛榪欎簺boxing鍜?/SPAN>unboxing鎿嶄綔浜嗭紝java璇█浼氭浛鎴戜滑瀹屾垚銆傚叿浣撳彲浠ュ弬鐓т笅闈㈢殑紺轟緥錛?/SPAN>

List<Integer> intList=new ArrayList<Integer>();

intList.add(2);

intList.add(new Integer(5));

int i=3+intList.get(0);//i=5

int j=3+intList.get(1); //j=8

 

浠庤繖涓孌電▼搴忎腑鎴戜滑鍙互鐪嬪埌錛?/SPAN>autoboxing鍜?/SPAN>auto-unboxing涓烘垜浠渷鎺変簡寰堝涓嶅繀瑕佺殑宸ヤ綔銆?/SPAN>



]]>
J2SE5.0鏂扮壒鎬хず渚?--鏋氫婦http://m.tkk7.com/jayliu/archive/2005/05/12/4206.html騫?/dc:creator>騫?/author>Thu, 12 May 2005 02:57:00 GMThttp://m.tkk7.com/jayliu/archive/2005/05/12/4206.htmlhttp://m.tkk7.com/jayliu/comments/4206.htmlhttp://m.tkk7.com/jayliu/archive/2005/05/12/4206.html#Feedback0http://m.tkk7.com/jayliu/comments/commentRss/4206.htmlhttp://m.tkk7.com/jayliu/services/trackbacks/4206.html鏋氫婦

鍦ㄨ繃鍘伙紝鎴戜滑蹇呴』鐢ㄦ暣鍨嬪父鏁頒唬鏇挎灇涓撅紝闅忕潃J2SE 5.0鐨勫彂甯冿紝榪欐牱鐨勬柟娉曠粓浜庝竴鍘諱笉澶嶈繑浜嗐?/SPAN>

涓涓畝鍗曠殑鏋氫婦綾誨瀷瀹氫箟濡備笅錛?/SPAN>

public enum Weather

{

       SUNNY,RAINY,CLOUDY

}

 

鏋氫婦鍙互鐢ㄥ湪switch璇彞涓細

Weather weather=Weather.CLOUDY;

switch(weather)

{

       case SUNNY:

              System.out.println("It's sunny");

              break;

       case CLOUDY:

              System.out.println("It's cloudy");

              break;

       case RAINY:

              System.out.println("It's rainy");

              break;

}

 

鏋氫婦綾誨瀷鍙互鏈夎嚜宸辯殑鏋勯犳柟娉曪紝涓嶈繃蹇呴』鏄鏈夌殑錛屼篃鍙互鏈夊叾浠栨柟娉曠殑瀹氫箟錛屽涓嬮潰鐨勪唬鐮侊細

public enum Weather {

    SUNNY("It is sunny"),

    RAINY("It is rainy"),

    CLOUDY("It is cloudy");

 

    private String description;

 

    private Weather(String description) {

       this.description=description;

    }

   

    public String description() {

       return this.description;

    }

}

 

涓嬮潰涓孌典唬鐮佹槸瀵硅繖涓灇涓劇殑涓涓嬌鐢細

for(Weather w:Weather.values())

{

    System.out.printf(                                                  "Description of %s is \"%s\".\n",w,w.description());

}

 

Weather weather=Weather.SUNNY;

System.out.println(weather.description() + " today");

 

濡傛灉鎴戜滑鏈変竴涓灇涓劇被鍨嬶紝琛ㄧず鍥涘垯榪愮畻錛屾垜浠笇鏈涘湪鍏朵腑瀹氫箟涓涓柟娉曪紝閽堝涓嶅悓鐨勫煎仛涓嶅悓鐨勮繍綆楋紝閭d箞鎴戜滑鍙互榪欐牱瀹氫箟錛?/SPAN>

public enum Operation {

     PLUS, MINUS, TIMES, DIVIDE;

 

        // Do arithmetic op represented by this constant

        double eval(double x, double y){

            switch(this) {

                case PLUS:   return x + y;

                case MINUS:  return x - y;

                case TIMES:  return x * y;

                case DIVIDE: return x / y;

            }

            throw new AssertionError("Unknown op: " + this);

        }

}

 

榪欐牱鍐欑殑闂鏄綘濡傛灉娌℃湁鏈鍚庝竴琛屾姏鍑哄紓甯哥殑璇彞錛岀紪璇戝氨鏃犳硶閫氳繃銆傝屼笖濡傛灉鎴戜滑鎯寵娣誨姞涓涓柊鐨勮繍綆楋紝灝卞繀欏繪椂鍒昏鐫瑕佸湪eval涓坊鍔犲搴旂殑鎿嶄綔錛屼竾涓蹇樿鐨勮瘽灝變細鎶涘嚭寮傚父銆?/SPAN>

J2SE 5.0鎻愪緵浜嗚В鍐寵繖涓棶棰樼殑鍔炴硶錛屽氨鏄綘鍙互鎶?/SPAN>eval鍑芥暟澹版槑涓?/SPAN>abstract錛岀劧鍚庝負姣忎釜鍊煎啓涓嶅悓鐨勫疄鐜幫紝濡備笅鎵紺猴細

 

public enum Operation {

     PLUS   { double eval(double x, double y) { return x + y; } },

     MINUS  { double eval(double x, double y) { return x - y; } },

     TIMES  { double eval(double x, double y) { return x * y; } },

     DIVIDE { double eval(double x, double y) { return x / y; } };

 

     abstract double eval(double x, double y);

}

 

榪欐牱灝遍伩鍏嶄簡涓婇潰鎵璇寸殑涓や釜闂錛屼笉榪囦唬鐮侀噺澧炲姞浜嗕竴浜涳紝浣嗘槸闅忕潃浠婂悗鍚勭Java寮鍙?/SPAN> IDE鐨勬敼榪涳紝浠g爜閲忕殑闂搴旇浼氳娣″寲銆?/SPAN>



]]>
J2SE5.0鏂扮壒鎬хず渚?--闈欐佸紩鍏?/title><link>http://m.tkk7.com/jayliu/archive/2005/05/12/4207.html</link><dc:creator>騫?/dc:creator><author>騫?/author><pubDate>Thu, 12 May 2005 02:56:00 GMT</pubDate><guid>http://m.tkk7.com/jayliu/archive/2005/05/12/4207.html</guid><wfw:comment>http://m.tkk7.com/jayliu/comments/4207.html</wfw:comment><comments>http://m.tkk7.com/jayliu/archive/2005/05/12/4207.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/jayliu/comments/commentRss/4207.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/jayliu/services/trackbacks/4207.html</trackback:ping><description><![CDATA[<H1 style="MARGIN: 11pt 0cm"><FONT size=3><FONT style="BACKGROUND-COLOR: #e5e5e5"><SPAN style="FONT-FAMILY: 榛戜綋; mso-ascii-font-family: Arial">闈欐佸紩鍏ワ紙</SPAN><SPAN lang=EN-US><FONT face=Arial>static import</FONT></SPAN><SPAN style="FONT-FAMILY: 榛戜綋; mso-ascii-font-family: Arial">錛?/SPAN><SPAN lang=EN-US><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT></FONT></H1> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"><FONT size=2><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'; mso-bidi-font-family: 'Courier New'">鍦ㄨ繃鍘繪垜浠浣跨敤鍏朵粬鍖呬腑鏌愮被鐨勯潤鎬佸彉閲忥紝涓鑸兘瑕佸湪鍓嶉潰鍔犱笂瀵瑰簲鐨勭被鍚嶏細</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT></P> <TABLE class=MsoTableGrid style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: silver; MARGIN: auto auto auto 59.4pt; BORDER-LEFT: medium none; WIDTH: 378pt; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellSpacing=0 cellPadding=0 width=504 border=1> <TBODY> <TR style="mso-yfti-irow: 0; mso-yfti-lastrow: yes"> <TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 378pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" vAlign=top width=504> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=2><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'">double r = Math.cos(Math.PI * theta);</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT></P></TD></TR></TBODY></TABLE> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'"><o:p><FONT size=2> </FONT></o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"><FONT size=2><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'; mso-bidi-font-family: 'Courier New'">浣跨敤闈欐佸紩鍏ワ紝鎴戜滑鍙互鎶婂墠闈㈢殑綾誨悕鍘繪帀錛岄潤鎬佸紩鍏ョ殑璇彞鏄繖鏍風殑錛?/SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT></P> <TABLE class=MsoTableGrid style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: silver; MARGIN: auto auto auto 59.4pt; BORDER-LEFT: medium none; WIDTH: 378pt; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellSpacing=0 cellPadding=0 width=504 border=1> <TBODY> <TR style="mso-yfti-irow: 0; mso-yfti-lastrow: yes"> <TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 378pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" vAlign=top width=504> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2>import static java.lang.Math.PI;<o:p></o:p></FONT></SPAN></P></TD></TR></TBODY></TABLE> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'"><o:p><FONT size=2> </FONT></o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"><FONT size=2><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'; mso-bidi-font-family: 'Courier New'">蹇呴』娉ㄦ剰鍒拌繖閲屾渶鍚庝笉鏄埌綾?/SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'">Math,</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'; mso-bidi-font-family: 'Courier New'">鑰屾槸鐩存帴鍒頒簡瀹氫箟鐨勫彉閲?/SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'">PI</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'; mso-bidi-font-family: 'Courier New'">銆?/SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"><FONT size=2><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'; mso-bidi-font-family: 'Courier New'">闈欐佸紩鍏ヤ笉鍙闈欐佸彉閲忥紝涔熷彲浠ラ拡瀵歸潤鎬佹柟娉曘傛澶栬繕鍙互浣跨敤</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'">*</SPAN><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'; mso-bidi-font-family: 'Courier New'">錛屽涓嬮潰鎵紺猴細</SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT></P> <TABLE class=MsoTableGrid style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BACKGROUND: silver; MARGIN: auto auto auto 59.4pt; BORDER-LEFT: medium none; WIDTH: 378pt; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellSpacing=0 cellPadding=0 width=504 border=1> <TBODY> <TR style="mso-yfti-irow: 0; mso-yfti-lastrow: yes"> <TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 378pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" vAlign=top width=504> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="COLOR: blue; FONT-FAMILY: 'Courier New'"><FONT size=2>import static java.lang.Math.*;<o:p></o:p></FONT></SPAN></P></TD></TR></TBODY></TABLE> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'"><o:p><FONT size=2> </FONT></o:p></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 54pt"><SPAN style="FONT-FAMILY: 瀹嬩綋; mso-ascii-font-family: 'Courier New'; mso-hansi-font-family: 'Courier New'; mso-bidi-font-family: 'Courier New'; mso-bidi-language: AR-SA"><FONT size=2>闄ら潪鎴戜滑瀵規煇涓潤鎬佸父閲忥紙鎴栬呮柟娉曪級璁塊棶棰戝害寰堝ぇ錛屽惁鍒欏簲璇ュ敖閲忛伩鍏嶄嬌鐢ㄩ潤鎬佸紩鍏ャ?/FONT></SPAN><SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'; mso-bidi-language: AR-SA"><o:p></o:p></SPAN></P><img src ="http://m.tkk7.com/jayliu/aggbug/4207.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/jayliu/" target="_blank">騫?/a> 2005-05-12 10:56 <a href="http://m.tkk7.com/jayliu/archive/2005/05/12/4207.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>J2SE5.0鏂扮壒鎬хず渚?--鍏冩暟鎹?/title><link>http://m.tkk7.com/jayliu/archive/2005/05/12/4209.html</link><dc:creator>騫?/dc:creator><author>騫?/author><pubDate>Thu, 12 May 2005 02:56:00 GMT</pubDate><guid>http://m.tkk7.com/jayliu/archive/2005/05/12/4209.html</guid><wfw:comment>http://m.tkk7.com/jayliu/comments/4209.html</wfw:comment><comments>http://m.tkk7.com/jayliu/archive/2005/05/12/4209.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/jayliu/comments/commentRss/4209.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/jayliu/services/trackbacks/4209.html</trackback:ping><description><![CDATA[     鎽樿: J2SE 5.0閫氳繃寮曞叆娉ㄩ噴(Annotation)鐨勬蹇墊坊鍔犱簡瀵瑰厓鏁版嵁鐨勬敮鎸併?涓涓狜xxx褰㈠紡鐨勬敞閲婂彲浠ュ綋鎴愪竴涓慨楗扮鏉ヤ嬌鐢紝瀹冨彲浠ユ斁鍦ㄤ換浣曚竴涓慨楗扮鍙互鍑虹幇鐨勫湴鏂廣俻ublic,static,final閮芥槸java璇█鐨勪慨楗扮錛屾敞閲婂彲浠ュ啓鍦ㄥ畠浠彲浠ュ嚭鐜扮殑浠諱綍鍦版柟銆?涓句釜渚嬪瓙錛屽彲浠ョ湅涓嬮潰涓孌典唬鐮侊細 public class AnnotationExample { &nb...  <a href='http://m.tkk7.com/jayliu/archive/2005/05/12/4209.html'>闃呰鍏ㄦ枃</a><img src ="http://m.tkk7.com/jayliu/aggbug/4209.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/jayliu/" target="_blank">騫?/a> 2005-05-12 10:56 <a href="http://m.tkk7.com/jayliu/archive/2005/05/12/4209.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>J2SE5.0鏂扮壒鎬хず渚?--娉涘瀷http://m.tkk7.com/jayliu/archive/2005/05/12/4203.html騫?/dc:creator>騫?/author>Thu, 12 May 2005 02:55:00 GMThttp://m.tkk7.com/jayliu/archive/2005/05/12/4203.htmlhttp://m.tkk7.com/jayliu/comments/4203.htmlhttp://m.tkk7.com/jayliu/archive/2005/05/12/4203.html#Feedback0http://m.tkk7.com/jayliu/comments/commentRss/4203.htmlhttp://m.tkk7.com/jayliu/services/trackbacks/4203.html闃呰鍏ㄦ枃

]]>
主站蜘蛛池模板: 九九免费精品视频在这里| 中文字幕亚洲精品| 又大又硬又爽免费视频| 97无码免费人妻超级碰碰夜夜 | 一级做a爰片久久毛片免费陪| 一本色道久久88亚洲综合 | 亚洲乱理伦片在线观看中字| 亚洲一区二区三区亚瑟| 亚洲毛片免费观看| 亚洲国产日韩在线| 狠狠色香婷婷久久亚洲精品| 亚洲国产激情在线一区| 亚洲国产精品线观看不卡| 亚洲乱码日产精品BD在线观看| 久久亚洲精品中文字幕三区| 亚洲AV一宅男色影视| 亚洲精品高清久久| 亚洲蜜芽在线精品一区| 亚洲人成网站18禁止久久影院| 久久久久一级精品亚洲国产成人综合AV区 | 亚洲伊人tv综合网色| 老司机亚洲精品影院无码| 亚洲福利一区二区精品秒拍| 亚洲一区电影在线观看| 亚洲成年网站在线观看| 国产精品无码亚洲精品2021| 黄色片网站在线免费观看| XXX2高清在线观看免费视频| 久久精品成人免费观看| 综合在线免费视频| 日韩a级毛片免费观看| 国产亚洲精品自在线观看| 亚洲一区影音先锋色资源| 亚洲人成无码网站在线观看| 人与动性xxxxx免费| 久久精品成人免费观看| 午夜一级免费视频| 中文字幕一精品亚洲无线一区| 亚洲国产天堂久久综合| 亚洲精品国产精品乱码视色| 亚洲三级在线免费观看|