Package com.tll.client.listing

Examples of com.tll.client.listing.Column


   * @param colProp
   * @return the column index
   */
  private int resolveColumnIndex(String colProp) {
    for(int i = 0; i < columns.length; i++) {
      final Column c = columns[i];
      if(c.getPropertyName() != null && c.getPropertyName().equals(colProp)) {
        return i;
      }
    }
    throw new IllegalArgumentException("Unresolveable column property: " + colProp);
  }
View Full Code Here


    resize(1, numCols);
    getRowFormatter().addStyleName(0, Styles.HEAD);

    for(int c = 0; c < columns.length; c++) {
      final Column col = columns[c];
      final boolean isRowCntCol = Column.ROW_COUNT_COLUMN == col;
      if(isRowCntCol) {
        getCellFormatter().addStyleName(0, c, Styles.COUNT_COL);
        //getColumnFormatter().addStyleName(c, Styles.COUNT_COL);
      }
      if(config.isSortable()) {
        if(isRowCntCol) {
          setWidget(0, c, new Label("#"));
        }
        else if(col.getPropertyName() != null) {
          assert sortlinks != null;
          final SortLink sl = new SortLink(col);
          sortlinks[c] = sl;
          setWidget(0, c, sl);
        }
      }
      else {
        setWidget(0, c, new Label(col.getName()));
      }
    }
  }
View Full Code Here

   * @param colProp
   * @return the column index
   */
  private int resolveColumnIndex(String colProp) {
    for(int i = 0; i < columns.length; i++) {
      final Column c = columns[i];
      if(c.getPropertyName() != null && c.getPropertyName().equals(colProp)) {
        return i;
      }
    }
    throw new IllegalArgumentException("Unresolveable column property: " + colProp);
  }
View Full Code Here

    resize(1, numCols);
    getRowFormatter().addStyleName(0, Styles.HEAD);

    for(int c = 0; c < columns.length; c++) {
      final Column col = columns[c];
      final boolean isRowCntCol = Column.ROW_COUNT_COLUMN == col;
      if(isRowCntCol) {
        getCellFormatter().addStyleName(0, c, Styles.COUNT_COL);
        //getColumnFormatter().addStyleName(c, Styles.COUNT_COL);
      }
      if(config.isSortable()) {
        if(isRowCntCol) {
          setWidget(0, c, new Label("#"));
        }
        else if(col.getPropertyName() != null) {
          assert sortlinks != null;
          final SortLink sl = new SortLink(col);
          sortlinks[c] = sl;
          setWidget(0, c, sl);
        }
      }
      else {
        setWidget(0, c, new Label(col.getName()));
      }
    }
  }
View Full Code Here

    resize(1, numCols);
    getRowFormatter().addStyleName(0, ListingStyles.css().head());

    for(int c = 0; c < clmns.size(); c++) {
      final Column col = clmns.get(c);
      final boolean isRowCntCol = Column.ROW_COUNT_COLUMN == col;
      if(isRowCntCol) {
        getCellFormatter().addStyleName(0, c, ListingStyles.css().countCol());
        // getColumnFormatter().addStyleName(c, Styles.COUNT_COL);
      }
      if(col.getStyle() != null) {
        getColumnFormatter().addStyleName(c, col.getStyle());
        getCellFormatter().addStyleName(0, c, col.getStyle());
      }
      if(col.isSortable()) {
        if(isRowCntCol) {
          setWidget(0, c, new Label("#"));
        }
        else if(col.getPropertyName() != null) {
          final SortLink sl = new SortLink(col);
          sortlinks[c] = sl;
          setWidget(0, c, sl);
        }
      }
      else {
        setWidget(0, c, new Label(col.getName()));
      }
    }
  }
View Full Code Here

   * @param colProp
   * @return the column index
   */
  private int resolveColumnIndex(String colProp) {
    for(int i = 0; i < columns.size(); i++) {
      final Column c = columns.get(i);
      if(c.getPropertyName() != null && c.getPropertyName().equals(colProp)) {
        return i;
      }
    }
    throw new IllegalArgumentException("Unresolveable column property: " + colProp);
  }
View Full Code Here

    if(rowIndex == 0) {
      return; // header row
    }

    for(int c = 0; c < columns.size(); c++) {
      Column col = columns.get(c);
      if(col.getStyle() != null) {
        getColumnFormatter().addStyleName(c, col.getStyle());
        getCellFormatter().addStyleName(rowIndex, c, col.getStyle());
      }
      if(Column.ROW_COUNT_COLUMN == col) {
        getCellFormatter().addStyleName(rowIndex, c, ListingStyles.css().countCol());
        if(rowNum > -1) {
          setText(rowIndex, c, Integer.toString(rowNum));
View Full Code Here

TOP

Related Classes of com.tll.client.listing.Column

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.