Java Code Examples for javax.swing.event.InternalFrameListener

The following examples show how to use javax.swing.event.InternalFrameListener. These examples are extracted from open source projects. 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
/**
 * Maps
 * {@code JInternalFrame.addInternalFrameListener(InternalFrameListener)}
 * through queue
 */
public void addInternalFrameListener(final InternalFrameListener internalFrameListener) {
    runMapping(new MapVoidAction("addInternalFrameListener") {
        @Override
        public void map() {
            ((JInternalFrame) getSource()).addInternalFrameListener(internalFrameListener);
        }
    });
}
 
Example 2
/**
 * Maps
 * {@code JInternalFrame.removeInternalFrameListener(InternalFrameListener)}
 * through queue
 */
public void removeInternalFrameListener(final InternalFrameListener internalFrameListener) {
    runMapping(new MapVoidAction("removeInternalFrameListener") {
        @Override
        public void map() {
            ((JInternalFrame) getSource()).removeInternalFrameListener(internalFrameListener);
        }
    });
}
 
Example 3
Source Project: jdk1.8-source-analysis   Source File: JInternalFrame.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Adds the specified listener to receive internal
 * frame events from this internal frame.
 *
 * @param l the internal frame listener
 */
public void addInternalFrameListener(InternalFrameListener l) {  // remind: sync ??
  listenerList.add(InternalFrameListener.class, l);
  // remind: needed?
  enableEvents(0);   // turn on the newEventsOnly flag in Component.
}
 
Example 4
Source Project: jdk1.8-source-analysis   Source File: JInternalFrame.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Removes the specified internal frame listener so that it no longer
 * receives internal frame events from this internal frame.
 *
 * @param l the internal frame listener
 */
public void removeInternalFrameListener(InternalFrameListener l) {  // remind: sync??
  listenerList.remove(InternalFrameListener.class, l);
}
 
Example 5
Source Project: jdk1.8-source-analysis   Source File: JInternalFrame.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Returns an array of all the <code>InternalFrameListener</code>s added
 * to this <code>JInternalFrame</code> with
 * <code>addInternalFrameListener</code>.
 *
 * @return all of the <code>InternalFrameListener</code>s added or an empty
 *         array if no listeners have been added
 * @since 1.4
 *
 * @see #addInternalFrameListener
 */
public InternalFrameListener[] getInternalFrameListeners() {
    return listenerList.getListeners(InternalFrameListener.class);
}
 
Example 6
/**
 * Adds the specified listener to receive internal
 * frame events from this internal frame.
 *
 * @param l the internal frame listener
 */
public void addInternalFrameListener(InternalFrameListener l) {  // remind: sync ??
  listenerList.add(InternalFrameListener.class, l);
  // remind: needed?
  enableEvents(0);   // turn on the newEventsOnly flag in Component.
}
 
Example 7
/**
 * Removes the specified internal frame listener so that it no longer
 * receives internal frame events from this internal frame.
 *
 * @param l the internal frame listener
 */
public void removeInternalFrameListener(InternalFrameListener l) {  // remind: sync??
  listenerList.remove(InternalFrameListener.class, l);
}
 
Example 8
/**
 * Returns an array of all the <code>InternalFrameListener</code>s added
 * to this <code>JInternalFrame</code> with
 * <code>addInternalFrameListener</code>.
 *
 * @return all of the <code>InternalFrameListener</code>s added or an empty
 *         array if no listeners have been added
 * @since 1.4
 *
 * @see #addInternalFrameListener
 */
public InternalFrameListener[] getInternalFrameListeners() {
    return listenerList.getListeners(InternalFrameListener.class);
}
 
Example 9
Source Project: TencentKona-8   Source File: JInternalFrame.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Adds the specified listener to receive internal
 * frame events from this internal frame.
 *
 * @param l the internal frame listener
 */
public void addInternalFrameListener(InternalFrameListener l) {  // remind: sync ??
  listenerList.add(InternalFrameListener.class, l);
  // remind: needed?
  enableEvents(0);   // turn on the newEventsOnly flag in Component.
}
 
Example 10
Source Project: TencentKona-8   Source File: JInternalFrame.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Removes the specified internal frame listener so that it no longer
 * receives internal frame events from this internal frame.
 *
 * @param l the internal frame listener
 */
public void removeInternalFrameListener(InternalFrameListener l) {  // remind: sync??
  listenerList.remove(InternalFrameListener.class, l);
}
 
