??xml version="1.0" encoding="utf-8" standalone="yes"?>国产婷婷一区二区,午夜视频在线免费,亚洲天堂免费http://www.aygfsteel.com/aplomb/zh-cnMon, 19 May 2025 05:13:44 GMTMon, 19 May 2025 05:13:44 GMT60JavaFX 旉http://www.aygfsteel.com/aplomb/archive/2007/05/21/118989.html快译?/dc:creator>快译?/author>Mon, 21 May 2007 13:39:00 GMThttp://www.aygfsteel.com/aplomb/archive/2007/05/21/118989.html 

今天看到q位博客的博主,把Chris Oliver 写的旉改了一些代码,变成q个样子Q呵呵,有兴的朋友可以参考下学习下面的源代码Q?br>
 1import javafx.ui.*;
 2import javafx.ui.canvas.*;
 3import java.util.Date;
 4
 5public class Timer {
 6    private attribute elapsed: Number;
 7    public attribute minutes: Number;
 8    public attribute seconds: Number;
 9    public attribute hours: Number;
10    public attribute running: Boolean;
11}

12
13attribute Timer.elapsed = bind
14if running then
15[1..60] dur 60000 linear
16while running
17continue if true
18else 0;
19
20trigger on Timer.elapsed = value {
21    var now = new Date();
22    minutes = now.getMinutes();
23    seconds = now.getSeconds() +
24    [.35,0.34 .. 0.0] dur 350 +
25    (now.getTime() % 1000)/1000;
26    hours = now.getHours();
27}

28
29public class Clock extends CompositeNode {
30    public attribute ticking: Boolean;
31}

32
33operation Clock.composeNode() {
34    var t = Timer {running: bind ticking};
35    return Group {
36        transform: [translate(5,5),scale(1,1)]
37        var secs = bind t.seconds
38        var mins = bind t.minutes + secs/60
39        var hrs = bind t.hours + mins/60
40        content:
41        [
42        Rect {
43            height: 200
44            width: 200
45            fill: white
46        }
,
47        ImageView {
48            transform: []
49            image: Image {url: "http://sellmic.com/lab/dev/jfx/clock/images/clock_face.png"}
50        }
,
51        Group {
52            var hourHand =
53            ImageView {
54                transform: bind rotate(hrs*30,255,245)
55                image: Image {url: "http://sellmic.com/lab/dev/jfx/clock/images/hour_hand.png"}
56            }

57
58            var minuteHand =
59            ImageView {
60                transform: bind rotate(mins *6,255,245)
61                image: Image {url: "http://sellmic.com/lab/dev/jfx/clock/images/minute_hand.png"}
62            }

63            
64            var secondHand =
65            ImageView {
66                transform: bind rotate(t.seconds * 6,255,245)
67                image: Image {url: "http://sellmic.com/lab/dev/jfx/clock/images/second_hand.png"}
68            }

69
70            content: [hourHand, minuteHand, secondHand]
71        }
,
72        ImageView {
73            transform: []
74            image: Image {url: "http://sellmic.com/lab/dev/jfx/clock/images/pin.png"}
75        }
]
76    }
;
77}

78
79Clock {ticking: true} 
80
81


]]>
eclipse集成javaFXhttp://www.aygfsteel.com/aplomb/archive/2007/05/21/118983.html快译?/dc:creator>快译?/author>Mon, 21 May 2007 13:05:00 GMThttp://www.aygfsteel.com/aplomb/archive/2007/05/21/118983.htmlAccording to the help page, it requires Java 5 to run, as well as Eclipse 3.2.2.

Sun 刚刚发布?JavaFX,被看出是 Flex ?Silverligh的竞争敌手,虽然文档暗示它需要NetBeans才能q行Q但是这里有个以ECLIPSE插gQ你也可以在U进行升U,升地址Q?a target=_blank>http://download.java.net/general/openjfx/plugins/eclipse/site.xml


]]>
消费?JREQJava se 6 更新发布http://www.aygfsteel.com/aplomb/archive/2007/05/21/118979.html快译?/dc:creator>快译?/author>Mon, 21 May 2007 12:34:00 GMThttp://www.aygfsteel.com/aplomb/archive/2007/05/21/118979.htmlQuickStarterQ?nbsp; 显著减少java应用E序和applet的启动时?br>Java KernelQ减JRE安装和启动的旉
Development ToolkitQJRE的安装和更?br>Installer improvementQ改善用户安装的体验
Windows Graphics PerformanceQ图形化加速,包括单图?D?br>Nimbus look &feelQ提供一个全新的跨^台的视觉和体?br>
我看了下后面的评论非常多Q褒贬不一Q有兴趣的可以看原文Q?a >http://weblogs.java.net/blog/chet/archive/2007/05/consumer_jre_le.html


]]>
使用jxpath q行java对象查询http://www.aygfsteel.com/aplomb/archive/2007/05/15/117544.html快译?/dc:creator>快译?/author>Tue, 15 May 2007 03:13:00 GMThttp://www.aygfsteel.com/aplomb/archive/2007/05/15/117544.html原文出处Q?a >http://www.javaworld.com/javaworld/jw-03-2007/jw-03-jxpath.html?page=1

