javax.swing.event.InternalFrameListener Java Examples

The following examples show how to use javax.swing.event.InternalFrameListener. 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: JInternalFrameOperator.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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
Source File: JInternalFrameOperator.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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 File: JInternalFrame.java    From openjdk-8-source with 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 #4
Source File: JInternalFrame.java    From jdk8u-jdk with 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 #5
Source File: JInternalFrame.java    From jdk8u-jdk with 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 #6
Source File: JInternalFrame.java    From jdk8u-jdk with 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 #7
Source File: JInternalFrame.java    From Java8CN with 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 #8
Source File: JInternalFrame.java    From Java8CN with 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 #9
Source File: JInternalFrame.java    From Java8CN with 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 #10
Source File: JInternalFrame.java    From hottub with 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 #11
Source File: JInternalFrame.java    From hottub with 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 #12
Source File: JInternalFrame.java    From hottub with 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 #13
Source File: JInternalFrame.java    From openjdk-8-source with 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 #14
Source File: JInternalFrame.java    From openjdk-8-source with 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 #15
Source File: JInternalFrame.java    From openjdk-jdk9 with 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 #16
Source File: JInternalFrame.java    From openjdk-8 with 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 #17
Source File: JInternalFrame.java    From openjdk-8 with 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 #18
Source File: JInternalFrame.java    From openjdk-8 with 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 #19
Source File: JInternalFrame.java    From jdk8u_jdk with 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 #20
Source File: JInternalFrame.java    From jdk8u_jdk with 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 #21
Source File: JInternalFrame.java    From jdk8u_jdk with 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 #22
Source File: JInternalFrame.java    From jdk8u-jdk with 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 #23
Source File: JInternalFrame.java    From jdk8u-jdk with 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 #24
Source File: JInternalFrame.java    From jdk8u-jdk with 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 #25
Source File: JInternalFrame.java    From jdk8u-dev-jdk with 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 #26
Source File: JInternalFrame.java    From jdk8u-dev-jdk with 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 #27
Source File: JInternalFrame.java    From jdk8u-dev-jdk with 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 #28
Source File: JInternalFrame.java    From JDKSourceCode1.8 with 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 #29
Source File: JInternalFrame.java    From jdk1.8-source-analysis with 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 #30
Source File: JInternalFrame.java    From jdk1.8-source-analysis with 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);
}