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

Method bind

src/dorkbox/systemTray/Checkbox.java:84–93  ·  view source on GitHub ↗

@param peer the platform specific implementation for all actions for this type @param parent the parent of this menu, null if the parent is the system tray @param imageResizeUtil the utility used to resize images. This can be Tray specific because of cache requirements

(final CheckboxPeer peer, final Menu parent, ImageResizeUtil imageResizeUtil)

Source from the content-addressed store, hash-verified

82 * @param imageResizeUtil the utility used to resize images. This can be Tray specific because of cache requirements
83 */
84 public
85 void bind(final CheckboxPeer peer, final Menu parent, ImageResizeUtil imageResizeUtil) {
86 super.bind(peer, parent, imageResizeUtil);
87
88 peer.setEnabled(this);
89 peer.setText(this);
90 peer.setCallback(this);
91 peer.setShortcut(this);
92 peer.setChecked(this);
93 }
94
95 /**
96 * @return true if this checkbox is selected, false if not. A checkbox's state is set BEFORE the callback is triggered.

Callers

nothing calls this directly

Calls 5

setEnabledMethod · 0.65
setTextMethod · 0.65
setCallbackMethod · 0.65
setShortcutMethod · 0.65
setCheckedMethod · 0.65

Tested by

no test coverage detected