本文整理了Java中com.google.gwt.user.cellview.client.Header.setHeaderStyleNames()
方法的一些代码示例,展示了Header.setHeaderStyleNames()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Header.setHeaderStyleNames()
方法的具体详情如下:
包路径:com.google.gwt.user.cellview.client.Header
类名称:Header
方法名:setHeaderStyleNames
[英]Set extra style names that should be applied to every cell in this header.
If you want to apply style names based on the header value, override #getHeaderStyleNames(Object) directly.
[中]设置应应用于此标头中每个单元格的额外样式名称。
如果要基于标题值应用样式名称,请直接重写#getHeaderStyleNames(对象)。
代码示例来源:origin: bedatadriven/activityinfo
private void onColumnSelectionChanged() {
// ensure the column is scrolled into view
int newColumnIndex = columnSelectionModel.getSelectedObject().getIndex();
scrollColumnIntoView(newColumnIndex);
// clear the selection styles from the old column
if (lastSelectedColumn != -1) {
removeHeaderStyleName(lastSelectedColumn, ColumnMappingStyles.INSTANCE.selected());
this.removeColumnStyleName(lastSelectedColumn, ColumnMappingStyles.INSTANCE.selected());
}
// add the bg to the new selection
this.getHeader(newColumnIndex).setHeaderStyleNames(ColumnMappingStyles.INSTANCE.selected());
this.addColumnStyleName(newColumnIndex, ColumnMappingStyles.INSTANCE.selected());
lastSelectedColumn = newColumnIndex;
}
代码示例来源:origin: kiegroup/jbpm-wb
protected ColumnMeta<T> initActionsColumn() {
final ConditionalKebabActionCell<T> cell = conditionalKebabActionCell.get();
cell.setActions(getConditionalActions());
Column<T, T> actionsColumn = new Column<T, T>(cell) {
@Override
public T getValue(T object) {
return object;
}
};
actionsColumn.setDataStoreName(COL_ID_ACTIONS);
actionsColumn.setCellStyleNames("kie-table-view-pf-actions text-center");
Header header = new TextHeader(Constants.INSTANCE.Actions());
header.setHeaderStyleNames("text-center");
final ColumnMeta<T> actionsColMeta = new ColumnMeta<T>(actionsColumn,
"");
actionsColMeta.setHeader(header);
actionsColMeta.setVisibleIndex(false);
return actionsColMeta;
}
代码示例来源:origin: org.jbpm/jbpm-wb-process-runtime-client
private ColumnMeta<ProcessSummary> initActionsColumn() {
final ConditionalKebabActionCell<ProcessSummary> cell = conditionalKebabActionCell.get();
cell.setActions(getConditionalActions());
Column<ProcessSummary, ProcessSummary> actionsColumn = new Column<ProcessSummary, ProcessSummary>(cell) {
@Override
public ProcessSummary getValue(ProcessSummary object) {
return object;
}
};
actionsColumn.setDataStoreName(COL_ID_ACTIONS);
actionsColumn.setCellStyleNames("kie-table-view-pf-actions text-center");
Header header = new TextHeader(org.jbpm.workbench.common.client.resources.i18n.Constants.INSTANCE.Actions());
header.setHeaderStyleNames("text-center");
final ColumnMeta<ProcessSummary> actionsColMeta = new ColumnMeta<ProcessSummary>(actionsColumn,
"");
actionsColMeta.setHeader(header);
return actionsColMeta;
}
代码示例来源:origin: kiegroup/jbpm-wb
selectPageHeader.setHeaderStyleNames("kie-datatable-select");
内容来源于网络,如有侵权,请联系作者删除!