您的位置:首页 > 理论基础 > 计算机网络

TCP序列号和确认号详解

2016-03-04 11:11 411 查看
和TextCellEditor不同, CheckboxCellEditor不会创建Control.

 

/**
* Note that this implementation simply fakes it and does does not create
* any new controls.
*/

 

创建CheckboxCellEditor只需

 

new CheckboxCellEditor(null, SWT.CHECK)

 

CheckboxCellEditor通过LableProvider来显示值被改变。

 

//根据element的值返回不同的图片。
ITableLabelProvider.getColumnImage(Object element, int columnIndex)

 
 

点击cell时, CheckboxCellEditor会将值取反。

 

public void activate() {
value = !value;

fireApplyEditorValue();
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: