java.awt.peer.CheckboxMenuItemPeer Java Examples

The following examples show how to use java.awt.peer.CheckboxMenuItemPeer. 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: UtilitiesTest.java    From netbeans with Apache License 2.0 4 votes vote down vote up
protected CheckboxMenuItemPeer createCheckboxMenuItem(CheckboxMenuItem target) throws HeadlessException {
    throw new IllegalStateException("Method not implemented");
}
 
Example #2
Source File: CheckboxMenuItem.java    From openjdk-jdk9 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets this check box menu item to the specified state.
 * The boolean value {@code true} indicates "on" while
 * {@code false} indicates "off."
 *
 * <p>Note that this method should be primarily used to
 * initialize the state of the check box menu item.
 * Programmatically setting the state of the check box
 * menu item will <i>not</i> trigger
 * an {@code ItemEvent}.  The only way to trigger an
 * {@code ItemEvent} is by user interaction.
 *
 * @param      b   {@code true} if the check box
 *             menu item is on, otherwise {@code false}
 * @see        #getState
 */
public synchronized void setState(boolean b) {
    state = b;
    CheckboxMenuItemPeer peer = (CheckboxMenuItemPeer)this.peer;
    if (peer != null) {
        peer.setState(b);
    }
}
 
Example #3
Source File: CheckboxMenuItem.java    From jdk8u-dev-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets this check box menu item to the specified state.
 * The boolean value <code>true</code> indicates "on" while
 * <code>false</code> indicates "off."
 *
 * <p>Note that this method should be primarily used to
 * initialize the state of the check box menu item.
 * Programmatically setting the state of the check box
 * menu item will <i>not</i> trigger
 * an <code>ItemEvent</code>.  The only way to trigger an
 * <code>ItemEvent</code> is by user interaction.
 *
 * @param      b   <code>true</code> if the check box
 *             menu item is on, otherwise <code>false</code>
 * @see        #getState
 */
public synchronized void setState(boolean b) {
    state = b;
    CheckboxMenuItemPeer peer = (CheckboxMenuItemPeer)this.peer;
    if (peer != null) {
        peer.setState(b);
    }
}
 
Example #4
Source File: CheckboxMenuItem.java    From jdk-1.7-annotated with Apache License 2.0 3 votes vote down vote up
/**
 * Sets this check box menu item to the specifed state.
 * The boolean value <code>true</code> indicates "on" while
 * <code>false</code> indicates "off."
 *
 * <p>Note that this method should be primarily used to
 * initialize the state of the check box menu item.
 * Programmatically setting the state of the check box
 * menu item will <i>not</i> trigger
 * an <code>ItemEvent</code>.  The only way to trigger an
 * <code>ItemEvent</code> is by user interaction.
 *
 * @param      b   <code>true</code> if the check box
 *             menu item is on, otherwise <code>false</code>
 * @see        #getState
 */
public synchronized void setState(boolean b) {
    state = b;
    CheckboxMenuItemPeer peer = (CheckboxMenuItemPeer)this.peer;
    if (peer != null) {
        peer.setState(b);
    }
}
 
Example #5
Source File: CheckboxMenuItem.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets this check box menu item to the specified state.
 * The boolean value <code>true</code> indicates "on" while
 * <code>false</code> indicates "off."
 *
 * <p>Note that this method should be primarily used to
 * initialize the state of the check box menu item.
 * Programmatically setting the state of the check box
 * menu item will <i>not</i> trigger
 * an <code>ItemEvent</code>.  The only way to trigger an
 * <code>ItemEvent</code> is by user interaction.
 *
 * @param      b   <code>true</code> if the check box
 *             menu item is on, otherwise <code>false</code>
 * @see        #getState
 */
public synchronized void setState(boolean b) {
    state = b;
    CheckboxMenuItemPeer peer = (CheckboxMenuItemPeer)this.peer;
    if (peer != null) {
        peer.setState(b);
    }
}
 
