/// <summary> /// Delete any <code>MenuShortcut</code> object associated /// with this menu item. /// @since JDK1.1 /// </summary> public virtual void DeleteShortcut() { Shortcut_Renamed = null; MenuItemPeer peer = (MenuItemPeer)this.Peer_Renamed; if (peer != null) { peer.Label = Label_Renamed; } }
/* * Delete a matching MenuShortcut associated with this MenuItem. * Used when iterating Menus. */ internal virtual void DeleteShortcut(MenuShortcut s) { if (s.Equals(Shortcut_Renamed)) { Shortcut_Renamed = null; MenuItemPeer peer = (MenuItemPeer)this.Peer_Renamed; if (peer != null) { peer.Label = Label_Renamed; } } }
public virtual void Disable() { lock (this) { Enabled_Renamed = false; MenuItemPeer peer = (MenuItemPeer)this.Peer_Renamed; if (peer != null) { peer.Enabled = false; } } }