摘要: 以前做的笔记,供需要的朋友参考刚从图书馆借了几本不错的java经典书籍,翻了翻,做了一些摘抄比较。·实例方法被覆盖,静态方法被隐藏,即静态方法不能被覆盖·试图用子类的静态方法隐藏父类中同样标识的实例方法是不合法的。编译器会报错。·试图用子类的实例方法覆盖父类中同样标识的静态方法是不合法的,编辑器会报错。·静态方法和final方法是不能被覆盖的。·实例方法能够被覆盖·抽象方法必须在具体类中被覆盖·在执行等式比较时,应该始终使用String.equals()而不是==比较符,单n and m均为String实例的引用时,语句n. 阅读全文
posted @ 2012-11-08 16:52 gmartincn 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 1.开闭原则在设计一个模块时,应当使这个模块可以在不被修改的前提下被扩展。开闭原则从另外一个角度讲述,就是“对可变性的封装原则”,即找到一个系统的可变因素,将之封装起来。这意味着两点:可变性应当被封装到一个对象里面。继承应当被看做封装变化的方法,而不是从一般对象生成特殊对象的方法。一种可变性不应当与另一种可变性混合在一起,实践上,通常类图的继承结构不会超过两层。“将条件转移语句改写成为多态性”,将一个进行多次条件转移的商业逻辑封装到不同的具体子类。如果一个条件转移语句没有涉及重要的商务逻辑,或者不会随着时间的变化而变化,也不意味着任何的可扩展性,那么它就没有涉及任何有意义的可变化。这就没必要转 阅读全文
posted @ 2012-10-25 09:34 gmartincn 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 说明:本文对Chrome Developer Tools系列翻译文章的五篇原文见https://developers.google.com/chrome-developer-tools/docs/elementsChrome Developer Tools: Elements PanelElements面板TheElementspanel lets you see everything in one DOM tree, and allows inspection and on-the-fly editing of DOM elements. You will often visit the E 阅读全文
posted @ 2012-10-22 16:27 gmartincn 阅读(724) 评论(0) 推荐(0) 编辑
摘要: 说明:本文对Chrome Developer Tools系列翻译文章的第四篇原文见https://developers.google.com/chrome-developer-tools/docs/resourcesChrome Developer Tools: Resources PanelChrome Developer Tools:资源面板TheResourcespanel lets you inspect resources that are loaded in the inspected page. It lets you interact with HTML 5 Database, 阅读全文
posted @ 2012-10-22 16:26 gmartincn 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 说明:本文对Chrome Developer Tools系列翻译文章的三篇原文见https://developers.google.com/chrome-developer-tools/docs/networkChrome Developer Tools: Network PanelChrome Developer Tools:网络面板TheNetworkpanel lets you inspect resources that are downloaded over the network.在网络面板里能查看资源在网络上下载的情况。Follow the steps below to expl 阅读全文
posted @ 2012-10-11 10:19 gmartincn 阅读(843) 评论(0) 推荐(0) 编辑
摘要: 对一个在tfs上的项目进行自动编译使用teamprise的ant插件,详见http://labs.teamprise.com/build/ant.html安装teamprise的ant插件 下载teamprise-ant-1.2.zip 解压,把teamprise-ant-1.2.jar拷贝到ant的lib目录,完成编写build.xml<project name="test-teamprise-ant-tasks" basedir="e:/stsworkspace/code" default="deploy"> < 阅读全文
posted @ 2012-10-11 10:12 gmartincn 阅读(464) 评论(0) 推荐(0) 编辑
摘要: 说明:本文对Chrome Developer Tools系列翻译文章的二篇原文见https://developers.google.com/chrome-developer-tools/docs/scriptsChrome Developer Tools: Scripts PanelChrome Developer Tools: 脚本面板TheScriptspanel lets you debug your JavaScript code.脚本面板让你调试你的的JavaScript代码TheScriptspanel provides a graphical interface to the V 阅读全文
posted @ 2012-09-05 11:27 gmartincn 阅读(511) 评论(0) 推荐(0) 编辑
摘要: dojox.grid.DataGrid是dojo非常好用的表格控件dojox.grid.EnhancedGrid是它的增强控件,本文通过简单的例子介绍利用插件dojox.grid.enhanced.plugins.DnD实现拖拽的表格直接上代码<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- 实现拖拽的表格 --><html><head>< 阅读全文
posted @ 2012-08-20 17:46 gmartincn 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 本文通过一个小程序说明dojo.store.Memory的用法<!DOCTYPE html><html ><head><script type="text/javascript" src="./dojo172/dojo/dojo.js" djConfig="parseOnLoad:true"></script><link rel="stylesheet" href="./dojo172/dijit/themes/claro/claro.cs 阅读全文
posted @ 2012-08-17 17:29 gmartincn 阅读(1001) 评论(0) 推荐(0) 编辑
摘要: 说明:本文对Chrome Developer Tools系列翻译文章的一篇原文见https://developers.google.com/chrome-developer-tools/docs/elements-stylesChrome Developer Tools: Element StylesThis tutorial covers editing CSS styles using various DevTools aids.这个教程讲解了通过开发工具编辑CSS样式。Note:If you are a Web Developer and want to get the latest v 阅读全文
posted @ 2012-05-28 09:56 gmartincn 阅读(787) 评论(0) 推荐(0) 编辑