Examples of Rows


Examples of org.apache.poi.ss.formula.functions.Rows

        retval[71] = CalendarFieldFunction.HOUR;
        retval[72] = CalendarFieldFunction.MINUTE;
        retval[73] = CalendarFieldFunction.SECOND;
        retval[74] = new Now();

        retval[76] = new Rows();
        retval[77] = new Columns();
        retval[82] = TextFunction.SEARCH;
        retval[ID.OFFSET] = new Offset();
        retval[82] = TextFunction.SEARCH;
View Full Code Here

Examples of org.apache.poi.ss.formula.functions.Rows

        retval[71] = CalendarFieldFunction.HOUR;
        retval[72] = CalendarFieldFunction.MINUTE;
        retval[73] = CalendarFieldFunction.SECOND;
        retval[74] = new Now();

        retval[76] = new Rows();
        retval[77] = new Columns();
        retval[82] = TextFunction.SEARCH;
        retval[ID.OFFSET] = new Offset();
        retval[82] = TextFunction.SEARCH;
View Full Code Here

Examples of org.gwtlib.client.table.Rows

    };
    ColumnLayout layout = new ColumnLayout(columns);
    final Table table = new Table(layout);
    ContentProvider provider = new ContentProvider() {
      public void load(int begin, int end, final int sortId, boolean ascending) {
        table.onSuccess(new Rows(rows, 0, -1, false));
      }
    };
    table.setContentProvider(provider);
    table.setSize(3);
    table.setSize("100%", "100%");
View Full Code Here

Examples of org.gwtlib.client.table.Rows

          default:
            break;
        }
        Row[] srows = new Row[Math.min(end - begin, tmp.length - begin)];
        for(int i = 0; i < srows.length; ++i) srows[i] = tmp[begin + i];
        table.onSuccess(new Rows(srows, begin, sortId, ascending));
      }
    };
    table.setContentProvider(provider);
    table.addTableListener(new TableListenerAdapter() {
      public void onCellClicked(SourcesTableEvents sender, Row row, Column column) {
View Full Code Here

Examples of org.gwtlib.client.table.Rows

    PersonContentProvider(Table table) {
      _table = table;
      _callback = new AsyncCallback<Person[]>() {
        public void onSuccess(Person[] result) {
          Rows rows = transform(result);
          _table.onSuccess(rows);
        }

        public void onFailure(Throwable caught) {
          _table.onFailure(caught);
View Full Code Here

Examples of org.gwtlib.client.table.Rows

    private Rows transform(Person[] persons) {
      Row[] rows = new Row[persons.length];
      for(int i = 0; i < persons.length; ++i) {
        rows[i] = new Row(i, new Object[] { persons[i].getFirst(), persons[i].getLast() });
      }
      return new Rows(rows, 0);
    }
View Full Code Here

Examples of org.gwtlib.client.table.Rows

    _begin = pos;
    update();
  }

  public void refreshRowState() {
    Rows rows = getRows(_begin);
    int r = 1;
    for(int i = 0; i < rows.size(); ++i, ++r) {
      Row row = rows.getRow(i);
      _table.getRowFormatter().setStyleName(r, STYLE_ROW);
      _table.getRowFormatter().addStyleName(r, i % 2 == 0 ? STYLE_ROW_EVEN : STYLE_ROW_ODD);
      if(row.hasState(Row.State.SELECT)) _table.getRowFormatter().addStyleName(r, STYLE_ROW_SELECT);
      for(int j = 0, c = 0; j < _layout.getTotalColumnCount(); ++j) {
        Column column = _layout.getColumn(j);
        if(column.isVisible()) {
          _table.getCellFormatter().removeStyleName(r, c, STYLE_COLUMN_SELECT);
          _table.getCellFormatter().removeStyleName(r, c, STYLE_CELL_SELECT);
          if(column.hasState(Column.State.SELECT)) {
            _table.getCellFormatter().addStyleName(r, c, STYLE_COLUMN_SELECT);
            if(row.hasState(Row.State.SELECT)) _table.getCellFormatter().addStyleName(r, c, STYLE_CELL_SELECT);
          }
          c++;
        }
      }
    }
    int nclear = Math.min(_size - rows.size(), _table.getRowCount() - rows.size() - 1);
    while(nclear-- > 0) {
      for(int j = 0, c = 0; j < _layout.getTotalColumnCount(); ++j) {
        Column column = _layout.getColumn(j);
        if(column.isVisible()) {
          _table.getCellFormatter().removeStyleName(r, c, STYLE_COLUMN_SELECT);
View Full Code Here

Examples of org.gwtlib.client.table.Rows

    int sortColumn = _layout.getSortColumn();
    if(sortColumn >= 0) {
      sortId = _layout.getColumn(sortColumn).getId();
      ascending = _layout.getColumn(sortColumn).getSortDirection() == Column.Sort.ASCENDING;
    }
    Rows rows = _cache.getRows(begin, end, sortId, ascending);
    if(rows.size() == end - begin) {
      onSuccess(rows);
    } else {
      fireLoadEvent();
      _provider.load(begin, end, sortId, ascending);
    }
View Full Code Here

Examples of org.gwtlib.client.table.Rows

      }
    }
  }

  protected void render(int pos) {
    Rows rows = getRows(pos);
    GWT.log("Rendering " + rows.size() + " rows", null);
    int r = 1;
    for(int i = 0; i < rows.size(); ++i, ++r) {
      final Row row = rows.getRow(i);
      for(int j = 0, c = 0; j < _layout.getTotalColumnCount(); ++j) {
        final Column column = _layout.getColumn(j);
        if(column.isVisible()) {
          final Widget widget = column.getRenderer().render(row, column, row.getValue(j));
          if(widget instanceof HasClickHandlers) {
View Full Code Here

Examples of org.gwtlib.client.table.Rows

    int sortColumn = _layout.getSortColumn();
    if(sortColumn >= 0) {
      sortId = _layout.getColumn(sortColumn).getId();
      ascending = _layout.getColumn(sortColumn).getSortDirection() == Column.Sort.ASCENDING;
    }
    Rows rows = _cache.getRows(begin, begin + _size, sortId, ascending);
    return rows;
  }
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.