Home | History | Annotate | Download | only in expected

Lines Matching refs:row

24  * A keyboard consists of an array of rows, and a row consists of an array of elements. Each row
25 * may have different number of elements. A element of a keyboard can be specified by a row number
57 final E[] row = rows[rowIndex];
58 mRows[rowIndex] = Arrays.copyOf(row, row.length);
79 * Get the current contents of the specified row.
80 * @param row the row number to get the contents.
81 * @return the array of elements at row number <code>row</code>.
82 * @throws RuntimeException if <code>row</code> is illegal.
84 E[] getRowAt(final int row) {
85 final int rowIndex = row - 1;
87 throw new RuntimeException("Illegal row number: " + row);
93 * Set an array of elements to the specified row.
94 * @param row the row number to set <code>elements</code>.
95 * @param elements the array of elements to set at row number <code>row</code>.
96 * @throws RuntimeException if <code>row</code> is illegal.
98 void setRowAt(final int row, final E[] elements) {
99 final int rowIndex = row - 1;
101 throw new RuntimeException("Illegal row number: " + row);
111 * @param row the row number to set or insert the <code>element</code>.
113 * @param element the element to set or insert at <code>row,column</code>.
114 * @param insert if true, the <code>element</code> is inserted at <code>row,column</code>.
115 * Otherwise the <code>element</code> replace the element at <code>row,column</code>.
116 * @throws RuntimeException if <code>row</code> or <code>column</code> is illegal.
118 void setElementAt(final int row, final int column, final E element, final boolean insert) {
119 final E[] elements = getRowAt(row);
132 // Insert the element at <code>row,column</code>.
134 // Replace the current row with one.
135 setRowAt(row, newElements);
141 setRowAt(row, newElements);