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

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


   {
      if (selectedIndex_ != index)
      {
         CellFormatter cf = grid_.getCellFormatter() ;
         if (selectedIndex_ >= 0)
            cf.removeStyleName(selectedIndex_, 0, styles_.selected()) ;
        
         selectedIndex_ = index ;
        
         if (index >= 0)
         {
View Full Code Here


        .commentHolder(), true);
  }

  private void styleLastCommentCell(final int row, final int col) {
    final CellFormatter fmt = table.getCellFormatter();
    fmt.removeStyleName(row - 1, col, //
        Gerrit.RESOURCES.css().commentPanelLast());
    fmt.setStyleName(row, col, Gerrit.RESOURCES.css().commentHolder());
    fmt.addStyleName(row, col, Gerrit.RESOURCES.css().commentPanelLast());
  }
View Full Code Here

   * @param column the column that lost mouse over.
   */
  private void mouseOut(int row, int column) {
    CellFormatter formatter = grid.getCellFormatter();
    // Remove highlighting from cell.
    formatter.removeStyleName(row, column, "tty-GridCellHighlighted");

    // Remove column highlighting.
    for (int i = 1; i < grid.getRowCount(); i++) {
      formatter.removeStyleName(i, column, "tty-GridColumnHighlighted");
    }
View Full Code Here

    // Remove highlighting from cell.
    formatter.removeStyleName(row, column, "tty-GridCellHighlighted");

    // Remove column highlighting.
    for (int i = 1; i < grid.getRowCount(); i++) {
      formatter.removeStyleName(i, column, "tty-GridColumnHighlighted");
    }

    // Remove row highlighting.
    for (int j = 1; j < grid.getColumnCount(); j++) {
      formatter.removeStyleName(row, j, "tty-GridRowHighlighted");
View Full Code Here

      formatter.removeStyleName(i, column, "tty-GridColumnHighlighted");
    }

    // Remove row highlighting.
    for (int j = 1; j < grid.getColumnCount(); j++) {
      formatter.removeStyleName(row, j, "tty-GridRowHighlighted");
    }
  }

  /**
   * Handles a mouse over event by highlighting the moused over cell and adding style to the
View Full Code Here

    }

    for (final ApprovalType type : approvalTypes) {
      final PatchSetApproval ca = approvals.get(type.getCategory().getId());

      fmt.removeStyleName(row, col, Gerrit.RESOURCES.css().negscore());
      fmt.removeStyleName(row, col, Gerrit.RESOURCES.css().posscore());
      fmt.addStyleName(row, col, Gerrit.RESOURCES.css().singleLine());

      if (ca == null || ca.getValue() == 0) {
        table.clearCell(row, col);
View Full Code Here

    for (final ApprovalType type : approvalTypes) {
      final PatchSetApproval ca = approvals.get(type.getCategory().getId());

      fmt.removeStyleName(row, col, Gerrit.RESOURCES.css().negscore());
      fmt.removeStyleName(row, col, Gerrit.RESOURCES.css().posscore());
      fmt.addStyleName(row, col, Gerrit.RESOURCES.css().singleLine());

      if (ca == null || ca.getValue() == 0) {
        table.clearCell(row, col);
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.removeStyleName(row, column, style);
    }
  }

  /**
   * Rows of value objects one for each row of the table.
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.