sun.swing.text.html.FrameEditorPaneTag Java Examples

The following examples show how to use sun.swing.text.html.FrameEditorPaneTag. 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: TextComponentPrintable.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds all {@code JEditorPanes} under {@code container} tagged by {@code
 * FrameEditorPaneTag} to the {@code list}. It adds only top
 * level {@code JEditorPanes}.  For instance if there is a frame
 * inside the frame it will return the top frame only.
 *
 * @param c the container to find all frames under
 * @param list {@code List} to append the results too
 */
private static void getFrames(final Container container, List<JEditorPane> list) {
    for (Component c : container.getComponents()) {
        if (c instanceof FrameEditorPaneTag
            && c instanceof JEditorPane ) { //it should be always JEditorPane
            list.add((JEditorPane) c);
        } else {
            if (c instanceof Container) {
                getFrames((Container) c, list);
            }
        }
    }
}
 
Example #2
Source File: TextComponentPrintable.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds all {@code JEditorPanes} under {@code container} tagged by {@code
 * FrameEditorPaneTag} to the {@code list}. It adds only top
 * level {@code JEditorPanes}.  For instance if there is a frame
 * inside the frame it will return the top frame only.
 *
 * @param c the container to find all frames under
 * @param list {@code List} to append the results too
 */
private static void getFrames(final Container container, List<JEditorPane> list) {
    for (Component c : container.getComponents()) {
        if (c instanceof FrameEditorPaneTag
            && c instanceof JEditorPane ) { //it should be always JEditorPane
            list.add((JEditorPane) c);
        } else {
            if (c instanceof Container) {
                getFrames((Container) c, list);
            }
        }
    }
}
 
Example #3
Source File: TextComponentPrintable.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds all {@code JEditorPanes} under {@code container} tagged by {@code
 * FrameEditorPaneTag} to the {@code list}. It adds only top
 * level {@code JEditorPanes}.  For instance if there is a frame
 * inside the frame it will return the top frame only.
 *
 * @param c the container to find all frames under
 * @param list {@code List} to append the results too
 */
private static void getFrames(final Container container, List<JEditorPane> list) {
    for (Component c : container.getComponents()) {
        if (c instanceof FrameEditorPaneTag
            && c instanceof JEditorPane ) { //it should be always JEditorPane
            list.add((JEditorPane) c);
        } else {
            if (c instanceof Container) {
                getFrames((Container) c, list);
            }
        }
    }
}
 
Example #4
Source File: TextComponentPrintable.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds all {@code JEditorPanes} under {@code container} tagged by {@code
 * FrameEditorPaneTag} to the {@code list}. It adds only top
 * level {@code JEditorPanes}.  For instance if there is a frame
 * inside the frame it will return the top frame only.
 *
 * @param c the container to find all frames under
 * @param list {@code List} to append the results too
 */
private static void getFrames(final Container container, List<JEditorPane> list) {
    for (Component c : container.getComponents()) {
        if (c instanceof FrameEditorPaneTag
            && c instanceof JEditorPane ) { //it should be always JEditorPane
            list.add((JEditorPane) c);
        } else {
            if (c instanceof Container) {
                getFrames((Container) c, list);
            }
        }
    }
}
 
Example #5
Source File: TextComponentPrintable.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds all {@code JEditorPanes} under {@code container} tagged by {@code
 * FrameEditorPaneTag} to the {@code list}. It adds only top
 * level {@code JEditorPanes}.  For instance if there is a frame
 * inside the frame it will return the top frame only.
 *
 * @param c the container to find all frames under
 * @param list {@code List} to append the results too
 */
private static void getFrames(final Container container, List<JEditorPane> list) {
    for (Component c : container.getComponents()) {
        if (c instanceof FrameEditorPaneTag
            && c instanceof JEditorPane ) { //it should be always JEditorPane
            list.add((JEditorPane) c);
        } else {
            if (c instanceof Container) {
                getFrames((Container) c, list);
            }
        }
    }
}
 
Example #6
Source File: TextComponentPrintable.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
/**
 * Adds all {@code JEditorPanes} under {@code container} tagged by {@code
 * FrameEditorPaneTag} to the {@code list}. It adds only top
 * level {@code JEditorPanes}.  For instance if there is a frame
 * inside the frame it will return the top frame only.
 *
 * @param container the container to find all frames under
 * @param list {@code List} to append the results too
 */
private static void getFrames(final Container container, List<JEditorPane> list) {
    for (Component c : container.getComponents()) {
        if (c instanceof FrameEditorPaneTag
            && c instanceof JEditorPane ) { //it should be always JEditorPane
            list.add((JEditorPane) c);
        } else {
            if (c instanceof Container) {
                getFrames((Container) c, list);
            }
        }
    }
}
 
Example #7
Source File: TextComponentPrintable.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds all {@code JEditorPanes} under {@code container} tagged by {@code
 * FrameEditorPaneTag} to the {@code list}. It adds only top
 * level {@code JEditorPanes}.  For instance if there is a frame
 * inside the frame it will return the top frame only.
 *
 * @param container the container to find all frames under
 * @param list {@code List} to append the results too
 */
private static void getFrames(final Container container, List<JEditorPane> list) {
    for (Component c : container.getComponents()) {
        if (c instanceof FrameEditorPaneTag
            && c instanceof JEditorPane ) { //it should be always JEditorPane
            list.add((JEditorPane) c);
        } else {
            if (c instanceof Container) {
                getFrames((Container) c, list);
            }
        }
    }
}
 