Example 11
Source Project: TencentKona-8   Source File: JInternalFrame.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns an array of all the <code>InternalFrameListener</code>s added
 * to this <code>JInternalFrame</code> with
 * <code>addInternalFrameListener</code>.
 *
 * @return all of the <code>InternalFrameListener</code>s added or an empty
 *         array if no listeners have been added
 * @since 1.4
 *
 * @see #addInternalFrameListener
 */
public InternalFrameListener[] getInternalFrameListeners() {
    return listenerList.getListeners(InternalFrameListener.class);
}
 
Example 12
Source Project: jdk8u60   Source File: JInternalFrame.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Adds the specified listener to receive internal
 * frame events from this internal frame.
 *
 * @param l the internal frame listener
 */
public void addInternalFrameListener(InternalFrameListener l) {  // remind: sync ??
  listenerList.add(InternalFrameListener.class, l);
  // remind: needed?
  enableEvents(0);   // turn on the newEventsOnly flag in Component.
}
 
Example 13
Source Project: jdk8u60   Source File: JInternalFrame.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Removes the specified internal frame listener so that it no longer
 * receives internal frame events from this internal frame.
 *
 * @param l the internal frame listener
 */
public void removeInternalFrameListener(InternalFrameListener l) {  // remind: sync??
  listenerList.remove(InternalFrameListener.class, l);
}
 
Example 14
Source Project: jdk8u60   Source File: JInternalFrame.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns an array of all the <code>InternalFrameListener</code>s added
 * to this <code>JInternalFrame</code> with
 * <code>addInternalFrameListener</code>.
 *
 * @return all of the <code>InternalFrameListener</code>s added or an empty
 *         array if no listeners have been added
 * @since 1.4
 *
 * @see #addInternalFrameListener
 */
public InternalFrameListener[] getInternalFrameListeners() {
    return listenerList.getListeners(InternalFrameListener.class);
}
 
Example 15
Source Project: JDKSourceCode1.8   Source File: JInternalFrame.java    License: MIT License 2 votes vote down vote up
/**
 * Adds the specified listener to receive internal
 * frame events from this internal frame.
 *
 * @param l the internal frame listener
 */
public void addInternalFrameListener(InternalFrameListener l) {  // remind: sync ??
  listenerList.add(InternalFrameListener.class, l);
  // remind: needed?
  enableEvents(0);   // turn on the newEventsOnly flag in Component.
}
 
Example 16
Source Project: JDKSourceCode1.8   Source File: JInternalFrame.java    License: MIT License 2 votes vote down vote up
/**
 * Removes the specified internal frame listener so that it no longer
 * receives internal frame events from this internal frame.
 *
 * @param l the internal frame listener
 */
public void removeInternalFrameListener(InternalFrameListener l) {  // remind: sync??
  listenerList.remove(InternalFrameListener.class, l);
}
 
Example 17
Source Project: JDKSourceCode1.8   Source File: JInternalFrame.java    License: MIT License 2 votes vote down vote up
/**
 * Returns an array of all the <code>InternalFrameListener</code>s added
 * to this <code>JInternalFrame</code> with
 * <code>addInternalFrameListener</code>.
 *
 * @return all of the <code>InternalFrameListener</code>s added or an empty
 *         array if no listeners have been added
 * @since 1.4
 *
 * @see #addInternalFrameListener
 */
public InternalFrameListener[] getInternalFrameListeners() {
    return listenerList.getListeners(InternalFrameListener.class);
}
 
Example 18
Source Project: openjdk-jdk8u   Source File: JInternalFrame.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Adds the specified listener to receive internal
 * frame events from this internal frame.
 *
 * @param l the internal frame listener
 */
public void addInternalFrameListener(InternalFrameListener l) {  // remind: sync ??
  listenerList.add(InternalFrameListener.class, l);
  // remind: needed?
  enableEvents(0);   // turn on the newEventsOnly flag in Component.
}
 
Example 19
Source Project: openjdk-jdk8u   Source File: JInternalFrame.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Removes the specified internal frame listener so that it no longer
 * receives internal frame events from this internal frame.
 *
 * @param l the internal frame listener
 */
public void removeInternalFrameListener(InternalFrameListener l) {  // remind: sync??
  listenerList.remove(InternalFrameListener.class, l);
}
 
Example 20
Source Project: openjdk-jdk8u   Source File: JInternalFrame.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns an array of all the <code>InternalFrameListener</code>s added
 * to this <code>JInternalFrame</code> with
 * <code>addInternalFrameListener</code>.
 *
 * @return all of the <code>InternalFrameListener</code>s added or an empty
 *         array if no listeners have been added
 * @since 1.4
 *
 * @see #addInternalFrameListener
 */
