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

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


 
  @Override
  public void addStyleDependentName(String styleSuffix) {
    final RowFormatter rowFormatter = table.getRowFormatter();
        final String newStyleName = rowFormatter.getStylePrimaryName(row)+"-"+styleSuffix;
        rowFormatter.addStyleName(row, newStyleName);
  }
  @Override
  public void removeStyleDependentName(String styleSuffix) {
    table.getRowFormatter().removeStyleName(row, table.getRowFormatter().getStylePrimaryName(row)+"-"+styleSuffix);
  }
View Full Code Here


        transactionsGrid.setText(row, 1, dateFormat.format(transaction.timestamp));
        transactionsGrid.setText(row, 2, formatAccountNum(transaction.fromAccount, user));
        transactionsGrid.setText(row, 3, formatAccountNum(transaction.toAccount, user));
        transactionsGrid.setText(row, 4, (isOutgoing ? "- " : "+ ") + formatAmount(transaction.amount));
        transactionsGrid.setText(row, 5, transaction.comment);
        rowFormatter.addStyleName(row, isOutgoing ? "transactionsTableOutgoingTransactionRow" : "transactionsTableIncomingTransactionRow");
        row++;
      }
    }
    CellFormatter cellFormatter = transactionsGrid.getCellFormatter();
    for (int row = 0; row < transactionsGrid.getRowCount(); row++) {
View Full Code Here

    final String sortableColumnStyle = this.getSortableColumnStyle();
    final String sortedColumnStyle = this.getSortedColumnStyle();

    for (int row = gridRowCount; row < requiredGridCount; row++) {
      final String style = ((row & 1) == 1) ? evenRowStyle : oddRowStyle;
      rowFormatter.addStyleName(row, style);

      final CellFormatter cellFormatter = table.getCellFormatter();
      final int sortedColumn = this.getSortedColumn();

      for (int column = 0; column < columnCount; column++) {
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.