Package com.google.gwt.user.client.ui.HTMLTable

Examples of com.google.gwt.user.client.ui.HTMLTable.CellFormatter.addStyleName()


    final CellFormatter fmt = table.getCellFormatter();
    fmt.addStyleName(0, 0, Gerrit.RESOURCES.css().topmost());
    fmt.addStyleName(0, 1, Gerrit.RESOURCES.css().topmost());
    fmt.addStyleName(R_CHANGE_ID, 1, Gerrit.RESOURCES.css().changeid());
    fmt.addStyleName(R_CNT - 2, 0, Gerrit.RESOURCES.css().bottomheader());

    initWidget(table);
  }

  private void initRow(final int row, final String name) {
View Full Code Here


      }
    }
    CellFormatter cellFormatter = transactionsGrid.getCellFormatter();
    for (int row = 0; row < transactionsGrid.getRowCount(); row++) {
      for (int cell = 0; cell < transactionsGrid.getCellCount(row); cell++) {
        cellFormatter.addStyleName(row, cell, "transactionsTableCell");
      }
    }
  }

  @UiField
View Full Code Here

    final Grid table = this.getGrid();
    final CellFormatter cellFormatter = table.getCellFormatter();
    final int rows = table.getRowCount();
    for (int row = 0; row < rows; row++) {
      cellFormatter.addStyleName(row, column, style);
    }
  }

  protected void removeColumnStyle(final int column, final String style) {
    this.checkColumn("parameter:column", column);
View Full Code Here

      for (int column = 0; column < columnCount; column++) {
        if (this.isColumnSortable(column)) {
          cellFormatter.setStyleName(row, column, sortableColumnStyle);

          if (sortedColumn == column) {
            cellFormatter.addStyleName(row, column, sortedColumnStyle);
          }
        }
      }
    }
View Full Code Here

        final int year = date.getYear() + WidgetConstants.CALENDAR_YEAR_BIAS;
        final int month = date.getMonth();
        final int dayOfMonth = date.getDate();

        cellFormatter.setStyleName(row, column, dayStyle);
        cellFormatter.addStyleName(row, column, monthStyle);

        final Widget widget = this.createDayTile(year, month, dayOfMonth);
        grid.setWidget(row, column, widget, year, month, dayOfMonth);

        date.setDate(dayOfMonth + 1);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.