Package java.awt.peer

Examples of java.awt.peer.MenuItemPeer


     * replaced by <code>setEnabled(boolean)</code>.
     */
    @Deprecated
    public synchronized void enable() {
        enabled = true;
        MenuItemPeer peer = (MenuItemPeer)this.peer;
        if (peer != null) {
            peer.setEnabled(true);
        }
    }
View Full Code Here


     * replaced by <code>setEnabled(boolean)</code>.
     */
    @Deprecated
    public synchronized void disable() {
        enabled = false;
        MenuItemPeer peer = (MenuItemPeer)this.peer;
        if (peer != null) {
            peer.setEnabled(false);
        }
    }
View Full Code Here

     * @see         java.awt.MenuItem#getShortcut
     * @since       JDK1.1
     */
    public void setShortcut(MenuShortcut s) {
        shortcut = s;
        MenuItemPeer peer = (MenuItemPeer)this.peer;
        if (peer != null) {
            peer.setLabel(label);
        }
    }
View Full Code Here

     * with this menu item.
     * @since      JDK1.1
     */
    public void deleteShortcut() {
        shortcut = null;
        MenuItemPeer peer = (MenuItemPeer)this.peer;
        if (peer != null) {
            peer.setLabel(label);
        }
    }
View Full Code Here

     * Used when iterating Menus.
     */
    void deleteShortcut(MenuShortcut s) {
        if (s.equals(shortcut)) {
            shortcut = null;
            MenuItemPeer peer = (MenuItemPeer)this.peer;
            if (peer != null) {
                peer.setLabel(label);
            }
        }
    }
View Full Code Here

     * @see       java.awt.MenuItem#getLabel
     * @since     JDK1.0
     */
    public synchronized void setLabel(String label) {
  this.label = label;
  MenuItemPeer peer = (MenuItemPeer)this.peer;
  if (peer != null) {
      peer.setLabel(label);
  }
    }
View Full Code Here

     * replaced by <code>setEnabled(boolean)</code>.
     */
    @Deprecated
    public synchronized void enable() {
  enabled = true;
  MenuItemPeer peer = (MenuItemPeer)this.peer;
  if (peer != null) {
      peer.enable();
  }
    }
View Full Code Here

     * replaced by <code>setEnabled(boolean)</code>.
     */
    @Deprecated
    public synchronized void disable() {
  enabled = false;
  MenuItemPeer peer = (MenuItemPeer)this.peer;
  if (peer != null) {
      peer.disable();
  }
    }
View Full Code Here

     * @see         java.awt.MenuItem#getShortcut
     * @since       JDK1.1
     */
    public void setShortcut(MenuShortcut s) {
        shortcut = s;
  MenuItemPeer peer = (MenuItemPeer)this.peer;
  if (peer != null) {
      peer.setLabel(label);
  }
    }
View Full Code Here

     * with this menu item.
     * @since      JDK1.1
     */
    public void deleteShortcut() {
        shortcut = null;
  MenuItemPeer peer = (MenuItemPeer)this.peer;
  if (peer != null) {
      peer.setLabel(label);
  }
    }
View Full Code Here

TOP

Related Classes of java.awt.peer.MenuItemPeer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.