(boolean value)
| 272 | } |
| 273 | |
| 274 | public void allowTopTextInput(boolean value) { |
| 275 | if (value) { |
| 276 | swapTopField(this.topTextField); |
| 277 | Platform.runLater(() -> { |
| 278 | this.topTextField.requestFocus(); |
| 279 | this.topTextField.selectAll(); |
| 280 | this.topTextField.applyCss(); |
| 281 | }); |
| 282 | } |
| 283 | else { |
| 284 | swapTopField(this.topLabel); |
| 285 | if (isSelected()) { |
| 286 | setLabelSelected(this.topLabel, true); |
| 287 | } |
| 288 | } |
| 289 | this.topTextField.setEditable(value); |
| 290 | this.topTextField.setDisable(!value); |
| 291 | } |
| 292 | |
| 293 | public void allowCenterFieldTextInput(Label centerLabel, boolean value) { |
| 294 | int rowIndex = this.centerLabels.indexOf(centerLabel); |
no test coverage detected