摘要Q在最q的一个项目里Q我需要遍历一个java对象树ƈ从对象中获取|Z避免使用重复的if else 语句Q我需要一个工具得我的工作可以更LQ?#8220;我需要一个id为X的对象,q且要获取这个对象的A属?#8221;Q实际上Q我需要一个对象查询工P

JXPath 是q样一个对象查询工P它是一个apache common lgQ利用它Q你可以使用著名?a target=_blank>xpath 规则语言来查询复杂的java 对象树?br>我在我的目中大量用了JXPathQ它对于开发速度的提升是相当可观的,同时也得值抽取算法相当的d?br>
管如此Q关于JXPath 的文档ƈ不多。由于我正在q行深度开发这个组Ӟ所以我军_在我的一个JXPath 全面指南里写下我的研I成果,你可以在我的|站上找到它Q这文章是那篇指南的羃写版Q能够得你q速开始JXPath 之旅?br>
CZ模型

Z演示的目的,我们采取了一个相对简单的模型Q一个公司有多个部门Q一个部门有多个员工Q下面是模型图:

Class model

很自Ӟ我们需要一些模型数据:

公司Q?

Acme Inc.

Sales 销售部Q?/p>

Johnny, Sales rep, 45

Sarah, Sales rep, 33

Magda, Office assistant, 27


Accounting 会计?/p>

Steve, Head controller, 51

Peter, Assistant controller, 31

Susan, Office assistant, 27



执行单的JXPath 查询

最单的查询是从对象树中查找一个对象,例如Q要查找公司Q用下面的代码:

JXPathContext context = JXPathContext.newContext(company);
Company c 
= (Company)context.getValue(".");


W一行展CZcontext Q上下文Q的创徏Q也是对象树中所有JXPath的xpath 规则的v始点Q相当于XML文档的根节点元素Q?br>W二行执行了实际的查询,因ؓq里的上下文是以公司开始的Q所以要获取公司对象Q只需要用当前元素选择?#8220;.”?br>
使用谓词和变?br>
一个员工是部门的子对象Q获取员工名为johnny 的代码如下:

Employee emp = (Employee)context.getValue("/departmentList/employees[name='Johnny']");

q段代码可以q样理解Q遍历所有的部门L姓名为johnny的员?br>
上面的代码段解释了如何用谓词进行对象的搜烦Q用谓词相当于SQL语句中的where字句Q我们可以绑定多条谓词:

Employee emp = 
   (Employee)context.getValue(
"/departmentList/employees[name='Susan' and age=27]");


如果你不是只q行一ơ查询的话,像上面这L(fng)编码一般都不可取,更好的方法是定义一个可重用的查询,那么你就可以在多条语句中q行重用Qؓ适应参数化的查询JXPath 支持变量查询Q代码如下:

 context.getVariables().declareVariable("name""Susan");
context.getVariables().declareVariable(
"age"new Integer(27));
Employee emp 
= 
   (Employee)context.getValue(
"/departmentList/employees[name=$name and age=$age]");


对于集合元素的P?br>

JXPath 提供了一个P代器Q可以对查询的结果进行P代,下面的代码:

 for(Iterator iter = context.iterate("/departmentList"); iter.hasNext();){
   Department d 
= (Department)iter.next();
   
//
}


q代所有员工的代码如下Q?br>

 for(Iterator iter = context.iterate("/departmentList/employees"); iter.hasNext();){
   Employee emp 
= (Employee)iter.next();
   
//
}


下面是一个结合变量绑定和q代的例子:

 context.getVariables().declareVariable("deptName""Sales");
