本文整理了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
[英]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());
内容来源于网络,如有侵权,请联系作者删除!