`
JasonRight
  • 浏览: 73792 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Cell editor 显示 CheckBox

    博客分类:
  • Java
 
阅读更多

在SWT的Table中显示CheckBox, 以前知道的方法是

 

如果是第一列则new Table(parent, SWT.CHECK)

 

如果是其它列则用图标来显示, 一个是选中,一个是未选中

 

现在知道的一种方式是用TableEditor,创建一个Control悬浮在Cell上

 

 

http://www.java2s.com/Tutorial/Java/0280__SWT/TableCellEditorComboTextandButton.htm

分享到:
评论

相关推荐

    Ext 可编辑表格

    在列模型中设置`editor`为一个复选框实例,`xtype`应设为'checkbox'。 ```javascript { text: '已确认', dataIndex: 'confirmed', editor: { xtype: 'checkbox', inputValue: true, uncheckedValue: false ...

    fckedit编辑器

    FCKConfig.ContextMenu = ['Generic',/*'Link',*/'Anchor',/*'Image',*/'Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField', /*'ImageButton',*/'Button','BulletedList','NumberedList','...

    cuteEditor6.0

    You can also insert Form elements (checkbox, button, textarea, etc.) and modify certain properties of the element. 默认换行为软回车 (Demo) <br/>Most other editors insert double line ...

    TMS Pack for FireMonkey2.3.0.1

    Fixed : Issue with checkbox and radiobutton not rendering correctly on iOS project in TTMSFMXGrid Fixed : Issue with accessing and adding progressbar cells in TTMSFMXGrid Fixed : Repaint bug in XE3...

    计算机常用日语片假名的英文对照

    11. **Checkbox(チェックボックス)**: 复选框是一种用户界面元素,允许用户在多个选项中选择一个或多个项。 12. **Class(クラス)**: 类是面向对象编程中的基本概念,定义了对象的属性和方法。 13. **Clear(ク...

    honobbs论坛系统最新版

    │ │ │ └─editor (9 folders, 5 files, 16.61 KB, 1.80 MB in total.) │ │ │ │ │ fckblank.html 60 bytes │ │ │ │ │ fckdebug.html 3.05 KB │ │ │ │ │ fckdialog.html 7.69 KB...

Global site tag (gtag.js) - Google Analytics