context.getVariables().declareVariable(
"minAge"new Integer(30));
for(Iterator iter = context.iterate("/departmentList
     [name=$deptName]/employees[age>$minAge]"); iter.hasNext();){
   Employee emp = (Employee)iter.next();
   
//
}


指针 Pointers

指针是JXPath的一个工L(fng)Q用来代表对象树中的一个对象的引用Q比如,一个指针可能代表了W二个部门的W一个员工,相比于直接从对象树中查找对象的对象,指针提供了一些额外的功能Q比如在相关上下文下的相x询,下面有具体的例子Q?br>
使用指针

使用指针指向一个对象和从对象树中获取一个对象是相等的:

 JXPathContext context = JXPathContext.newContext(company);
Pointer empPtr 
= context.getPointer("/departmentList[name='Sales']/employees[age>40]");

System.out.println(empPtr);
//output: /departmentList[1]/employees[1]

System.out.println(((Employee)empPtr.getValue()).getName());
//output: Johnny

可以看出Q一个指针只是代表了一个对象的位置Q而不是对象本w,同时也可以看出,可以通过指针的getValueҎ(gu)获取指针代表的对象?br>
相关上下文下的相x?br>׃指针是代表对象的位置Q所以可以被用来作ؓ整个对象树来D的一个引用,Z做到q点Q我们可以把指针指向根对象(好像上面例子中的公司对象)Q也是所谓的相关上下文,在相关上下文Q你可以通过相关查询q行整个对象树的查询Q指针的q个高使用提供了极大的Ҏ(gu),下面我们例子说明Q?br>
开始,我们来创Z个相关上下文Q?br>

 for(Iterator iter = context.iteratePointers("/departmentList[name='Sales']
     /employees[age>30]"); iter.hasNext();){
   Pointer empPtr = (Pointer)iter.next();
   JXPathContext relativeContext 
= context.getRelativeContext(empPtr);
}


 使用相关上下文,XPath 查询能够在对象树的子节点Q父节点Q超父节点等q行执行Q具体看下面的例子:

 //Current employee
Employee emp = (Employee)relativeContext.getValue(".");

//Employee name
String name = (String)relativeContext.getValue("./name");

//Name of the Department this Employee belongs to (a parent object)
String deptName = (String)relativeContext.getValue("../name");

//Name of the Company this Employee belongs to (a 'grandparent' object)
String compName = (String)relativeContext.getValue("../../name");

//All coworkers of this Employee (sibling objects)
for(Iterator empIter = relativeContext.iterate("../employees"); empIter.hasNext();){
   Employee colleague 
= (Employee)empIter.next();
   
//
}



ȝ

JXPath 在遍历,DQ和查询复杂的对象树时是非常有用的工P׃它?xpath 语言 q行查询Q因此有大量的资料可以帮助构建高效的复杂对象树查询,指针和相关上下文的加入得查询更加方ѝ?br>

相关资源Q?br>1Q下载本文的源代?http://www.javaworld.com/javaworld/jw-03-2007/jxpath/jw-03-jxpath.zip
2Q查看全面指?http://www.tutorials.tfo-eservices.eu/
3QXPATH 指南 http://www.w3schools.com/xpath

不要忘了Q广告也_ֽ?/span>



]]>
JavaOne 会议视频回顾 五月十一?Sun 惯例会议QJames Gosling 主讲Q?/title><link>http://www.aygfsteel.com/aplomb/archive/2007/05/14/117438.html</link><dc:creator>快译?/dc:creator><author>快译?/author><pubDate>Mon, 14 May 2007 13:31:00 GMT</pubDate><guid>http://www.aygfsteel.com/aplomb/archive/2007/05/14/117438.html</guid><description><![CDATA[<strong>Sun General Session</strong><br><br>主题Q玩具show <strong>The Toy Show</strong> <br>介:James Gosling ؓ我们展示几个Ȁ动h心的java 实现?L(fng)P包括潜水艇,机器人,直升机等?br><br> <fieldset style="WIDTH: 457px; HEIGHT: 253px"><legend>Toy Show part 1 </legend><script language="javascript" src="http://sunfeedroom.sun.com/linking/launch.jsp? skin=oneclip&fr_story=FEEDROOM192569&rf=ev&hl=true&w=322&h=278"></script></fieldset> <br> <fieldset style="WIDTH: 457px; HEIGHT: 253px"><legend>Toy Show part 2 </legend><script language="javascript" src="http://sunfeedroom.sun.com/linking/launch.jsp?skin=oneclip&fr_story=FEEDROOM194211&rf=ev&hl=true&w=322&h=278"></script></fieldset> <br> <fieldset style="WIDTH: 457px; HEIGHT: 253px"><legend>Toy Show part 3 </legend><script language="javascript" src="http://sunfeedroom.sun.com/linking/launch.jsp?skin=oneclip&fr_story=FEEDROOM194212&rf=ev&hl=true&w=322&h=278"></script></fieldset> <br> <fieldset style="WIDTH: 457px; HEIGHT: 253px"><legend>Toy Show part 4 </legend><script language="javascript" src="http://sunfeedroom.sun.com/linking/launch.jsp?skin=oneclip&fr_story=FEEDROOM194213&rf=ev&hl=true&w=322&h=278"></script></fieldset> <br> <fieldset style="WIDTH: 457px; HEIGHT: 253px"><legend>Toy Show part 5 </legend><script language="javascript" src="http://sunfeedroom.sun.com/linking/launch.jsp?skin=oneclip&fr_story=FEEDROOM194214&rf=ev&hl=true&w=322&h=278"></script></fieldset> <br> <img src ="http://www.aygfsteel.com/aplomb/aggbug/117438.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/aplomb/" target="_blank">快译?/a> 2007-05-14 21:31 <a href="http://www.aygfsteel.com/aplomb/archive/2007/05/14/117438.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JavaOne 会议视频回顾 五月十号 摩托|拉白金会议http://www.aygfsteel.com/aplomb/archive/2007/05/14/117435.html快译?/dc:creator>快译?/author>Mon, 14 May 2007 13:23:00 GMThttp://www.aygfsteel.com/aplomb/archive/2007/05/14/117435.htmlMotorola, Platinum General Session

