The Default type of theme is the light theme (which is in fact the absence of any theme), the dark theme is currently the only embedded theme and the custom themes, that can be created by loading a proper css file.
| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final Optional | |
| public static final String | |
| public static final String | |
| private final String | |
| private final Theme. |
| Modifier and Type | Method and Description |
|---|---|
| public static Theme | |
| public static Theme | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public Optional | Returns: called with the stylesheet location if there is an additional stylesheet present and available. The location will be a local URL. Typically it will be a'data:' URL where the CSS is embedded. However for
large themes it can be 'file:'.This method allows callers to obtain the theme's additional stylesheet. |
| public String | Returns: the raw configured CSS location. Guaranteed to be non-null.Provides the name of the CSS, either for a built in theme, or for a raw, configured custom CSS location. |
| public Theme. | |
| public int | |
| public static Theme | |
| public String |
| additionalStylesheet | back to summary |
|---|---|
| private final Optional<StyleSheet> additionalStylesheet | |
| BASE_CSS | back to summary |
|---|---|
| public static final String BASE_CSS | |
| EMBEDDED_DARK_CSS | back to summary |
|---|---|
| public static final String EMBEDDED_DARK_CSS | |
| name | back to summary |
|---|---|
| private final String name | |
| type | back to summary |
|---|---|
| private final Theme. | |
| Theme | back to summary |
|---|---|
| public Theme(String name) | |
| custom | back to summary |
|---|---|
| public static Theme custom(String name) | |
| dark | back to summary |
|---|---|
| public static Theme dark() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAdditionalStylesheet | back to summary |
|---|---|
| public Optional This method allows callers to obtain the theme's additional stylesheet.
| |
| getName | back to summary |
|---|---|
| public String getName() Provides the name of the CSS, either for a built in theme, or for a raw, configured custom CSS location. This should be a file system path, but the raw string is returned even if it is not valid in some way. For this reason, the main use case for this getter is to storing or display the user preference, rather than to read and use the CSS file.
| |
| getType | back to summary |
|---|---|
| public Theme. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| light | back to summary |
|---|---|
| public static Theme light() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Theme. | |
| public static final Theme. | |
| public static final Theme. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Theme. | |
| public static Theme. |
| CUSTOM | back to summary |
|---|---|
| public static final Theme. | |
| DEFAULT | back to summary |
|---|---|
| public static final Theme. | |
| EMBEDDED | back to summary |
|---|---|
| public static final Theme. | |
| Type | back to summary |
|---|---|
| private Type() | |
| valueOf | back to summary |
|---|---|
| public static Theme. | |
| values | back to summary |
|---|---|
| public static Theme. | |