MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / setOpen

Method setOpen

src/main/java/org/htmlunit/html/HtmlDialog.java:82–90  ·  view source on GitHub ↗

Sets the open state. @param newValue the new value

(final boolean newValue)

Source from the content-addressed store, hash-verified

80 * @param newValue the new value
81 */
82 public void setOpen(final boolean newValue) {
83 if (newValue) {
84 setAttribute("open", "");
85 }
86 else {
87 removeAttribute("open");
88 modal_ = false;
89 }
90 }
91
92 /**
93 * Displays the dialog modelessly.

Callers 3

showMethod · 0.95
showModalMethod · 0.95
closeMethod · 0.95

Calls 2

setAttributeMethod · 0.45
removeAttributeMethod · 0.45

Tested by

no test coverage detected