java.awt.peer.MenuItemPeer Java Examples
The following examples show how to use
java.awt.peer.MenuItemPeer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MenuItem.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Delete any <code>MenuShortcut</code> object associated * with this menu item. * @since JDK1.1 */ public void deleteShortcut() { shortcut = null; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setLabel(label); } }
Example #2
Source File: MenuItem.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * @deprecated As of JDK version 1.1, * replaced by <code>setEnabled(boolean)</code>. */ @Deprecated public synchronized void enable() { enabled = true; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setEnabled(true); } }
Example #3
Source File: MenuItem.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Sets the label for this menu item to the specified label. * @param label the new label, or <code>null</code> for no label. * @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); } }
Example #4
Source File: MenuItem.java From Java8CN with Apache License 2.0 | 5 votes |
/** * @deprecated As of JDK version 1.1, * replaced by <code>setEnabled(boolean)</code>. */ @Deprecated public synchronized void disable() { enabled = false; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setEnabled(false); } }
Example #5
Source File: MenuItem.java From Java8CN with Apache License 2.0 | 5 votes |
/** * Delete any <code>MenuShortcut</code> object associated * with this menu item. * @since JDK1.1 */ public void deleteShortcut() { shortcut = null; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setLabel(label); } }
Example #6
Source File: MenuItem.java From Java8CN with Apache License 2.0 | 5 votes |
void deleteShortcut(MenuShortcut s) { if (s.equals(shortcut)) { shortcut = null; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setLabel(label); } } }
Example #7
Source File: MenuItem.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Sets the label for this menu item to the specified label. * @param label the new label, or <code>null</code> for no label. * @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); } }
Example #8
Source File: MenuItem.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * @deprecated As of JDK version 1.1, * replaced by <code>setEnabled(boolean)</code>. */ @Deprecated public synchronized void enable() { enabled = true; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setEnabled(true); } }
Example #9
Source File: MenuItem.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * @deprecated As of JDK version 1.1, * replaced by <code>setEnabled(boolean)</code>. */ @Deprecated public synchronized void disable() { enabled = false; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setEnabled(false); } }
Example #10
Source File: MenuItem.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * @deprecated As of JDK version 1.1, * replaced by <code>setEnabled(boolean)</code>. */ @Deprecated public synchronized void disable() { enabled = false; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setEnabled(false); } }
Example #11
Source File: MenuItem.java From hottub with GNU General Public License v2.0 | 5 votes |
void deleteShortcut(MenuShortcut s) { if (s.equals(shortcut)) { shortcut = null; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setLabel(label); } } }
Example #12
Source File: MenuItem.java From Java8CN with Apache License 2.0 | 5 votes |
/** * @deprecated As of JDK version 1.1, * replaced by <code>setEnabled(boolean)</code>. */ @Deprecated public synchronized void enable() { enabled = true; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setEnabled(true); } }
Example #13
Source File: MenuItem.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * @deprecated As of JDK version 1.1, * replaced by <code>setEnabled(boolean)</code>. */ @Deprecated public synchronized void disable() { enabled = false; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setEnabled(false); } }
Example #14
Source File: MenuItem.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * @deprecated As of JDK version 1.1, * replaced by {@code setEnabled(boolean)}. */ @Deprecated public synchronized void enable() { enabled = true; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setEnabled(true); } }
Example #15
Source File: MenuItem.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Sets the label for this menu item to the specified label. * @param label the new label, or {@code null} for no label. * @see java.awt.MenuItem#getLabel * @since 1.0 */ public synchronized void setLabel(String label) { this.label = label; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setLabel(label); } }
Example #16
Source File: MenuItem.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
void deleteShortcut(MenuShortcut s) { if (s.equals(shortcut)) { shortcut = null; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setLabel(label); } } }
Example #17
Source File: MenuItem.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * Delete any {@code MenuShortcut} object associated * with this menu item. * @since 1.1 */ public void deleteShortcut() { shortcut = null; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setLabel(label); } }
Example #18
Source File: MenuItem.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * @deprecated As of JDK version 1.1, * replaced by <code>setEnabled(boolean)</code>. */ @Deprecated public synchronized void enable() { enabled = true; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setEnabled(true); } }
Example #19
Source File: MenuItem.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * @deprecated As of JDK version 1.1, * replaced by {@code setEnabled(boolean)}. */ @Deprecated public synchronized void disable() { enabled = false; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setEnabled(false); } }
Example #20
Source File: MenuItem.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * @deprecated As of JDK version 1.1, * replaced by {@code setEnabled(boolean)}. */ @Deprecated public synchronized void enable() { enabled = true; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setEnabled(true); } }
Example #21
Source File: MenuItem.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * Sets the label for this menu item to the specified label. * @param label the new label, or {@code null} for no label. * @see java.awt.MenuItem#getLabel * @since 1.0 */ public synchronized void setLabel(String label) { this.label = label; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setLabel(label); } }
Example #22
Source File: CMenu.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Override public final void setEnabled(final boolean b) { super.setEnabled(b); final Menu target = (Menu) getTarget(); final int count = target.getItemCount(); for (int i = 0; i < count; ++i) { MenuItem item = target.getItem(i); MenuItemPeer p = (MenuItemPeer) LWCToolkit.targetToPeer(item); if (p != null) { p.setEnabled(b && item.isEnabled()); } } }
Example #23
Source File: MenuItem.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
void deleteShortcut(MenuShortcut s) { if (s.equals(shortcut)) { shortcut = null; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setLabel(label); } } }
Example #24
Source File: MenuItem.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Delete any <code>MenuShortcut</code> object associated * with this menu item. * @since JDK1.1 */ public void deleteShortcut() { shortcut = null; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setLabel(label); } }
Example #25
Source File: MenuItem.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * @deprecated As of JDK version 1.1, * replaced by <code>setEnabled(boolean)</code>. */ @Deprecated public synchronized void disable() { enabled = false; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setEnabled(false); } }
Example #26
Source File: MenuItem.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * @deprecated As of JDK version 1.1, * replaced by <code>setEnabled(boolean)</code>. */ @Deprecated public synchronized void enable() { enabled = true; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setEnabled(true); } }
Example #27
Source File: MenuItem.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Sets the label for this menu item to the specified label. * @param label the new label, or <code>null</code> for no label. * @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); } }
Example #28
Source File: MenuItem.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
void deleteShortcut(MenuShortcut s) { if (s.equals(shortcut)) { shortcut = null; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setLabel(label); } } }
Example #29
Source File: MenuItem.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
void deleteShortcut(MenuShortcut s) { if (s.equals(shortcut)) { shortcut = null; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setLabel(label); } } }
Example #30
Source File: MenuItem.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Delete any <code>MenuShortcut</code> object associated * with this menu item. * @since JDK1.1 */ public void deleteShortcut() { shortcut = null; MenuItemPeer peer = (MenuItemPeer)this.peer; if (peer != null) { peer.setLabel(label); } }