MCPcopy Create free account
hub / github.com/dorkbox/SystemTray / setEnabled

Method setEnabled

src/dorkbox/systemTray/MenuItem.java:245–252  ·  view source on GitHub ↗

Enables, or disables the entry.

(final boolean enabled)

Source from the content-addressed store, hash-verified

243 * Enables, or disables the entry.
244 */
245 public
246 void setEnabled(final boolean enabled) {
247 this.enabled = enabled;
248
249 if (peer != null) {
250 ((MenuItemPeer) peer).setEnabled(this);
251 }
252 }
253
254 /**
255 * @return the text label that the menu entry has assigned

Callers 4

TestTrayMethod · 0.95
TestTraySwtMethod · 0.95
doJavaFxStuffMethod · 0.95
MenuItemMethod · 0.95

Calls 1

setEnabledMethod · 0.65

Tested by 3

TestTrayMethod · 0.76
TestTraySwtMethod · 0.76
doJavaFxStuffMethod · 0.76