Java Code Examples for sun.swing.BakedArrayList#size()
The following examples show how to use
sun.swing.BakedArrayList#size() .
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: DefaultSynthStyleFactory.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList<SynthStyle> matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example 2
Source File: DefaultSynthStyleFactory.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example 3
Source File: DefaultSynthStyleFactory.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example 4
Source File: DefaultSynthStyleFactory.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example 5
Source File: DefaultSynthStyleFactory.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example 6
Source File: DefaultSynthStyleFactory.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example 7
Source File: DefaultSynthStyleFactory.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example 8
Source File: DefaultSynthStyleFactory.java From Java8CN with Apache License 2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example 9
Source File: DefaultSynthStyleFactory.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example 10
Source File: DefaultSynthStyleFactory.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example 11
Source File: DefaultSynthStyleFactory.java From Bytecoder with Apache License 2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList<SynthStyle> matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example 12
Source File: DefaultSynthStyleFactory.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example 13
Source File: DefaultSynthStyleFactory.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example 14
Source File: DefaultSynthStyleFactory.java From JDKSourceCode1.8 with MIT License | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example 15
Source File: DefaultSynthStyleFactory.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example 16
Source File: DefaultSynthStyleFactory.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }
Example 17
Source File: DefaultSynthStyleFactory.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the style for the specified Component. * * @param c Component asking for * @param id ID of the Component */ public synchronized SynthStyle getStyle(JComponent c, Region id) { BakedArrayList matches = _tmpList; matches.clear(); getMatchingStyles(matches, c, id); if (matches.size() == 0) { return getDefaultStyle(); } // Use a cached Style if possible, otherwise create a new one. matches.cacheHashCode(); SynthStyle style = getCachedStyle(matches); if (style == null) { style = mergeStyles(matches); if (style != null) { cacheStyle(matches, style); } } return style; }