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

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

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

Table.getHeaderBackground介绍

[英]Returns the header background color.
[中]返回标题背景色。

代码示例

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.examples

void setHeaderBackground () {
  if (!instance.startup) {
    table1.setHeaderBackground (headerBackgroundColor);
  }
  /* Set the header background color item's image to match the header background color. */
  Color color = headerBackgroundColor;
  if (color == null) color = table1.getHeaderBackground();
  TableItem item = colorAndFontTable.getItem(HEADER_BACKGROUND_COLOR);
  Image oldImage = item.getImage();
  if (oldImage != null) oldImage.dispose();
  item.setImage (colorImage(color));
}

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

renderProperty( table, PROP_HEADER_VISIBLE, table.getHeaderVisible(), false );
renderProperty( table, PROP_HEADER_FOREGROUND, table.getHeaderForeground(), null );
renderProperty( table, PROP_HEADER_BACKGROUND, table.getHeaderBackground(), null );
renderProperty( table, PROP_LINES_VISIBLE, table.getLinesVisible(), false );
renderProperty( table, PROP_SORT_DIRECTION, getSortDirection( table ), DEFAULT_SORT_DIRECTION );

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

@Override
public void preserveValues( Table table ) {
 preserveProperty( table, PROP_ITEM_COUNT, table.getItemCount() );
 preserveProperty( table, PROP_ITEM_HEIGHT, table.getItemHeight() );
 preserveProperty( table, PROP_ITEM_METRICS, getItemMetrics( table ) );
 preserveProperty( table, PROP_COLUMN_COUNT, table.getColumnCount() );
 preserveProperty( table, PROP_COLUMN_ORDER, getColumnOrder( table ) );
 preserveProperty( table, PROP_FIXED_COLUMNS, getFixedColumns( table ) );
 preserveProperty( table, PROP_HEADER_HEIGHT, table.getHeaderHeight() );
 preserveProperty( table, PROP_HEADER_VISIBLE, table.getHeaderVisible() );
 preserveProperty( table, PROP_HEADER_FOREGROUND, table.getHeaderForeground() );
 preserveProperty( table, PROP_HEADER_BACKGROUND, table.getHeaderBackground() );
 preserveProperty( table, PROP_LINES_VISIBLE, table.getLinesVisible() );
 preserveProperty( table, PROP_TOP_ITEM_INDEX, table.getTopIndex() );
 preserveProperty( table, PROP_FOCUS_ITEM, getFocusItem( table ) );
 preserveProperty( table, PROP_SCROLL_LEFT, getScrollLeft( table ) );
 preserveProperty( table, PROP_SELECTION, getSelection( table ) );
 preserveProperty( table, PROP_SORT_DIRECTION, getSortDirection( table ) );
 preserveProperty( table, PROP_SORT_COLUMN, table.getSortColumn() );
 preserveProperty( table, PROP_ALWAYS_HIDE_SELECTION, hasAlwaysHideSelection( table ) );
 preserveProperty( table, PROP_ENABLE_CELL_TOOLTIP, CellToolTipUtil.isEnabledFor( table ) );
 preserveProperty( table, PROP_CELL_TOOLTIP_TEXT, null );
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.examples

case HEADER_BACKGROUND_COLOR: {
  Color oldColor = headerBackgroundColor;
  if (oldColor == null) oldColor = table1.getHeaderBackground();
  colorDialog.setRGB(oldColor.getRGB());
  RGB rgb = colorDialog.open();

相关文章

Table类方法