主题Q战胜下一代用户体验的复杂?br>
介:摩托|拉的这ơ会议主要讲解了如何网l,Ud讑֤以及服务无缝集成CL(fng)用户提供至高的体?br>
Mobility Introduction

Mobility Introduction

Mobility Introduction

Mobility Introduction



]]>
JavaOne 会议视频回顾 五月?ji)?http://www.aygfsteel.com/aplomb/archive/2007/05/14/117431.html快译?/dc:creator>快译?/author>Mon, 14 May 2007 13:15:00 GMThttp://www.aygfsteel.com/aplomb/archive/2007/05/14/117431.htmlOracle, Platinum General Session

主题Q走向极?新时代的软g架构

介:随着企业java应用E序的开发和复杂性达C一个新的水准,对于高性能的数据访问和可靠的事务处理的需求将会持l增长,同时Q随着SOA,EDA以及web2.0{技术的快速采用更加驱使了C代应用程序架构的产生。这ơ会议展CZoracle 对于技术,工具和标准等内容的观点,q些内容允许开发h员在一个要求极限事务容量和实时架构成ؓ必需的情况下构徏敏捷的应用程序和业务程?br>
注:最后一句话不好译Q欢q大家给出更好的译Q原文如?img src="http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/images/emsmileo.gif" align=absMiddle border=0>
This session presents Oracle's vision on the technologies, tools and standards that will allow developers to build agile applications and business processes for a world in which extreme transaction volumes and real time infrastructures are becoming the norm.


Thomas Kurian of OracleIntro

Oracle Demos continued



Intel, Platinum General Session

主题Qintel ?java 技术的支柱

介:在过ȝ10q多旉里,因特作为java的硬件提供者和软g合作者给予了java强大的动力。因特尔的A(ch)献以及这些来自主要的的企业竞争者极大的加强了java 技术的功能和性能Q这个趋势在未来会不断得到加强。来听下intel的关于企业java的观点ƈ了解它的软g生态系l的参与是如何将java技术推向一个新高点?


Intel and JavaTechnology


Intel and BEA


Intel and Sun




]]>
JavaOne 会议视频回顾 五月八号 Java ME 惯例会议http://www.aygfsteel.com/aplomb/archive/2007/05/14/117427.html快译?/dc:creator>快译?/author>Mon, 14 May 2007 12:46:00 GMThttp://www.aygfsteel.com/aplomb/archive/2007/05/14/117427.html
q次会议讨论的是Java ME的发展以及最新的势Q它?yu)突出在市场上的几种高端Ud数据服务q展C开发h员如何才能有效的利用java MEq_d发更具吸引力的移动,?sh)视以及嵌入式服务。这是想要进入或者即进入或者已ln在移动行业的Z定wq的演讲?br>
Mobility Introduction