Example #6
Source File: CheckboxMenuItem.java    From jdk8u_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets this check box menu item to the specified state.
 * The boolean value <code>true</code> indicates "on" while
 * <code>false</code> indicates "off."
 *
 * <p>Note that this method should be primarily used to
 * initialize the state of the check box menu item.
 * Programmatically setting the state of the check box
 * menu item will <i>not</i> trigger
 * an <code>ItemEvent</code>.  The only way to trigger an
 * <code>ItemEvent</code> is by user interaction.
 *
 * @param      b   <code>true</code> if the check box
 *             menu item is on, otherwise <code>false</code>
 * @see        #getState
 */
public synchronized void setState(boolean b) {
    state = b;
    CheckboxMenuItemPeer peer = (CheckboxMenuItemPeer)this.peer;
    if (peer != null) {
        peer.setState(b);
    }
}
 
Example #7
Source File: CheckboxMenuItem.java    From openjdk-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets this check box menu item to the specified state.
 * The boolean value <code>true</code> indicates "on" while
 * <code>false</code> indicates "off."
 *
 * <p>Note that this method should be primarily used to
 * initialize the state of the check box menu item.
 * Programmatically setting the state of the check box
 * menu item will <i>not</i> trigger
 * an <code>ItemEvent</code>.  The only way to trigger an
 * <code>ItemEvent</code> is by user interaction.
 *
 * @param      b   <code>true</code> if the check box
 *             menu item is on, otherwise <code>false</code>
 * @see        #getState
 */
public synchronized void setState(boolean b) {
    state = b;
    CheckboxMenuItemPeer peer = (CheckboxMenuItemPeer)this.peer;
    if (peer != null) {
        peer.setState(b);
    }
}
 
Example #8
Source File: CheckboxMenuItem.java    From openjdk-8-source with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets this check box menu item to the specified state.
 * The boolean value <code>true</code> indicates "on" while
 * <code>false</code> indicates "off."
 *
 * <p>Note that this method should be primarily used to
 * initialize the state of the check box menu item.
 * Programmatically setting the state of the check box
 * menu item will <i>not</i> trigger
 * an <code>ItemEvent</code>.  The only way to trigger an
 * <code>ItemEvent</code> is by user interaction.
 *
 * @param      b   <code>true</code> if the check box
 *             menu item is on, otherwise <code>false</code>
 * @see        #getState
 */
public synchronized void setState(boolean b) {
    state = b;
    CheckboxMenuItemPeer peer = (CheckboxMenuItemPeer)this.peer;
    if (peer != null) {
        peer.setState(b);
    }
}
 
Example #9
Source File: CheckboxMenuItem.java    From hottub with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets this check box menu item to the specified state.
 * The boolean value <code>true</code> indicates "on" while
 * <code>false</code> indicates "off."
 *
 * <p>Note that this method should be primarily used to
 * initialize the state of the check box menu item.
 * Programmatically setting the state of the check box
 * menu item will <i>not</i> trigger
 * an <code>ItemEvent</code>.  The only way to trigger an
 * <code>ItemEvent</code> is by user interaction.
 *
 * @param      b   <code>true</code> if the check box
 *             menu item is on, otherwise <code>false</code>
 * @see        #getState
 */
public synchronized void setState(boolean b) {
    state = b;
    CheckboxMenuItemPeer peer = (CheckboxMenuItemPeer)this.peer;
    if (peer != null) {
        peer.setState(b);
    }
}
 
Example #10
Source File: CheckboxMenuItem.java    From Java8CN with Apache License 2.0 3 votes vote down vote up
/**
 * Sets this check box menu item to the specified state.
 * The boolean value <code>true</code> indicates "on" while
 * <code>false</code> indicates "off."
 *
 * <p>Note that this method should be primarily used to
 * initialize the state of the check box menu item.
 * Programmatically setting the state of the check box
 * menu item will <i>not</i> trigger
 * an <code>ItemEvent</code>.  The only way to trigger an
 * <code>ItemEvent</code> is by user interaction.
 *
 * @param      b   <code>true</code> if the check box
 *             menu item is on, otherwise <code>false</code>
 * @see        #getState
 */
