Пример #1
0
 /**
  * Sets the height of each cell. If rowHeight is less than or equal to 0 this will throw an
  * IllegalArgumentException.
  *
  * @param rowHeight the height of each cell, in pixels
  */
 public void setRowHeight(int rowHeight) {
   if (rowHeight <= 0)
     throw new IllegalArgumentException(
         "FixedHeightLayoutCache only supports row heights greater than 0");
   if (getRowHeight() != rowHeight) {
     super.setRowHeight(rowHeight);
     visibleNodesChanged();
   }
 }
 public void setRowHeight(final int rowHeight) {
   super.setRowHeight(rowHeight);
   if (getStateRoot() != null) {
     getStateRoot().invalidateSubtree();
   }
 }