MCPcopy Create free account
hub / github.com/Nurtak/ObjectGraphVisualization / allowTopTextInput

Method allowTopTextInput

src/ch/hsr/ogv/view/PaneBox.java:274–291  ·  view source on GitHub ↗
(boolean value)

Source from the content-addressed store, hash-verified

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);

Callers 5

handleCreateNewClassMethod · 0.95
handleCreateNewObjectMethod · 0.95
changedMethod · 0.80
selectOnMouseClickedMethod · 0.80

Calls 4

swapTopFieldMethod · 0.95
isSelectedMethod · 0.95
setLabelSelectedMethod · 0.95
requestFocusMethod · 0.65

Tested by

no test coverage detected