public synchronized void setState(boolean b) {
    state = b;
    CheckboxMenuItemPeer peer = (CheckboxMenuItemPeer)this.peer;
    if (peer != null) {
        peer.setState(b);
    }
}
 
Example #11
Source File: CheckboxMenuItem.java    From jdk8u-jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets this check box menu item to the specified state.
 * The boolean value <code>true</code> indicates "on" while
 * <code>false</code> indicates "off."
 *
 * <p>Note that this method should be primarily used to
 * initialize the state of the check box menu item.
 * Programmatically setting the state of the check box
 * menu item will <i>not</i> trigger
 * an <code>ItemEvent</code>.  The only way to trigger an
 * <code>ItemEvent</code> is by user interaction.
 *
 * @param      b   <code>true</code> if the check box
 *             menu item is on, otherwise <code>false</code>
 * @see        #getState
 */
public synchronized void setState(boolean b) {
    state = b;
    CheckboxMenuItemPeer peer = (CheckboxMenuItemPeer)this.peer;
    if (peer != null) {
        peer.setState(b);
    }
}
 
Example #12
Source File: CheckboxMenuItem.java    From jdk1.8-source-analysis with Apache License 2.0 3 votes vote down vote up
/**
 * Sets this check box menu item to the specified state.
 * The boolean value <code>true</code> indicates "on" while
 * <code>false</code> indicates "off."
 *
 * <p>Note that this method should be primarily used to
 * initialize the state of the check box menu item.
 * Programmatically setting the state of the check box
 * menu item will <i>not</i> trigger
 * an <code>ItemEvent</code>.  The only way to trigger an
 * <code>ItemEvent</code> is by user interaction.
 *
 * @param      b   <code>true</code> if the check box
 *             menu item is on, otherwise <code>false</code>
 * @see        #getState
 */
public synchronized void setState(boolean b) {
    state = b;
    CheckboxMenuItemPeer peer = (CheckboxMenuItemPeer)this.peer;
    if (peer != null) {
        peer.setState(b);
    }
}
 
Example #13
Source File: CheckboxMenuItem.java    From Bytecoder with Apache License 2.0 3 votes vote down vote up
/**
 * Sets this check box menu item to the specified state.
 * The boolean value {@code true} indicates "on" while
 * {@code false} indicates "off."
 *
 * <p>Note that this method should be primarily used to
 * initialize the state of the check box menu item.
 * Programmatically setting the state of the check box
 * menu item will <i>not</i> trigger
 * an {@code ItemEvent}.  The only way to trigger an
 * {@code ItemEvent} is by user interaction.
 *
 * @param      b   {@code true} if the check box
 *             menu item is on, otherwise {@code false}
 * @see        #getState
 */
public synchronized void setState(boolean b) {
    state = b;
    CheckboxMenuItemPeer peer = (CheckboxMenuItemPeer)this.peer;
    if (peer != null) {
        peer.setState(b);
    }
}
 
Example #14
Source File: CheckboxMenuItem.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets this check box menu item to the specified state.
 * The boolean value <code>true</code> indicates "on" while
 * <code>false</code> indicates "off."
 *
 * <p>Note that this method should be primarily used to
 * initialize the state of the check box menu item.
 * Programmatically setting the state of the check box
 * menu item will <i>not</i> trigger
 * an <code>ItemEvent</code>.  The only way to trigger an
 * <code>ItemEvent</code> is by user interaction.
 *
 * @param      b   <code>true</code> if the check box
 *             menu item is on, otherwise <code>false</code>
 * @see        #getState
 */
public synchronized void setState(boolean b) {
    state = b;
    CheckboxMenuItemPeer peer = (CheckboxMenuItemPeer)this.peer;
    if (peer != null) {
        peer.setState(b);
    }
}
 
