org.eclipse.swt.widgets.Table.getStyle()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(171)

本文整理了Java中org.eclipse.swt.widgets.Table.getStyle()方法的一些代码示例,展示了Table.getStyle()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.getStyle()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称:Table
方法名:getStyle

Table.getStyle介绍

暂无

代码示例

代码示例来源:origin: com.haulmont.thirdparty/glazedlists

/**
 * Gets wether the table is virtual or not.
 */
private boolean isTableVirtual() {
  return ((table.getStyle() & SWT.VIRTUAL) == SWT.VIRTUAL);
}

代码示例来源:origin: org.codehaus.openxma/xmartclient

/**
 * Returns true if selection is performed via check boxes and not by
 * conventionally highlighting lines
 */
private boolean checkedSelection () {
  return (table_.getStyle() & SWT.CHECK) != 0;
}

代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java16

* Gets wether the table is virtual or not.
 */
private boolean isTableVirtual() {
  return ((table.getStyle() & SWT.VIRTUAL) == SWT.VIRTUAL);
}
/**

代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java15

* Gets wether the table is virtual or not.
 */
private boolean isTableVirtual() {
  return ((table.getStyle() & SWT.VIRTUAL) == SWT.VIRTUAL);
}
/**

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

private static boolean isVirtual( Table table ) {
 return ( table.getStyle() & SWT.VIRTUAL ) != 0;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

@Override
public int getStyle () {
  checkWidget();
  return table.getStyle();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

@Override
public int getStyle () {
  checkWidget();
  return table.getStyle();
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
public int getStyle () {
  checkWidget();
  return table.getStyle();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

@Override
public int getStyle () {
  checkWidget();
  return table.getStyle();
}

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

public int getStyle () {
  checkWidget();
  return table.getStyle();
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt.q07

private static boolean writeGrayed( final TableItem item ) throws IOException
{
 boolean result;
 if( ( item.getParent().getStyle() & SWT.CHECK ) != 0 ) {
  JSWriter writer = JSWriter.getWriterFor( item );
  Boolean newValue = Boolean.valueOf( item.getGrayed() );
  result = writer.set( PROP_GRAYED, "grayed", newValue, Boolean.FALSE );
 } else {
  result = false;
 }
 return result;
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

private TableOwnerDrawSupport(Table table) {
  int orientation= table.getStyle() & (SWT.LEFT_TO_RIGHT | SWT.RIGHT_TO_LEFT);
  fSharedLayout= new TextLayout(table.getDisplay());
  fSharedLayout.setOrientation(orientation);
}

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

void addCheck() {
  Table table = parent.getTable();
  if ((table.getStyle() & SWT.CHECK) == 0) return;
  tableItem.setChecked(checked);
  tableItem.setGrayed(grayed);
}
void addItem(TableTreeItem item, int index) {

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

void addCheck() {
  Table table = parent.getTable();
  if ((table.getStyle() & SWT.CHECK) == 0) return;
  tableItem.setChecked(checked);
  tableItem.setGrayed(grayed);
}
void addItem(TableTreeItem item, int index) {

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text

private TableOwnerDrawSupport(Table table) {
  int orientation= table.getStyle() & (SWT.LEFT_TO_RIGHT | SWT.RIGHT_TO_LEFT);
  fSharedLayout= new TextLayout(table.getDisplay());
  fSharedLayout.setOrientation(orientation);
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

void addCheck() {
  Table table = parent.getTable();
  if ((table.getStyle() & SWT.CHECK) == 0) return;
  tableItem.setChecked(checked);
  tableItem.setGrayed(grayed);
}
void addItem(TableTreeItem item, int index) {

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

void addCheck() {
  Table table = parent.getTable();
  if ((table.getStyle() & SWT.CHECK) == 0) return;
  tableItem.setChecked(checked);
  tableItem.setGrayed(grayed);
}
void addItem(TableTreeItem item, int index) {

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

void addCheck() {
  Table table = parent.getTable();
  if ((table.getStyle() & SWT.CHECK) == 0) return;
  tableItem.setChecked(checked);
  tableItem.setGrayed(grayed);
}
void addItem(TableTreeItem item, int index) {

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt.q07

private static boolean writeChecked( final TableItem item )
 throws IOException
{
 boolean result;
 if( ( item.getParent().getStyle() & SWT.CHECK ) != 0 ) {
  JSWriter writer = JSWriter.getWriterFor( item );
  Boolean newValue = Boolean.valueOf( item.getChecked() );
  result = writer.set( PROP_CHECKED, "checked", newValue, Boolean.FALSE );
 } else {
  result = false;
 }
 return result;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.debug.ui

/**
 * Table must be SWT.VIRTUAL. This is intentional. Labels will never be
 * retrieved for non-visible items.
 *
 * @see SWT#VIRTUAL
 * @param table the backing table widget
 */
public AsynchronousTableViewer(Table table) {
  Assert.isTrue((table.getStyle() & SWT.VIRTUAL) != 0);
  fTable = table;
  hookControl(fTable);
  fTableEditor = new TableEditor(fTable);
  fTableEditorImpl = createTableEditorImpl();
}

相关文章

Table类方法