Lines Matching refs:rows

34  * into three rows and two columns:
61 * alt="Shows 6 buttons in rows of 2. Row 1 shows buttons 1 then 2.
66 * alt="Shows 6 buttons in rows of 2. Row 1 shows buttons 2 then 1.
78 * When both the number of rows and the number of columns have
82 * columns is determined from the specified number of rows
84 * example, if three rows and two columns have been specified
86 * be displayed as three rows of three columns. Specifying
88 * number of rows is set to zero.
111 * between rows. They can be changed at any time.
120 * This is the number of rows specified for the grid. The number
121 * of rows can be changed at any time.
130 int rows;
154 * Creates a grid layout with the specified number of rows and
157 * One, but not both, of <code>rows</code> and <code>cols</code> can
160 * @param rows the rows, with the value zero meaning
161 * any number of rows.
165 public GridLayout(int rows, int cols) {
166 this(rows, cols, 0, 0);
170 * Creates a grid layout with the specified number of rows and
176 * the rows.
178 * One, but not both, of <code>rows</code> and <code>cols</code> can
183 * @param rows the rows, with the value zero meaning
184 * any number of rows
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");
197 this.rows = rows;
204 * Gets the number of rows in this layout.
205 * @return the number of rows in this layout
209 return rows;
213 * Sets the number of rows in this layout to the specified value.
214 * @param rows the number of rows in this layout
216 * <code>rows</code> and <code>cols</code> is set to zero
219 public void setRows(int rows) {
220 if ((rows == 0) && (this.cols == 0)) {
221 throw new IllegalArgumentException("rows and cols cannot both be zero");
223 this.rows = rows;
238 * if the number of rows specified by a constructor or by
241 * number of components and the number of rows specified.
244 * <code>rows</code> and <code>cols</code> is set to zero
248 if ((cols == 0) && (this.rows == 0)) {
249 throw new IllegalArgumentException("rows and cols cannot both be zero");
316 * rows, plus the vertical padding times the number of rows minus one,
329 int nrows = rows;
364 * of all of the components in the container times the number of rows,
365 * plus the vertical padding times the number of rows minus one, plus
378 int nrows = rows;
412 * equal-sized portions according to the number of rows and columns
425 int nrows = rows;
479 ",rows=" + rows + ",cols=" + cols + "]";