10 2012 档案

摘要:(1)如果是在第一列,则可以使用SWT.CHECK 样式来实现,例如: Table table = new Table(parent, SWT.CHECK);(2)如果不是第一列,则可以使用TableEditor,创建一个Control悬浮在CellEditor之上,例如: TableEditoreditor=newTableEditor(table); Button button = new Button(table, SWT.CHECK); button.pack(); editor.minimumWidth = button.getSize().x; editor.horizontalA 阅读全文
posted @ 2012-10-15 23:12 finalstar 阅读(4024) 评论(0) 推荐(0)
摘要:对一个类(或接口、方法)来说,应该只专注于做一件事,这样就能保证仅有一个引起它变化的原因。 阅读全文
posted @ 2012-10-08 23:38 finalstar 阅读(150) 评论(0) 推荐(0)