Lines Matching refs:popup

41  * <code>TrayIcon</code> can have a tooltip (text), an image, a popup
49 * displays the specified popup menu. When the mouse hovers
61 * will assign different gestures to showing a popup menu and
90 private PopupMenu popup;
203 * tooltip and popup menu.
208 * @param popup the menu to be used for the tray icon's popup
209 * menu; if the value is <code>null</code> no popup menu is shown
226 public TrayIcon(Image image, String tooltip, PopupMenu popup) {
228 setPopupMenu(popup);
277 * Sets the popup menu for this <code>TrayIcon</code>. If
278 * <code>popup</code> is <code>null</code>, no popup menu will be
281 * <p>Note that this <code>popup</code> must not be added to any
283 * it to some parent, the <code>popup</code> may be removed from
286 * <p>The {@code popup} can be set on one {@code TrayIcon} only.
287 * Setting the same popup on multiple {@code TrayIcon}s will cause
291 * showing the user-specified popup menu component when the user
296 * @throws IllegalArgumentException if the {@code popup} is already
298 * @param popup a <code>PopupMenu</code> or <code>null</code> to
299 * remove any popup menu
302 public void setPopupMenu(PopupMenu popup) {
303 if (popup == this.popup) {
307 if (popup != null) {
308 if (popup.isTrayIconPopup) {
311 popup.isTrayIconPopup = true;
313 if (this.popup != null) {
314 this.popup.isTrayIconPopup = false;
316 this.popup = popup;
321 * Returns the popup menu associated with this <code>TrayIcon</code>.
323 * @return the popup menu or <code>null</code> if none exists
327 return popup;
632 * Displays a popup message near the tray icon. The message will