本文整理了Java中org.eclipse.swt.widgets.Table.addPaintListener()
方法的一些代码示例,展示了Table.addPaintListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.addPaintListener()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称:Table
方法名:addPaintListener
暂无
代码示例来源:origin: anb0s/LogViewer
private void init() {
table.addPaintListener(this);
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
@Override
protected void createButtons(Composite parent, FormToolkit toolkit) {
super.createButtons(parent, toolkit);
enableButtons();
if (createCount()) {
Composite comp = toolkit.createComposite(fButtonContainer);
comp.setLayout(createButtonsLayout());
comp.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_END | GridData.FILL_BOTH));
fCount = toolkit.createLabel(comp, ""); //$NON-NLS-1$
fCount.setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
fCount.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
getTablePart().getTableViewer().getTable().addPaintListener(e -> updateLabel());
}
}
代码示例来源:origin: stackoverflow.com
table.addPaintListener(new PaintListener() {
public void paintControl(PaintEvent e) {
Rectangle rect = table.getClientArea ();
代码示例来源:origin: stackoverflow.com
table.setHeaderVisible(true);
table.setLinesVisible(true);
table.addPaintListener(new PaintListener() {
public void paintControl(PaintEvent e) {
System.out.println(((Table)e.widget).getItemCount() > 0);
代码示例来源:origin: org.eclipse.platform/org.eclipse.debug.ui
fTableViewer.getTable().addPaintListener(new PaintListener() {
@Override
public void paintControl(PaintEvent e) {
内容来源于网络,如有侵权,请联系作者删除!