Component.getName(),
and the Region associated with the JComponent.
Lookup is done using regular expressions.
| Modifier and Type | Field and Description |
|---|---|
| private SynthStyle | _defaultStyle
Used if there are no styles matching a widget. |
| private Map | _resolvedStyles
Maps from a List (BakedArrayList to be precise) to the merged style. |
| private List | _styles
List containing set of StyleAssociations used in determining matching styles. |
| private BakedArrayList | _tmpList
Used during lookup. |
| public static final int | NAME
Used to indicate the lookup should be done based on Component name. |
| public static final int | REGION
Used to indicate the lookup should be done based on region. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | |
| private void | |
| private SynthStyle | |
| private SynthStyle | |
| private void | getMatchingStyles(List<SynthStyle> matches, JComponent c, Region id)
Fetches any styles that match the passed into arguments into
|
| public synchronized SynthStyle | getStyle(JComponent
Component asking for c, Region ID of the Component id)Implements abstract javax. Returns the style for the specified Component. |
| private SynthStyle |
| _defaultStyle | back to summary |
|---|---|
| private SynthStyle _defaultStyle Used if there are no styles matching a widget. | |
| _resolvedStyles | back to summary |
|---|---|
| private Map<BakedArrayList<SynthStyle>, SynthStyle> _resolvedStyles Maps from a List (BakedArrayList to be precise) to the merged style. | |
| _styles | back to summary |
|---|---|
| private List<StyleAssociation> _styles List containing set of StyleAssociations used in determining matching styles. | |
| _tmpList | back to summary |
|---|---|
| private BakedArrayList<SynthStyle> _tmpList Used during lookup. | |
| NAME | back to summary |
|---|---|
| public static final int NAME Used to indicate the lookup should be done based on Component name. | |
| REGION | back to summary |
|---|---|
| public static final int REGION Used to indicate the lookup should be done based on region. | |
| DefaultSynthStyleFactory | back to summary |
|---|---|
| pack-priv DefaultSynthStyleFactory() | |
| addStyle | back to summary |
|---|---|
| public synchronized void addStyle(DefaultSynthStyle style, String path, int type) throws PatternSyntaxException | |
| cacheStyle | back to summary |
|---|---|
| private void cacheStyle(List<SynthStyle> styles, SynthStyle style) Caches the specified style. | |
| getCachedStyle | back to summary |
|---|---|
| private SynthStyle getCachedStyle(List<SynthStyle> styles) Returns the cached style from the passed in arguments. | |
| getDefaultStyle | back to summary |
|---|---|
| private SynthStyle getDefaultStyle() Returns the style to use if there are no matching styles. | |
| getMatchingStyles | back to summary |
|---|---|
| private void getMatchingStyles(List<SynthStyle> matches, JComponent c, Region id) Fetches any styles that match the passed into arguments into
| |
| getStyle | back to summary |
|---|---|
| public synchronized SynthStyle getStyle(JComponent c, Region id) Implements abstract javax. Returns the style for the specified Component.
| |
| mergeStyles | back to summary |
|---|---|
| private SynthStyle mergeStyles(List<SynthStyle> styles) Creates a single Style from the passed in styles. The passed in List is reverse sorted, that is the most recently added style found to match will be first. | |