< prev index next >
src/java.desktop/share/classes/javax/swing/plaf/synth/DefaultSynthStyleFactory.java
Print this page
*** 32,43 ****
import sun.swing.plaf.synth.*;
import sun.swing.BakedArrayList;
/**
* Factory used for obtaining styles. Supports associating a style based on
! * the name of the component as returned by <code>Component.getName()</code>,
! * and the <code>Region</code> associated with the <code>JComponent</code>.
* Lookup is done using regular expressions.
*
* @author Scott Violet
*/
class DefaultSynthStyleFactory extends SynthStyleFactory {
--- 32,43 ----
import sun.swing.plaf.synth.*;
import sun.swing.BakedArrayList;
/**
* Factory used for obtaining styles. Supports associating a style based on
! * the name of the component as returned by {@code Component.getName()},
! * and the {@code Region} associated with the {@code JComponent}.
* Lookup is done using regular expressions.
*
* @author Scott Violet
*/
class DefaultSynthStyleFactory extends SynthStyleFactory {
*** 134,144 ****
return _defaultStyle;
}
/**
* Fetches any styles that match the passed into arguments into
! * <code>matches</code>.
*/
private void getMatchingStyles(List<SynthStyle> matches, JComponent c,
Region id) {
String idName = id.getLowerCaseName();
String cName = c.getName();
--- 134,144 ----
return _defaultStyle;
}
/**
* Fetches any styles that match the passed into arguments into
! * {@code matches}.
*/
private void getMatchingStyles(List<SynthStyle> matches, JComponent c,
Region id) {
String idName = id.getLowerCaseName();
String cName = c.getName();
< prev index next >