Example #15
Source File: CheckboxMenuItem.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets this check box menu item to the specified state.
 * The boolean value <code>true</code> indicates "on" while
 * <code>false</code> indicates "off."
 *
 * <p>Note that this method should be primarily used to
 * initialize the state of the check box menu item.
 * Programmatically setting the state of the check box
 * menu item will <i>not</i> trigger
 * an <code>ItemEvent</code>.  The only way to trigger an
 * <code>ItemEvent</code> is by user interaction.
 *
 * @param      b   <code>true</code> if the check box
 *             menu item is on, otherwise <code>false</code>
 * @see        #getState
 */
public synchronized void setState(boolean b) {
    state = b;
    CheckboxMenuItemPeer peer = (CheckboxMenuItemPeer)this.peer;
    if (peer != null) {
        peer.setState(b);
    }
}
 
Example #16
Source File: CheckboxMenuItem.java    From JDKSourceCode1.8 with MIT License 3 votes vote down vote up
/**
 * Sets this check box menu item to the specified state.
 * The boolean value <code>true</code> indicates "on" while
 * <code>false</code> indicates "off."
 *
 * <p>Note that this method should be primarily used to
 * initialize the state of the check box menu item.
 * Programmatically setting the state of the check box
 * menu item will <i>not</i> trigger
 * an <code>ItemEvent</code>.  The only way to trigger an
 * <code>ItemEvent</code> is by user interaction.
 *
 * @param      b   <code>true</code> if the check box
 *             menu item is on, otherwise <code>false</code>
 * @see        #getState
 */
public synchronized void setState(boolean b) {
    state = b;
    CheckboxMenuItemPeer peer = (CheckboxMenuItemPeer)this.peer;
    if (peer != null) {
        peer.setState(b);
    }
}
 
Example #17
Source File: CheckboxMenuItem.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets this check box menu item to the specified state.
 * The boolean value <code>true</code> indicates "on" while
 * <code>false</code> indicates "off."
 *
 * <p>Note that this method should be primarily used to
 * initialize the state of the check box menu item.
 * Programmatically setting the state of the check box
 * menu item will <i>not</i> trigger
 * an <code>ItemEvent</code>.  The only way to trigger an
 * <code>ItemEvent</code> is by user interaction.
 *
 * @param      b   <code>true</code> if the check box
 *             menu item is on, otherwise <code>false</code>
 * @see        #getState
 */
public synchronized void setState(boolean b) {
    state = b;
    CheckboxMenuItemPeer peer = (CheckboxMenuItemPeer)this.peer;
    if (peer != null) {
        peer.setState(b);
    }
}
 
Example #18
Source File: CheckboxMenuItem.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets this check box menu item to the specified state.
 * The boolean value <code>true</code> indicates "on" while
 * <code>false</code> indicates "off."
 *
 * <p>Note that this method should be primarily used to
 * initialize the state of the check box menu item.
 * Programmatically setting the state of the check box
 * menu item will <i>not</i> trigger
 * an <code>ItemEvent</code>.  The only way to trigger an
 * <code>ItemEvent</code> is by user interaction.
 *
 * @param      b   <code>true</code> if the check box
 *             menu item is on, otherwise <code>false</code>
 * @see        #getState
 */
public synchronized void setState(boolean b) {
    state = b;
    CheckboxMenuItemPeer peer = (CheckboxMenuItemPeer)this.peer;
    if (peer != null) {
        peer.setState(b);
    }
}
 
Example #19
Source File: CheckboxMenuItem.java    From dragonwell8_jdk with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Sets this check box menu item to the specified state.
 * The boolean value <code>true</code> indicates "on" while
 * <code>false</code> indicates "off."
 *
 * <p>Note that this method should be primarily used to
 * initialize the state of the check box menu item.
 * Programmatically setting the state of the check box
 * menu item will <i>not</i> trigger
 * an <code>ItemEvent</code>.  The only way to trigger an
 * <code>ItemEvent</code> is by user interaction.
 *
 * @param      b   <code>true</code> if the check box
 *             menu item is on, otherwise <code>false</code>
 * @see        #getState
 */
public synchronized void setState(boolean b) {
    state = b;
    CheckboxMenuItemPeer peer = (CheckboxMenuItemPeer)this.peer;
    if (peer != null) {
        peer.setState(b);
    }
}