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

Method swapCenterField

src/ch/hsr/ogv/view/PaneBox.java:239–250  ·  view source on GitHub ↗
(Node labelOrField, int rowIndex)

Source from the content-addressed store, hash-verified

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)

Callers 1

Calls 1

getCenterMethod · 0.95

Tested by

no test coverage detected