MCPcopy Create free account
hub / github.com/HumbleUI/JWM / setLayer

Method setLayer

shared/java/Window.java:56–69  ·  view source on GitHub ↗
(@Nullable Layer layer)

Source from the content-addressed store, hash-verified

54 }
55
56 @NotNull @Contract("-> this")
57 public Window setLayer(@Nullable Layer layer) {
58 assert _onUIThread() : "Should be run on UI thread";
59 if (_layer != null) {
60 _layer.close();
61 _layer = null;
62 }
63 if (layer != null) {
64 layer.attach(this);
65 _layer = layer;
66 accept(EventWindowScreenChange.INSTANCE);
67 }
68 return this;
69 }
70
71 /**
72 * <p>Enables complex text input on this window.</p>

Callers 4

closeMethod · 0.95
EventHandlerMethod · 0.45
changeLayerMethod · 0.45
ExampleMethod · 0.45

Calls 4

_onUIThreadMethod · 0.95
acceptMethod · 0.95
closeMethod · 0.65
attachMethod · 0.65

Tested by

no test coverage detected