示例#1
0
        /// <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;
            }
        }
示例#2
0
 /*
  * 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;
         }
     }
 }
示例#3
0
 public virtual void Disable()
 {
     lock (this)
     {
         Enabled_Renamed = false;
         MenuItemPeer peer = (MenuItemPeer)this.Peer_Renamed;
         if (peer != null)
         {
             peer.Enabled = false;
         }
     }
 }