public void highlightRow(String rowKey, String style){ if(rowMap.containsKey(rowKey)){ this.getRowFormatter().setStyleName(rowMap.get(rowKey).intValue(), style); } }
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); }
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); }
rf.setStyleName(i, "x-grid3-hd-row"); rf.getElement(i).setAttribute("role", "presentation");
rRowFormatter.setStyleName(nRow, CSS.ewtTableRow());
grid.getRowFormatter().setStyleName(thisRow, HierarchicalGrid.SUBGRID_ROW_STYLE);
private void build() { // Add header row. table.setText(0, 0, "Cookie"); table.setText(0, 1, "Value"); table.setText(0, 2, "-"); table.getRowFormatter().setStyleName(0, Utils.style() + "-cookiesHeader"); // Add footer row. table.setWidget(1, 0, new CommandLink("Add a Cookie", new Command() { //@Override public void execute() { showAdd(); } }, Utils.style() + "-link")); ((FlexTable.FlexCellFormatter) table.getCellFormatter()).setColSpan(1, 0, 3); for (String cookie : model.cookieNames()) { added(cookie, model.getCookie(cookie)); } }
public void setRowStyleName(String name) { getRowFormatter().setStyleName(row, name); }
private void build() { table.setText(0, 0, "Module"); table.setText(0, 1, "Time"); table.setText(0, 2, "Exception"); table.getRowFormatter().setStyleName(0, Utils.style() + "-errorsHeader"); for (int i = 0; i < model.getExceptionEventCount(); i++) { add(i, model.getExceptionEvent(i)); } }
public DebugPanelRawLogWidget() { setText(0, 0, "Module"); setText(0, 1, "Sub System"); setText(0, 2, "Group Key"); setText(0, 3, "Millis"); setText(0, 4, "Extra Parameters"); setStyleName(Utils.style() + "-log"); getRowFormatter().setStyleName(0, Utils.style() + "-logHeader"); }
/*************************************** * Sets the table styles of an empty row. * * @param nRow The index of the row to set the style of */ private void setEmptyRowStyle(int nRow) { RowFormatter rRowFormatter = aDataTable.getRowFormatter(); rRowFormatter.setStyleName(nRow, CSS.ewtTableRow()); rRowFormatter.addStyleName(nRow, CSS.ewtEmpty()); }
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%"); } }