MCPcopy Create free account
hub / github.com/BaseXdb/basex / setContentBorder

Method setContentBorder

basex-core/src/main/java/org/basex/gui/GUI.java:553–563  ·  view source on GitHub ↗

Sets the border of the content area.

()

Source from the content-addressed store, hash-verified

551 * Sets the border of the content area.
552 */
553 private void setContentBorder() {
554 final int n = control.getComponentCount();
555 final int n2 = top.getComponentCount();
556
557 if(n == 0 && n2 == 2) {
558 views.border(0);
559 } else {
560 views.setBorder(new CompoundBorder(BaseXLayout.border(3, 1, 3, 1),
561 BorderFactory.createEtchedBorder(EtchedBorder.LOWERED)));
562 }
563 }
564
565 /**
566 * Refreshes the layout.

Callers 3

GUIMethod · 0.95
updateControlMethod · 0.95
fullscreenMethod · 0.95

Calls 2

borderMethod · 0.95
borderMethod · 0.45

Tested by

no test coverage detected