| Modifier and Type | Field and Description |
|---|---|
| private final AtomicReference | |
| private static final Logger | |
| pack-priv static final int | MAX_IN_MEMORY_CSS_LENGTH
A size limit above which Theme will not attempt to keep a data-embedded URL in memory for the CSS. |
| private final Path | |
| private final URL |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Optional | |
| public URL | |
| pack-priv Path | |
| public String | Returns: 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:'.Implements abstract org. This method allows callers to obtain the theme's additional stylesheet. |
| pack-priv void | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| dataUrl | back to summary |
|---|---|
| private final AtomicReference<String> dataUrl | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| MAX_IN_MEMORY_CSS_LENGTH | back to summary |
|---|---|
| pack-priv static final int MAX_IN_MEMORY_CSS_LENGTH A size limit above which Theme will not attempt to keep a data-embedded URL in memory for the CSS. It's tolerable for CSS to exceed this limit; the functional benefit of the encoded CSS is in some edge case error handling. Specifically, having a reference to a data-embedded URL means that the Preview Viewer isn't impacted if the source CSS file is removed while the application is running. If the CSS is over this limit, then the user won't see any functional impact, as long as the file exists. Only if it becomes unavailable, might there be some impact. First, the Preview Viewer when created might not be themed. Second, there is a very small chance of uncaught exceptions. Theme makes a best effort to avoid this: it checks for CSS file existence before passing it to the Preview Viewer for theming. Still, as file existence checks are immediately out of date, it can't be perfectly ruled out. At the time of writing this comment:
| |
| path | back to summary |
|---|---|
| private final Path path | |
| url | back to summary |
|---|---|
| private final URL url | |
| StyleSheetFile | back to summary |
|---|---|
| pack-priv StyleSheetFile(URL url) | |
| getDataUrl | back to summary |
|---|---|
| pack-priv static Optional | |
| getSceneStylesheet | back to summary |
|---|---|
| public URL getSceneStylesheet() Implements abstract org.
| |
| getWatchPath | back to summary |
|---|---|
| pack-priv Path getWatchPath() Overrides org.
| |
| getWebEngineStylesheet | back to summary |
|---|---|
| public String getWebEngineStylesheet() Implements abstract org. This method allows callers to obtain the theme's additional stylesheet. | |
| reload | back to summary |
|---|---|
| pack-priv void reload() Implements abstract org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |