com.google.gwt.user.cellview.client.Header.getKey()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(122)

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

Header.getKey介绍

[英]Get the key for the header value. By default, the key is the same as the value. Override this method to return a custom key.
[中]获取标题值的键。默认情况下,键与值相同。重写此方法以返回自定义键。

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Build the table header for the column.
 */
private void buildTableHeader(TableRowBuilder tr, Column<T, ?> column, Header<?> header,
  boolean isSortable, boolean isSorted, boolean isSortAscending, StringBuilder classesBuilder,
  String sortableStyle, String sortedStyle, int prevColspan, int curColumn) {
 if (isSortable) {
  classesBuilder.append(sortableStyle);
 }
 if (isSorted) {
  classesBuilder.append(sortedStyle);
 }
 appendExtraStyles(header, classesBuilder);
 TableCellBuilder th = tr.startTH().colSpan(prevColspan).className(classesBuilder.toString());
 enableColumnHandlers(th, column);
 if (header != null) {
  // Build the header.
  Context context = new Context(0, curColumn - prevColspan, header.getKey());
  if (isSortable) {
   // TODO: Figure out aria-label and translation of label text
   th.attribute("role", "button");
   th.tabIndex(-1);
  }
  renderSortableHeader(th, context, header, isSorted, isSortAscending);
 }
 th.endTH();
}

代码示例来源:origin: com.google.gwt/gwt-servlet

int headerIndex = isHeader ? headerBuilder.getRowIndex(targetTableRow) :
  footerBuilder.getRowIndex(targetTableRow);
Context context = new Context(headerIndex, col, header.getKey());

代码示例来源:origin: net.wetheinter/gwt-user

if (prevHeader != null) {
   Context context = new Context(0, curColumn - prevColspan, prevHeader.getKey());
enableColumnHandlers(th, column);
if (prevHeader != null) {
 Context context = new Context(0, curColumn - prevColspan, prevHeader.getKey());
 renderSortableHeader(th, context, prevHeader, isSorted, isSortAscending);

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

if (prevHeader != null) {
   Context context = new Context(0, curColumn - prevColspan, prevHeader.getKey());
enableColumnHandlers(th, column);
if (prevHeader != null) {
 Context context = new Context(0, curColumn - prevColspan, prevHeader.getKey());
 renderSortableHeader(th, context, prevHeader, isSorted, isSortAscending);

代码示例来源:origin: net.wetheinter/gwt-user

int headerIndex = isHeader ? headerBuilder.getRowIndex(targetTableRow) :
  footerBuilder.getRowIndex(targetTableRow);
Context context = new Context(headerIndex, col, header.getKey());

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

int headerIndex = isHeader ? headerBuilder.getRowIndex(targetTableRow) :
  footerBuilder.getRowIndex(targetTableRow);
Context context = new Context(headerIndex, col, header.getKey());

相关文章