在SWT的table中或在JFace的TableViewer中添加checkbox
(1)如果是在第一列,则可以使用SWT.CHECK样式来实现,例如: Table table = new Table(parent, SWT.CHECK); (2)如果不是第一列,则可以使用TableEditor,创建一个Control悬浮在CellEditor之上,例如: ...
java基础 ---JFace中的TableViewer
java基础 ---JFace中的TableViewer 在上一篇介绍了SWT/JFace窗口的建立,以及窗口的一些属性的设置。还有菜单栏的建立。下面介绍一下表格的建立。在SWT中有个Table类,用法也比较简单。但是我们一般采用的是JFace中的TableViewer来建立一个表格。我们可以从AP...
Swt/Jface tableViewer总结(五)
http://tieba.baidu.com/f?kz=168159793 一、前言 在《Eclipse从入门到精通》一书中,TableViewer的例子还是被相对简化了的,今天(2005年8月30日)在开发中正好涉及到这方面,于是将代码提取出来,帖在这里以供读者参考。 二、实例说明 实例的示...
Swt/Jface tableViewer入门教程三(加入在表格上直接编辑数据)
前边实现了一个表格的基本功能,但这并不够好,能否为表格实现一些更好的功能呢?答案是肯定的。下边我们来加入直接编辑的功能。一、要实现这个功能必须提供一个实现ICellModifier的类。内容如下 import org.eclipse.jface.viewers.ICellModifier...
SWT/JFACE表格Table可编辑
SWT/JFACE表格Table可编辑 2009-10-12 22:52 今天刚好遇到了这个问题写了个例子,。 public class Test {public static String []NAMES={"周杰伦","王力宏","SHE"};//定义下拉框内的值publ...
JFace 可编辑的TableViewer的cell
分三步走: 2、设置ColumnProperties的内容 tableViewer.setColumnProperties(new String[]....) 2、设置CellEditors的内容 tableViewer.setCellEditors(cellEditor); 3、设...
用EditingSupport构建一个数学矩阵的JFace TableViewer。
Our application (Eclipse RCP-based, using a JFace/SWT-based interface) needs to support editing of mathematical matrices. The matrices are always squa...
Swt/Jface tableViewer入门教程一(显示tableViewer)
1,简单显示,表格的式样见注释中的内容 import org.eclipse.jface.viewers.TableViewer; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Display; impo...
Swt/Jface tableViewer入门教程二(让TableViewer按照列排序)
有一个功能是我们常使用的,就是在列的头上点击一下,整个表的记录按照这个列来排序,再点击一下按照这个列的反序来排序。那JFace是如何实现这个功能的呢? 在JFace中是通过一个排序器来实现的,就是ViewerSorter下边写出详细的步骤 一、定义一个sorter继承自ViewerSorter ...
关于JFace的TableViewer中引入ComboBoxCellEditor 快速双击对于Cell Combo无法展开问题的解决
背景: 之前我上传过一个关于TableViewer的使用说明(也提供的了源码下载) 当通过ComboBoxCellEditor设置姓名时,需要通过三次单击: 第一次:选中Cell 第二次:展开Combo 第三次:选中想要输入的名称 问题描述: 当如果你快速执行前两次单击 即:双击时,Combo...
JFace TableViewer性能改善 -- 使用VirtualTable
前一篇提到了SWT中的table的通过使用virtual table性能得到很大的改善,那么如果既存的工程中使用的是TableViewer来创建的表,也能改成virtual table吗? 答案是肯定的,而且改起来超级简单,只需要在创建TableViewer的时候,加一个SWT.VIRTUAL属性即...
为JFace(TableViewer,TreeViewer...)创建可直接编辑的DialogCellEditor
最终的解决方式采用了额外的线程,鉴于笔者对于多线程的功底不深所以很有可能引起其他问题.待完善.但本博客肯定会帮助你深刻了解问题. 如果你有优雅的多线程处理,别犹豫联系我. 背景: 1.JFace的TableViewer,TreeViewer普遍应用,TextCellEditor,ComboCellE...
使用ViewerSorter和StyledCellLabelProvider的JFace TableViewer。
In my TableViewer there are some TableViewerColumns. I have a text widget and a button 'search'. Whenever i hit search i want to color the table cells...
SWT/JFACE之TableViewer的使用
测试SWT/JFACE tableViewer对象的使用效果图: /** * 测试TableViewer * @description {description} * @className TableViewTest * @author share * @date 2012-5-7 上午11:36:...
Eclipse Juno -断言失败(当从插件调用代码时出现问题:“org.eclipse.jface”)。
I recently installed Eclispe Juno for Java for Android. I usually press . after a class name to know the associated methods, in case I wish to choose ...
eclipse启动报错 Problems occurred when invoking code from plug-in: "org.eclipse.jface"
eclipse在使用中可能会发生错误: Problems occurred when invoking code from plug-in: "org.eclipse.jface" 解决办法是将eclipse中的项目删除,但是要保留磁盘的项目 然后再import导入改项目,注意不要copy: ...
eclipse swt/jface/RCP 学习网址积累[转载]
转自:http://hi.baidu.com/javaanwei/blog/item/b824d424a7fb8a024c088d1e.html Eclipse.org http://www.eclipse.org/ Eclipse官方网站;值得敬佩的是它对Eclipse的介绍真的很全面,...
关于SWT/JFace的API文档
在CSDN上下了几个CHM格式的文档,下载的时候要付的分数还挺高,但是下载下来三个都不能用,左边罗列了所有的类和方法.双击按回车右边都没有内容.真坑爹.>>>>>>>>>>>>>>>>后来了解到的追加&g...
Eclipse RCP和JFace:上下文菜单和TreeViewer中的图像问题
I'm working on an Eclipse RCP application. Today I experienced some troubles when displaying images in the context menu. What I wanted to do is to add...
Eclipse中的JFace示例,比如SWT示例?
Are there any all-in-one JFace controls example out there like the SWT Examples in Eclipse? Searching (googling and searching here on stackoverflow.co...