Lines Matching defs:cols
142 int cols;
157 * One, but not both, of <code>rows</code> and <code>cols</code> can
162 * @param cols the columns, with the value zero meaning
165 public GridLayout(int rows, int cols) {
166 this(rows, cols, 0, 0);
178 * One, but not both, of <code>rows</code> and <code>cols</code> can
185 * @param cols the columns, with the value zero meaning
190 * <code>rows</code> and <code>cols</code> is
193 public GridLayout(int rows, int cols, int hgap, int vgap) {
194 if ((rows == 0) && (cols == 0)) {
195 throw new IllegalArgumentException("rows and cols cannot both be zero");
198 this.cols = cols;
216 * <code>rows</code> and <code>cols</code> is set to zero
220 if ((rows == 0) && (this.cols == 0)) {
221 throw new IllegalArgumentException("rows and cols cannot both be zero");
232 return cols;
242 * @param cols the number of columns in this layout
244 * <code>rows</code> and <code>cols</code> is set to zero
247 public void setColumns(int cols) {
248 if ((cols == 0) && (this.rows == 0)) {
249 throw new IllegalArgumentException("rows and cols cannot both be zero");
251 this.cols = cols;
330 int ncols = cols;
379 int ncols = cols;
426 int ncols = cols;
479 ",rows=" + rows + ",cols=" + cols + "]";