public InternalFrameListener[] getInternalFrameListeners() {
    return listenerList.getListeners(InternalFrameListener.class);
}
 
Example 21
/**
 * Adds the specified listener to receive internal
 * frame events from this internal frame.
 *
 * @param l the internal frame listener
 */
public void addInternalFrameListener(InternalFrameListener l) {  // remind: sync ??
  listenerList.add(InternalFrameListener.class, l);
  // remind: needed?
  enableEvents(0);   // turn on the newEventsOnly flag in Component.
}
 
Example 22
/**
 * Removes the specified internal frame listener so that it no longer
 * receives internal frame events from this internal frame.
 *
 * @param l the internal frame listener
 */
public void removeInternalFrameListener(InternalFrameListener l) {  // remind: sync??
  listenerList.remove(InternalFrameListener.class, l);
}
 
Example 23
/**
 * Returns an array of all the <code>InternalFrameListener</code>s added
 * to this <code>JInternalFrame</code> with
 * <code>addInternalFrameListener</code>.
 *
 * @return all of the <code>InternalFrameListener</code>s added or an empty
 *         array if no listeners have been added
 * @since 1.4
 *
 * @see #addInternalFrameListener
 */
public InternalFrameListener[] getInternalFrameListeners() {
    return listenerList.getListeners(InternalFrameListener.class);
}
 
Example 24
Source Project: Bytecoder   Source File: JInternalFrame.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Adds the specified listener to receive internal
 * frame events from this internal frame.
 *
 * @param l the internal frame listener
 */
public void addInternalFrameListener(InternalFrameListener l) {  // remind: sync ??
  listenerList.add(InternalFrameListener.class, l);
  // remind: needed?
  enableEvents(0);   // turn on the newEventsOnly flag in Component.
}
 
Example 25
Source Project: Bytecoder   Source File: JInternalFrame.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Removes the specified internal frame listener so that it no longer
 * receives internal frame events from this internal frame.
 *
 * @param l the internal frame listener
 */
public void removeInternalFrameListener(InternalFrameListener l) {  // remind: sync??
  listenerList.remove(InternalFrameListener.class, l);
}
 
Example 26
Source Project: Bytecoder   Source File: JInternalFrame.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Returns an array of all the <code>InternalFrameListener</code>s added
 * to this <code>JInternalFrame</code> with
 * <code>addInternalFrameListener</code>.
 *
 * @return all of the <code>InternalFrameListener</code>s added or an empty
 *         array if no listeners have been added
 * @since 1.4
 *
 * @see #addInternalFrameListener
 */
@BeanProperty(bound = false)
public InternalFrameListener[] getInternalFrameListeners() {
    return listenerList.getListeners(InternalFrameListener.class);
}
 
Example 27
Source Project: openjdk-jdk9   Source File: JInternalFrame.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Adds the specified listener to receive internal
 * frame events from this internal frame.
 *
 * @param l the internal frame listener
 */
public void addInternalFrameListener(InternalFrameListener l) {  // remind: sync ??
  listenerList.add(InternalFrameListener.class, l);
  // remind: needed?
  enableEvents(0);   // turn on the newEventsOnly flag in Component.
}
 
Example 28
Source Project: openjdk-jdk9   Source File: JInternalFrame.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Removes the specified internal frame listener so that it no longer
 * receives internal frame events from this internal frame.
 *
 * @param l the internal frame listener
 */
public void removeInternalFrameListener(InternalFrameListener l) {  // remind: sync??
  listenerList.remove(InternalFrameListener.class, l);
}
 
Example 29
Source Project: openjdk-jdk9   Source File: JInternalFrame.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns an array of all the <code>InternalFrameListener</code>s added
 * to this <code>JInternalFrame</code> with
 * <code>addInternalFrameListener</code>.
 *
 * @return all of the <code>InternalFrameListener</code>s added or an empty
 *         array if no listeners have been added
 * @since 1.4
 *
 * @see #addInternalFrameListener
 */
@BeanProperty(bound = false)
public InternalFrameListener[] getInternalFrameListeners() {
    return listenerList.getListeners(InternalFrameListener.class);
}
 
Example 30
Source Project: jdk8u-jdk   Source File: JInternalFrame.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Adds the specified listener to receive internal
 * frame events from this internal frame.
 *
 * @param l the internal frame listener
 */
public void addInternalFrameListener(InternalFrameListener l) {  // remind: sync ??
  listenerList.add(InternalFrameListener.class, l);
  // remind: needed?
  enableEvents(0);   // turn on the newEventsOnly flag in Component.
}