MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / disconnectFromAll

Method disconnectFromAll

src/main/java/fieldbox/boxes/Box.java:155–166  ·  view source on GitHub ↗

Disconnect this box from everything.

()

Source from the content-addressed store, hash-verified

153
154 /**
155 * Disconnect this box from everything.
156 */
157 public Box disconnectFromAll() {
158
159 for (Box b : new ArrayList<Box>(children))
160 disconnect(b);
161
162 for (Box b : new ArrayList<>(parents))
163 b.disconnect(this);
164
165 all.clear();
166
167 return this;
168 }
169

Callers 9

DefaultMenusMethod · 0.80
checkForDeletionMethod · 0.80
DeleteMethod · 0.80
checkForDeletionMethod · 0.80
readDocumentMethod · 0.80
killRemoteEditorMethod · 0.80
updateMethod · 0.80
checkForDeletionMethod · 0.80
makeCloseBoxMethod · 0.80

Calls 2

disconnectMethod · 0.95
clearMethod · 0.45

Tested by

no test coverage detected