??xml version="1.0" encoding="utf-8" standalone="yes"?>日韩高清二区,久久久久久影视,在线资源免费观看http://www.aygfsteel.com/leeguannan/category/24274.html够了(jin)Q让我们实践吧!zh-cnTue, 08 Jan 2008 15:41:00 GMTTue, 08 Jan 2008 15:41:00 GMT60打造仿淘宝注册的TextQ二Q?/title><link>http://www.aygfsteel.com/leeguannan/archive/2008/01/08/173774.html</link><dc:creator>阿南</dc:creator><author>阿南</author><pubDate>Tue, 08 Jan 2008 12:20:00 GMT</pubDate><guid>http://www.aygfsteel.com/leeguannan/archive/2008/01/08/173774.html</guid><wfw:comment>http://www.aygfsteel.com/leeguannan/comments/173774.html</wfw:comment><comments>http://www.aygfsteel.com/leeguannan/archive/2008/01/08/173774.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/leeguannan/comments/commentRss/173774.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/leeguannan/services/trackbacks/173774.html</trackback:ping><description><![CDATA[     摘要: 上次贴了(jin)几张囄出来显摆Q这ơ彻底公布代码~大家看看原理好Q有兴趣的朋友可以和我联p,把SWT里面的控仉装一下,做一套验证框架出来~   1package com.glnpu.dmp.controls;   2   3import org.eclipse.swt.SWT;   4imp...  <a href='http://www.aygfsteel.com/leeguannan/archive/2008/01/08/173774.html'>阅读全文</a><img src ="http://www.aygfsteel.com/leeguannan/aggbug/173774.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/leeguannan/" target="_blank">阿南</a> 2008-01-08 20:20 <a href="http://www.aygfsteel.com/leeguannan/archive/2008/01/08/173774.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>打造仿淘宝注册的TextQ一Q?/title><link>http://www.aygfsteel.com/leeguannan/archive/2008/01/01/172024.html</link><dc:creator>阿南</dc:creator><author>阿南</author><pubDate>Tue, 01 Jan 2008 14:24:00 GMT</pubDate><guid>http://www.aygfsteel.com/leeguannan/archive/2008/01/01/172024.html</guid><wfw:comment>http://www.aygfsteel.com/leeguannan/comments/172024.html</wfw:comment><comments>http://www.aygfsteel.com/leeguannan/archive/2008/01/01/172024.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.aygfsteel.com/leeguannan/comments/commentRss/172024.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/leeguannan/services/trackbacks/172024.html</trackback:ping><description><![CDATA[<p>    Z么要打造仿淘宝注册的Text呢,不ؓ(f)什么,因ؓ(f)它好看!呵呵Q这个不理由,其实最重要的原因是因ؓ(f)最q在开发过E中Q发现验证是个最ȝ(ch)的事情,虽然Eclipse和JFace为我们已l提供了(jin)比较好用?#8220;高”对话框和向导了(jin)Q对于简单的应用Q他们两个用h是非常简单,如果要验证的东西非常多,而且q有交叉验证Q我自己L(fng)名字Q就是填?jin)A׃再验证BCD的错在了(jin)Q或者填?jin)Cp验证AD存在Q处理v来了(jin)麻?ch)?jin)Q前两天以ؓ(f)新同事接手一端代码,发现里面竟然?0+个监听器Q验证逻辑复杂的要死~Z(jin)解决q个问题。再l合B/S的开发经验,我认为,完全没有必要当用h所有的必填全都填?jin)以后再把OK按键打开Q不然永q置灰~大家做过的哪个B/SE序是这L(fng)Q不都是他爱填填Q不爱填拉到Q点定的时候我告诉Q或者是Q我以上来就告诉你哪些必填,不填的,点击定l箋提醒Q?/p> <p>   OKQ闲话少_(d)先看看淘宝的注册吧~我一直认为淘宝的注册界面是国内客户体验度最好的~</p> <p><a href="http://www.aygfsteel.com/images/blogjava_net/leeguannan/WindowsLiveWriter/Text_13478/ScreenShot002_2.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="31" alt="ScreenShot002" src="http://www.aygfsteel.com/images/blogjava_net/leeguannan/WindowsLiveWriter/Text_13478/ScreenShot002_thumb.png" width="244" border="0" /></a> </p> <p>首先界面一打开是q样的提C,在input框的左下脚又一个蓝色的箭_(d)代表此文本框必填Q?/p> <p><a href="http://www.aygfsteel.com/images/blogjava_net/leeguannan/WindowsLiveWriter/Text_13478/ScreenShot001_4.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="29" alt="ScreenShot001" src="http://www.aygfsteel.com/images/blogjava_net/leeguannan/WindowsLiveWriter/Text_13478/ScreenShot001_thumb_1.png" width="244" border="0" /></a> </p> <p>当获得焦点以后改变,后面的提C框高(sh)Q着重提醒用P</p> <p><a href="http://www.aygfsteel.com/images/blogjava_net/leeguannan/WindowsLiveWriter/Text_13478/ScreenShot003_2.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="34" alt="ScreenShot003" src="http://www.aygfsteel.com/images/blogjava_net/leeguannan/WindowsLiveWriter/Text_13478/ScreenShot003_thumb.png" width="244" border="0" /></a> </p> <p>如果没有填,必填,提交的时候的提示Q?/p> <p><a href="http://www.aygfsteel.com/images/blogjava_net/leeguannan/WindowsLiveWriter/Text_13478/ScreenShot004_2.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="26" alt="ScreenShot004" src="http://www.aygfsteel.com/images/blogjava_net/leeguannan/WindowsLiveWriter/Text_13478/ScreenShot004_thumb.png" width="244" border="0" /></a> </p> <p>填写正确的提C;</p> <p>OKQ分析了(jin)上面的四U状态,那么我们来确定我们需要做成什么样子的~首先Q我们需要;</p> <p><a href="http://www.aygfsteel.com/images/blogjava_net/leeguannan/WindowsLiveWriter/Text_13478/ScreenShot005_2.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="45" alt="ScreenShot005" src="http://www.aygfsteel.com/images/blogjava_net/leeguannan/WindowsLiveWriter/Text_13478/ScreenShot005_thumb.png" width="244" border="0" /></a> </p> <p>必填提醒状?/p> <p><a href="http://www.aygfsteel.com/images/blogjava_net/leeguannan/WindowsLiveWriter/Text_13478/ScreenShot006_2.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="41" alt="ScreenShot006" src="http://www.aygfsteel.com/images/blogjava_net/leeguannan/WindowsLiveWriter/Text_13478/ScreenShot006_thumb.png" width="244" border="0" /></a> </p> <p>填写正确提醒状?/p> <p><a href="http://www.aygfsteel.com/images/blogjava_net/leeguannan/WindowsLiveWriter/Text_13478/ScreenShot007_2.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="42" alt="ScreenShot007" src="http://www.aygfsteel.com/images/blogjava_net/leeguannan/WindowsLiveWriter/Text_13478/ScreenShot007_thumb.png" width="244" border="0" /></a> </p> <p>错误填写提醒状?/p> <p>q有是鼠标UdCU图标上的Q动框详细说明Q因为我们不可能像淘宝那P一个控件占那么大位|,用户界面q需要放更多的东ѝ?/p> <p>大致的Q务交代清楚了(jin)Q下一ơ再写详l的实现q程?br /> </p> <img src ="http://www.aygfsteel.com/leeguannan/aggbug/172024.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/leeguannan/" target="_blank">阿南</a> 2008-01-01 22:24 <a href="http://www.aygfsteel.com/leeguannan/archive/2008/01/01/172024.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Nebulal护者的CSWT Ribbon攑ևQ?/title><link>http://www.aygfsteel.com/leeguannan/archive/2007/10/07/150883.html</link><dc:creator>阿南</dc:creator><author>阿南</author><pubDate>Sun, 07 Oct 2007 11:14:00 GMT</pubDate><guid>http://www.aygfsteel.com/leeguannan/archive/2007/10/07/150883.html</guid><wfw:comment>http://www.aygfsteel.com/leeguannan/comments/150883.html</wfw:comment><comments>http://www.aygfsteel.com/leeguannan/archive/2007/10/07/150883.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.aygfsteel.com/leeguannan/comments/commentRss/150883.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/leeguannan/services/trackbacks/150883.html</trackback:ping><description><![CDATA[   <div align="center"><img height="383" alt="" src="http://hexapixel.com/ribbon/ss1.gif" width="600" border="0" /></div> 怿吗,q是SWT做的Q这个就是Nebula目l护者的C~SWT Ribbon~前一D|间一直把玩的SWT Gantt也是他的作品Q非常好用,功能十分强加~<br />     读过他的代码的朋友也?dng)R有感觉,他的代码思\非常清晰Q代码量不大Q但是丝丝入扣,寥寥几行p把功能实现~高手中高手~<br />     再赞一下Nebula的GridQ有?jin)它Q我已经不再考虑使用Table?jin)~有时间大安研究研究吧~ <img src ="http://www.aygfsteel.com/leeguannan/aggbug/150883.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/leeguannan/" target="_blank">阿南</a> 2007-10-07 19:14 <a href="http://www.aygfsteel.com/leeguannan/archive/2007/10/07/150883.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>SWT---资源---W一Q?/title><link>http://www.aygfsteel.com/leeguannan/archive/2007/09/14/145175.html</link><dc:creator>阿南</dc:creator><author>阿南</author><pubDate>Fri, 14 Sep 2007 08:34:00 GMT</pubDate><guid>http://www.aygfsteel.com/leeguannan/archive/2007/09/14/145175.html</guid><wfw:comment>http://www.aygfsteel.com/leeguannan/comments/145175.html</wfw:comment><comments>http://www.aygfsteel.com/leeguannan/archive/2007/09/14/145175.html#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://www.aygfsteel.com/leeguannan/comments/commentRss/145175.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/leeguannan/services/trackbacks/145175.html</trackback:ping><description><![CDATA[     使用SWT做开发的朋友Q一定要注意~资源是一个杀手!对于我们q些无知的开发h员,使用?jin)资源,不释攑֮Q比不写E序或者不提供q个功能q可怕~因ؓ(f)它经不v考验Q到?jin)时间肯定完蛋?br />      前两个天遇C(jin)q个Q同事写?jin)一个插Ӟ一ơ性从数据库中取得1W以上的数据然后组l成?wi)表|昄l客户~取得数据的速度Q树(wi)l装的速度Q树(wi)展开的速度Q都做了(jin)反复的优化,一切优化完成以后,宣布完成!但是没有,当我q箋打开4个树(wi)以后Q程序就非掉?jin)~<br />     我先加大rcp的启动内存,没用Q疯狂调用cgQ没用!而且q中错误错的很奇怪,如果是内存异常,应该是JVM报出的,但是q次不是Q仔l阅d常,竟然是SWT打开囄Q颜Ԍ字体的时候的异常~肯定是资源问题(sh)(jin)Q?br />    因ؓ(f)以前一直再用Jface的treeviewerlgQ所以一直没有关?j)资源的问题~但是1W的数据,使用的SWT的原生Treel装的~而且q用?jin)一些字体~<br /> 排查代码Q竟然发现有字体被new出,但是没有释放~问题出在这里~<br />    调用? <p><code><font face="新宋?>Font font = new Font (display, "Courier", 10, SWT.NORMAL);</font></code></p> <p>那么应该在不在需要这个Font的时候调?/p> <p><code><font face="新宋?>font.dispose();</font></code></p> 两个原则Q?br /> W一条是"谁占用,谁释?Q第二条?父构件被销毁,子构件也同时被销?? <img src ="http://www.aygfsteel.com/leeguannan/aggbug/145175.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/leeguannan/" target="_blank">阿南</a> 2007-09-14 16:34 <a href="http://www.aygfsteel.com/leeguannan/archive/2007/09/14/145175.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>SWT中用JFreeChartQ无需SWT_AWTQ?/title><link>http://www.aygfsteel.com/leeguannan/archive/2007/08/21/138273.html</link><dc:creator>阿南</dc:creator><author>阿南</author><pubDate>Tue, 21 Aug 2007 01:22:00 GMT</pubDate><guid>http://www.aygfsteel.com/leeguannan/archive/2007/08/21/138273.html</guid><wfw:comment>http://www.aygfsteel.com/leeguannan/comments/138273.html</wfw:comment><comments>http://www.aygfsteel.com/leeguannan/archive/2007/08/21/138273.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/leeguannan/comments/commentRss/138273.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/leeguannan/services/trackbacks/138273.html</trackback:ping><description><![CDATA[     摘要:     好像?.03开始Jfc已l提供了(jin)在SWT中用JFC的专用包和类Q只是没有h写这些东西而已~今天我就贴一些DemoQ以后再也不用SWT_AWT?jin)~   1/**//* ===========================================================  2 *...  <a href='http://www.aygfsteel.com/leeguannan/archive/2007/08/21/138273.html'>阅读全文</a><img src ="http://www.aygfsteel.com/leeguannan/aggbug/138273.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/leeguannan/" target="_blank">阿南</a> 2007-08-21 09:22 <a href="http://www.aygfsteel.com/leeguannan/archive/2007/08/21/138273.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>SWT中用JFreechartQ例子)(j)http://www.aygfsteel.com/leeguannan/archive/2007/08/20/138170.html阿南阿南Mon, 20 Aug 2007 07:59:00 GMThttp://www.aygfsteel.com/leeguannan/archive/2007/08/20/138170.htmlhttp://www.aygfsteel.com/leeguannan/comments/138170.htmlhttp://www.aygfsteel.com/leeguannan/archive/2007/08/20/138170.html#Feedback3http://www.aygfsteel.com/leeguannan/comments/commentRss/138170.htmlhttp://www.aygfsteel.com/leeguannan/services/trackbacks/138170.html阅读全文