Announcements & Demos 1


 
Announcements& Demos 2


JavaFX Mobile


]]>
JavaOne 会议视频回顾 五月八号 Sun Technical Sessionhttp://www.aygfsteel.com/aplomb/archive/2007/05/14/117424.html快译?/dc:creator>快译?/author>Mon, 14 May 2007 12:34:00 GMThttp://www.aygfsteel.com/aplomb/archive/2007/05/14/117424.html
主题Q发展的java技?未来q_的展?br>
java技术正在以一Uo人兴奋的速度在发展,q次会议重点在于j2se,java EE的发展和路线Q包括openJDKQJava SE 7 的更新发布,GlassFish Java EE 5Q应用服务器和一些引人注目的java客户端技术以及在C的富客户端用javaq_{一些内?br>
Intro Deep Dive


Intro Deep Dive2


 
Deep Dive part 3


Intro Deep Dive4


]]>
UI 战争才刚刚开?/title><link>http://www.aygfsteel.com/aplomb/archive/2007/05/13/117166.html</link><dc:creator>快译?/dc:creator><author>快译?/author><pubDate>Sun, 13 May 2007 13:10:00 GMT</pubDate><guid>http://www.aygfsteel.com/aplomb/archive/2007/05/13/117166.html</guid><description><![CDATA[原文地址Q?a >http://www.oreillynet.com/onjava/blog/2007/05/the_ui_wars_just_started_yet_a.html</a><br><br>译Qaplomb<br><br>背景QSUN ?a target=_blank>javaOne </a>会议上宣布了 JavaFXQ意想统治UI领域Q遭C多的怀疑?br><br>随sun?a target=_blank>JavaFX</a>的发布,微Y则把力气攑֜<a target=_blank>Silverlight</a>上,而adobe则?a target=_blank>Flex/Apollo</a> 来创建RIAQ?font style="FONT-SIZE: 10pt; COLOR: red" color=#cc0033 size=2>Rich Internet ApplicationsQ富客户端程序,意即增强客户端的互动性和丰富性,译者注</font>Q,对于UIl治的战争才刚刚开始?br>或者我该说战争又开始了Q从 applets ?*ServerPagesQ?span style="FONT-SIZE: 10pt; COLOR: red">所谓的服务器端面Q诸如JSP,ASP{,译者注</span>Q?再到Ajax/RIAQ我们可以看到过?0q_用户界面发生了重大的攚w?br>在过ȝ两年里,Ajax占据了主导地位,同时java也蒙受了最大的苛责Q包括JSP的粗劣的交互性,JSF的复杂性以及Applets的低效?br><br>实际上,已经有非常多的文章或者博客都在讨论,如何使得java更高效,如何脚本语a带入到JVM{等Q尽如此,随着JavaFX的引入,带来了一个全新的方向和一pd问题QJavaFX是不是Ajax的一U更好的选择呢?q是对于已有的选择来说它仅仅是一U脚本语aQ它能否使得桌面技术和W(xu)EB UI技术更加紧密?它能否满下一代的UI需?包括vedioQsvgQvoice q有更多Q它能否得到C֌的迅速参与ƈ得到大多Ch的拥护呢Q它?yu)是SUN的新的一个成功的代表吗?<br><br>呵呵Q让我们拭目以待?br><br>关于RIA的解释:<a >http://www.5d.cn/Tutorial/flash/base/200610/4741.html</a> <hr> <script type="text/javascript"><!-- google_ad_client = "pub-6282981512077428"; google_alternate_color = "FFFFFF"; google_ad_width = 468; google_ad_height = 15; google_ad_format = "468x15_0ads_al"; google_ad_channel = ""; //--> </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> <img src ="http://www.aygfsteel.com/aplomb/aggbug/117166.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/aplomb/" target="_blank">快译?/a> 2007-05-13 21:10 <a href="http://www.aygfsteel.com/aplomb/archive/2007/05/13/117166.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">μ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ͭɽ</a>| <a href="http://" target="_blank">ϳ</a>| <a href="http://" target="_blank">żҴ</a>| <a href="http://" target="_blank">Ϫ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank">ն</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ľ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank">֣</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ˮ</a>| <a href="http://" target="_blank">۰</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ʤ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ƺ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ƥɽ</a>| <a href="http://" target="_blank">˫Ѽɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ϫ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ǭ</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>