(Node labelOrField, int rowIndex)
| 237 | } |
| 238 | |
| 239 | private void swapCenterField(Node labelOrField, int rowIndex) { |
| 240 | GridPane centerGridPane = getCenter(); |
| 241 | if (centerGridPane != null) { |
| 242 | try { |
| 243 | centerGridPane.getChildren().set(rowIndex, labelOrField); |
| 244 | GridPane.setRowIndex(labelOrField, rowIndex); |
| 245 | } |
| 246 | catch (IndexOutOfBoundsException ioobe) { |
| 247 | logger.debug("Swapping center field failed. IndexOutOfBoundsException: " + ioobe.getMessage()); |
| 248 | } |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | public void setTopText(String text) { |
| 253 | if (this.topTextField == null || this.topLabel == null) |
no test coverage detected