本文整理了Java中com.google.gwt.user.client.ui.Grid.getRowFormatter()
方法的一些代码示例,展示了Grid.getRowFormatter()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Grid.getRowFormatter()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Grid
类名称:Grid
方法名:getRowFormatter
暂无
代码示例来源:origin: stackoverflow.com
Grid g = new Grid();
int rowNumberToHideFromDom;
g.getRowFormatter().getElement(rowNumberToHideFromDom).getStyle().setDisplay(Display.NONE);
代码示例来源:origin: com.googlecode.gwt-test-utils/gwt-test-utils
private void handleRow(Grid wrapped, Element element) {
// 1. insert
wrapped.insertRow(currentRowIndex);
// 2. handle row style
String styleName = element.getAttribute(STYLE_ATTR);
if (styleName.length() > 0) {
wrapped.getRowFormatter().setStyleName(currentRowIndex, styleName);
}
// 3. handle child cells
handleRowCells(wrapped, element);
}
代码示例来源:origin: gwt-test-utils/gwt-test-utils
private void handleRow(Grid wrapped, Element element) {
// 1. insert
wrapped.insertRow(currentRowIndex);
// 2. handle row style
String styleName = element.getAttribute(STYLE_ATTR);
if (styleName.length() > 0) {
wrapped.getRowFormatter().setStyleName(currentRowIndex, styleName);
}
// 3. handle child cells
handleRowCells(wrapped, element);
}
代码示例来源:origin: de.esoco/gewt
aHeaderTable.removeRow(0);
aHeaderTable.resize(1, rColumns.getElementCount());
aHeaderTable.getRowFormatter()
.setStylePrimaryName(0, GwtTable.CSS.ewtHeader());
代码示例来源:origin: org.jboss.errai/errai-widgets
private void initReset() {
for (int i = 0; i < fieldNames.length; i++) {
Label label = new Label(fieldNames[i]);
label.setStyleName("soa-prop-grid-label");
grid.setWidget(i, 0, label);
grid.setWidget(i, 1, new HTML(""));
String style = (i % 2 == 0) ? "soa-prop-grid-even" : "soa-prop-grid-odd";
grid.getRowFormatter().setStyleName(i, style);
grid.getColumnFormatter().setWidth(0, "20%");
grid.getColumnFormatter().setWidth(1, "80%");
}
}
代码示例来源:origin: fjfd/microscope
/**
* Builds the panel containing customizations for the axes of the graph.
*/
private Grid makeAxesPanel() {
final Grid grid = new Grid(5, 3);
grid.setText(0, 1, "Y");
grid.setText(0, 2, "Y2");
setTextAlignCenter(grid.getRowFormatter().getElement(0));
grid.setText(1, 0, "Label");
grid.setWidget(1, 1, ylabel);
grid.setWidget(1, 2, y2label);
grid.setText(2, 0, "Format");
grid.setWidget(2, 1, yformat);
grid.setWidget(2, 2, y2format);
grid.setText(3, 0, "Range");
grid.setWidget(3, 1, yrange);
grid.setWidget(3, 2, y2range);
grid.setText(4, 0, "Log scale");
grid.setWidget(4, 1, ylog);
grid.setWidget(4, 2, y2log);
setTextAlignCenter(grid.getCellFormatter().getElement(4, 1));
setTextAlignCenter(grid.getCellFormatter().getElement(4, 2));
return grid;
}
代码示例来源:origin: com.extjs/gxt
days.setHTML(0, 6, "<span>" + dn[(6 + firstDOW) % 7] + "</span>");
days.getRowFormatter().getElement(0).setAttribute("role", "row");
for (int row = 0; row < 6; row++) {
if (GXT.isAriaEnabled()) {
grid.getRowFormatter().getElement(row).setAttribute("role", "row");
内容来源于网络,如有侵权,请联系作者删除!