Example #8
Source File: TextComponentPrintable.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds all {@code JEditorPanes} under {@code container} tagged by {@code
 * FrameEditorPaneTag} to the {@code list}. It adds only top
 * level {@code JEditorPanes}.  For instance if there is a frame
 * inside the frame it will return the top frame only.
 *
 * @param c the container to find all frames under
 * @param list {@code List} to append the results too
 */
private static void getFrames(final Container container, List<JEditorPane> list) {
    for (Component c : container.getComponents()) {
        if (c instanceof FrameEditorPaneTag
            && c instanceof JEditorPane ) { //it should be always JEditorPane
            list.add((JEditorPane) c);
        } else {
            if (c instanceof Container) {
                getFrames((Container) c, list);
            }
        }
    }
}
 
Example #9
Source File: TextComponentPrintable.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds all {@code JEditorPanes} under {@code container} tagged by {@code
 * FrameEditorPaneTag} to the {@code list}. It adds only top
 * level {@code JEditorPanes}.  For instance if there is a frame
 * inside the frame it will return the top frame only.
 *
 * @param c the container to find all frames under
 * @param list {@code List} to append the results too
 */
private static void getFrames(final Container container, List<JEditorPane> list) {
    for (Component c : container.getComponents()) {
        if (c instanceof FrameEditorPaneTag
            && c instanceof JEditorPane ) { //it should be always JEditorPane
            list.add((JEditorPane) c);
        } else {
            if (c instanceof Container) {
                getFrames((Container) c, list);
            }
        }
    }
}
 
Example #10
Source File: TextComponentPrintable.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds all {@code JEditorPanes} under {@code container} tagged by {@code
 * FrameEditorPaneTag} to the {@code list}. It adds only top
 * level {@code JEditorPanes}.  For instance if there is a frame
 * inside the frame it will return the top frame only.
 *
 * @param c the container to find all frames under
 * @param list {@code List} to append the results too
 */
private static void getFrames(final Container container, List<JEditorPane> list) {
    for (Component c : container.getComponents()) {
        if (c instanceof FrameEditorPaneTag
            && c instanceof JEditorPane ) { //it should be always JEditorPane
            list.add((JEditorPane) c);
        } else {
            if (c instanceof Container) {
                getFrames((Container) c, list);
            }
        }
    }
}
 
Example #11
Source File: TextComponentPrintable.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds all {@code JEditorPanes} under {@code container} tagged by {@code
 * FrameEditorPaneTag} to the {@code list}. It adds only top
 * level {@code JEditorPanes}.  For instance if there is a frame
 * inside the frame it will return the top frame only.
 *
 * @param c the container to find all frames under
 * @param list {@code List} to append the results too
 */
private static void getFrames(final Container container, List<JEditorPane> list) {
    for (Component c : container.getComponents()) {
        if (c instanceof FrameEditorPaneTag
            && c instanceof JEditorPane ) { //it should be always JEditorPane
            list.add((JEditorPane) c);
        } else {
            if (c instanceof Container) {
                getFrames((Container) c, list);
            }
        }
    }
}
 
Example #12
Source File: TextComponentPrintable.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds all {@code JEditorPanes} under {@code container} tagged by {@code
 * FrameEditorPaneTag} to the {@code list}. It adds only top
 * level {@code JEditorPanes}.  For instance if there is a frame
 * inside the frame it will return the top frame only.
 *
 * @param c the container to find all frames under
 * @param list {@code List} to append the results too
 */
private static void getFrames(final Container container, List<JEditorPane> list) {
    for (Component c : container.getComponents()) {
        if (c instanceof FrameEditorPaneTag
            && c instanceof JEditorPane ) { //it should be always JEditorPane
            list.add((JEditorPane) c);
        } else {
            if (c instanceof Container) {
                getFrames((Container) c, list);
            }
        }
    }
}
 
Example #13
Source File: TextComponentPrintable.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds all {@code JEditorPanes} under {@code container} tagged by {@code
 * FrameEditorPaneTag} to the {@code list}. It adds only top
 * level {@code JEditorPanes}.  For instance if there is a frame
 * inside the frame it will return the top frame only.
 *
 * @param c the container to find all frames under
 * @param list {@code List} to append the results too
 */
private static void getFrames(final Container container, List<JEditorPane> list) {
    for (Component c : container.getComponents()) {
        if (c instanceof FrameEditorPaneTag
            && c instanceof JEditorPane ) { //it should be always JEditorPane
            list.add((JEditorPane) c);
        } else {
            if (c instanceof Container) {
                getFrames((Container) c, list);
            }
        }
    }
}
 
Example #14
Source File: TextComponentPrintable.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Adds all {@code JEditorPanes} under {@code container} tagged by {@code
 * FrameEditorPaneTag} to the {@code list}. It adds only top
 * level {@code JEditorPanes}.  For instance if there is a frame
 * inside the frame it will return the top frame only.
 *
 * @param c the container to find all frames under
 * @param list {@code List} to append the results too
 */
private static void getFrames(final Container container, List<JEditorPane> list) {
    for (Component c : container.getComponents()) {
        if (c instanceof FrameEditorPaneTag
            && c instanceof JEditorPane ) { //it should be always JEditorPane
            list.add((JEditorPane) c);
        } else {
            if (c instanceof Container) {
                getFrames((Container) c, list);
            }
        }
    }
}