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

Examples of com.google.gwt.user.client.ui.HTMLTable.RowFormatter


    table.setWidth(cm.getTotalWidth() + "px");

    List<HeaderGroupConfig> configs = cm.getHeaderGroups();

    FlexCellFormatter cf = table.getFlexCellFormatter();
    RowFormatter rf = table.getRowFormatter();

    rows = 0;
    for (HeaderGroupConfig config : configs) {
      rows = Math.max(rows, config.getRow() + 1);
    }
    rows += 1;

    for (int i = 0; i < rows; i++) {
      rf.setStyleName(i, "x-grid3-hd-row");
    }

    int cols = cm.getColumnCount();

    for (HeaderGroupConfig config : cm.getHeaderGroups()) {
View Full Code Here


    table.setWidth(cm.getTotalWidth() + "px");

    List<HeaderGroupConfig> configs = cm.getHeaderGroups();

    FlexCellFormatter cf = table.getFlexCellFormatter();
    RowFormatter rf = table.getRowFormatter();

    rows = 0;
    for (HeaderGroupConfig config : configs) {
      rows = Math.max(rows, config.getRow() + 1);
    }
    rows += 1;

    for (int i = 0; i < rows; i++) {
      rf.setStyleName(i, "x-grid3-hd-row");
      rf.getElement(i).setAttribute("role", "presentation");
    }

    int cols = cm.getColumnCount();

    for (HeaderGroupConfig config : cm.getHeaderGroups()) {
View Full Code Here

    table.setWidth(cm.getTotalWidth() + "px");

    List<HeaderGroupConfig> configs = cm.getHeaderGroups();

    FlexCellFormatter cf = table.getFlexCellFormatter();
    RowFormatter rf = table.getRowFormatter();

    rows = 0;
    for (HeaderGroupConfig config : configs) {
      rows = Math.max(rows, config.getRow() + 1);
    }
    rows += 1;

    for (int i = 0; i < rows; i++) {
      rf.setStyleName(i, "x-grid3-hd-row");
      rf.getElement(i).setAttribute("role", "presentation");
    }

    int cols = cm.getColumnCount();

    for (HeaderGroupConfig config : cm.getHeaderGroups()) {
View Full Code Here

    DomHelper.insertHtml("afterBegin", tbody, renderHiddenHeaders(getColumnWidths()));

    List<HeaderGroupConfig> configs = cm.getHeaderGroups();

    FlexCellFormatter cf = table.getFlexCellFormatter();
    RowFormatter rf = table.getRowFormatter();

    rows = 0;
    for (HeaderGroupConfig config : configs) {
      rows = Math.max(rows, config.getRow() + 1);
    }
    rows += 1;

    for (int i = 0; i < rows; i++) {
      rf.setStyleName(i, "x-grid3-hd-row");
      rf.getElement(i).setAttribute("role", "presentation");
    }

    int cols = cm.getColumnCount();

    String cellClass = "x-grid3-header" + " " + "x-grid3-hd";
View Full Code Here

    // update grid to match number of rows...
    table.resizeRows(requiredGridCount);

    // if grid had a few rows added add even/odd styles to them...

    final RowFormatter rowFormatter = table.getRowFormatter();
    final String evenRowStyle = this.getEvenRowStyle();
    final String oddRowStyle = this.getOddRowStyle();
    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

                dialog.addOkButtonHandler(new ClickHandler() {
                    @Override
                    public void onClick(ClickEvent event) {
                        try {
                            server.deleteFile(toFileName(url));
                            RowFormatter formatter = table.getRowFormatter();
                            int rowNumber = 0;
                            for (; rowNumber < table.getRowCount(); rowNumber++) {
                                if (formatter.getElement(rowNumber).equals(rowElem)) {
                                    break;
                                }
                            }
                            table.removeRow(rowNumber);
                        } catch (FormBuilderException e) {
View Full Code Here

    table.setWidth(cm.getTotalWidth() + "");

    List<HeaderGroupConfig> configs = cm.getHeaderGroups();

    FlexCellFormatter cf = table.getFlexCellFormatter();
    RowFormatter rf = table.getRowFormatter();

    rows = 0;
    for (HeaderGroupConfig config : configs) {
      rows = Math.max(rows, config.getRow() + 1);
    }
    rows += 1;

    for (int i = 0; i < rows; i++) {
      rf.setStyleName(i, "x-grid3-hd-row");
    }

    int cols = cm.getColumnCount();

    for (HeaderGroupConfig config : cm.getHeaderGroups()) {
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.HTMLTable.RowFormatter

Copyright © 2018 www.massapicom. 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.