| 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 String | Returns: the stylesheet location if the stylesheet is 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:'.Overrides org. The location to put into |
| private Optional | |
| pack-priv Path | |
| 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. Embedding the CSS in a If the CSS is over this limit, the plain file URL is used instead: nothing breaks as long as the file exists. Realistic custom themes fit comfortably within 48k (the dark custom theme in the JabRef documentation is 2k; jabref-theme.css is 33k). Note that Base-64 encoding increases the memory footprint of the URL by a third. | |
| path | back to summary |
|---|---|
| private final Path path | |
| url | back to summary |
|---|---|
| private final URL url | |
| StyleSheetFile | back to summary |
|---|---|
| pack-priv StyleSheetFile(String name, URL url) | |
| getDataUrl | back to summary |
|---|---|
| pack-priv static Optional | |
| getSceneStylesheet | back to summary |
|---|---|
| public URL getSceneStylesheet() Implements abstract org.
| |
| getSceneStylesheetLocation | back to summary |
|---|---|
| pack-priv String getSceneStylesheetLocation() Overrides org. Doc from org. The location to put into | |
| getStylesheetURL | back to summary |
|---|---|
| private Optional | |
| getWatchPath | back to summary |
|---|---|
| pack-priv Path getWatchPath() Overrides org.
| |
| 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-
| |