阿南 2007-08-20 15:59 发表评论
]]>
SWT---nebula_cdatetime_0.9.0中文?/title><link>http://www.aygfsteel.com/leeguannan/archive/2007/07/31/133563.html</link><dc:creator>阿南</dc:creator><author>阿南</author><pubDate>Tue, 31 Jul 2007 06:21:00 GMT</pubDate><guid>http://www.aygfsteel.com/leeguannan/archive/2007/07/31/133563.html</guid><wfw:comment>http://www.aygfsteel.com/leeguannan/comments/133563.html</wfw:comment><comments>http://www.aygfsteel.com/leeguannan/archive/2007/07/31/133563.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/leeguannan/comments/commentRss/133563.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/leeguannan/services/trackbacks/133563.html</trackback:ping><description><![CDATA[今天修改?jin)一下nebula_cdatetime_0.9.0Q把nebula_cdatetime_0.9.0做了(jin)一下汉化,特地攑ֈblog上,供大家用;<br>nebula_cdatetime_0.9.0中的旉和日期选择器比SWT3.4的日期选择要好用一些,q里汉化的主要是操作界面上的英文Q星期和月䆾的汉化是和Locale有关的,使用时代码如下:(x)<br> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #008080">1</span><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top><span style="COLOR: #000000">        workTimeDate </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> CDateTime(container, CDT.BORDER </span><span style="COLOR: #000000">|</span><span style="COLOR: #000000"> CDT.DROP_DOWN);<br></span><span style="COLOR: #008080">2</span><span style="COLOR: #000000"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top>        workTimeDate.setLocale(Locale.CHINA);<br></span><span style="COLOR: #008080">3</span><span style="COLOR: #000000"><img src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" align=top>        workTimeDate.setSelection(</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000">);</span></div> <a href="http://www.aygfsteel.com/Files/leeguannan/nebula_cdatetime_0.9.0.rar">http://www.aygfsteel.com/Files/leeguannan/nebula_cdatetime_0.9.0.rar</a> <img src ="http://www.aygfsteel.com/leeguannan/aggbug/133563.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/leeguannan/" target="_blank">阿南</a> 2007-07-31 14:21 <a href="http://www.aygfsteel.com/leeguannan/archive/2007/07/31/133563.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>{转}实现SWT(JFace)里的表格隔行换色功能http://www.aygfsteel.com/leeguannan/archive/2007/07/27/132877.html阿南阿南Fri, 27 Jul 2007 11:47:00 GMThttp://www.aygfsteel.com/leeguannan/archive/2007/07/27/132877.htmlhttp://www.aygfsteel.com/leeguannan/comments/132877.htmlhttp://www.aygfsteel.com/leeguannan/archive/2007/07/27/132877.html#Feedback2http://www.aygfsteel.com/leeguannan/comments/commentRss/132877.htmlhttp://www.aygfsteel.com/leeguannan/services/trackbacks/132877.html
public class XXXXLableProvider implements ITableLabelProvider, ITableColorProvider {
 (tng) (tng) (tng) private Color[] bg = new Color[]{new Color(null, 255,255,255), new Color(null, 247,247,240)};
 (tng) (tng) (tng) private Color[] force = new Color[]{new Color(null, 0,0,0), new Color(null, 0,0,0)};
 (tng) (tng) (tng) .....

