public class Styler extends Object
StyleBundle,
StyleFactory,
StyleSource| Modifier and Type | Method and Description |
|---|---|
static <T extends StyleBundle> |
bundle(Class<T> type)
Create a
StyleBundle proxy. |
static <T extends StyleBundle> |
bundle(String group,
Class<T> type)
Create a
StyleBundle proxy with explicit style-group. |
static StyleFactory |
factory(String group)
Create a factory for the given style-group.
|
static StyleSource |
getSource()
Returns global
StyleSource. |
static StyleResolver |
resolver(String group)
Create a resolver for the given style-group.
|
static void |
setSource(StyleSource source)
Install global
StyleSource. |
public static StyleSource getSource()
StyleSource.public static void setSource(StyleSource source)
StyleSource.source - the new global style sourcepublic static StyleResolver resolver(String group)
group - the grouppublic static StyleFactory factory(String group)
group - the grouppublic static <T extends StyleBundle> T bundle(Class<T> type)
StyleBundle proxy.
Target class must be annotated with StyleBundle.StyleGroup.
T - the interface to proxytype - the interface to proxypublic static <T extends StyleBundle> T bundle(String group, Class<T> type)
StyleBundle proxy with explicit style-group.T - the interface to proxygroup - the grouptype - the interface to proxyCopyright © 2020. All rights reserved.