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

Method bind

src/dorkbox/systemTray/MenuItem.java:192–204  ·  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 MenuItemPeer peer, Menu parent, ImageResizeUtil imageResizeUtil)

Source from the content-addressed store, hash-verified

190 * @param imageResizeUtil the utility used to resize images. This can be Tray specific because of cache requirements
191 */
192 public
193 void bind(final MenuItemPeer peer, Menu parent, ImageResizeUtil imageResizeUtil) {
194 super.bind(peer, parent, imageResizeUtil);
195
196 realizeImageFile();
197
198 peer.setImage(this);
199 peer.setEnabled(this);
200 peer.setText(this);
201 peer.setCallback(this);
202 peer.setShortcut(this);
203 peer.setTooltip(this);
204 }
205
206 protected
207 void setImageFromTray(final File imageFile) {

Callers

nothing calls this directly

Calls 7

realizeImageFileMethod · 0.95
setImageMethod · 0.65
setEnabledMethod · 0.65
setTextMethod · 0.65
setCallbackMethod · 0.65
setShortcutMethod · 0.65
setTooltipMethod · 0.65

Tested by

no test coverage detected