 (tng) (tng) (tng) public Color getForeground(Object element, int columnIndex) {
 (tng) (tng) (tng)  (tng) (tng) (tng) return force[columnIndex%2];
 (tng) (tng) (tng) }

 (tng) (tng) (tng)
 (tng) (tng) (tng) public Color getBackground(Object element, int columnIndex) {
 (tng) (tng) (tng)  (tng) (tng) (tng) return bg[columnIndex%2];
 (tng) (tng) (tng) }
}

bg是背景色,分两U?force是前景色,也是两种,分别对应,x(chng)成其它的颜色,修改两个定义部分可以了(jin).

2,但要实现隔行换色比较麻?ch)些?不过q是可以实现,实现原理也很?是记录上一ơ的对象,与本ơ对象如果不同就换颜?否则一直用当前颜?代码如下:

public class XXXXLableProvider implements ITableLabelProvider, ITableColorProvider {
 (tng) (tng) (tng) private Color[] bg = new Color[]{new Color(null, 255,255,255), new Color(null, 247,247,240)};
 (tng) (tng) (tng) private Color[] force = new Color[]{new Color(null, 0,0,0), new Color(null, 0,0,0)};
 (tng) (tng) (tng) private Object current = null;
 (tng) (tng) (tng) private int currentColor = 0;
 (tng) (tng) (tng) ......
 (tng) (tng) (tng) public Color getForeground(Object element, int columnIndex) {
 (tng) (tng) (tng)  (tng) (tng) (tng) return force[currentColor];
 (tng) (tng) (tng) }


 (tng) (tng) (tng) public Color getBackground(Object element, int columnIndex) {
 (tng) (tng) (tng)  (tng) (tng) (tng) if (current != element) {
 (tng) (tng) (tng)  (tng) (tng) (tng)  (tng) (tng) (tng) currentColor = 1 - currentColor;
 (tng) (tng) (tng)  (tng) (tng) (tng)  (tng) (tng) (tng) current = element;
 (tng) (tng) (tng)  (tng) (tng) (tng) }
 (tng) (tng) (tng)  (tng) (tng) (tng) return bg[currentColor];
 (tng) (tng) (tng) }
}

颜色也是和上面一?不过q样做出来的隔行换色毕竟q(sh)是SWT表格本n支持?如果表格行没有充?在后面看到的q是表格的背景色(默认白色)


阿南 2007-07-27 19:47 发表评论
]]>
վ֩ģ壺 | | | կ| °Ͷ| Ȫ| ¡| | | | ϵ| »| ɽ| ƽ| | | | | ƺ| | | ɳ| | | | | | | | | | ǭ| ̩| ɽ| | Ұ| ɳ| | Դ| | |