Rules, each of which is applied
to each object in the tree. Typically the selector will examine the object to
determine whether or not it is applicable, and if so it will apply certain
property values to the object.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | BINARY_CSS_VERSION
Version number of binary CSS format. |
| private final List | fontFaces
List of all font faces |
| private StyleOrigin | origin
Specifies the origin of this |
| private final ObservableList | rules
All the rules contained in the stylesheet in the order they are in the file |
| private String[] | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv | Stylesheet()
Constructs a stylesheet with the base URI defaulting to the root path of the application. |
| pack-priv | Stylesheet(String
the base URI for this stylesheet url)Constructs a Stylesheet using the given URL as the base URI. |
| Modifier and Type | Method and Description |
|---|---|
| public static void | convertToBinary(File
the JavaFX compliant css file to convert source, File the file to which the binary formatted data is written destination)Converts the css file referenced by |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether this |
| public List | Returns: a list of font faces used by thisStylesheetReturns the font faces used by this |
| public StyleOrigin | |
| public List | Returns: a list of rules used by thisStylesheetReturns the rules that are defined in this |
| pack-priv final String[] | |
| public String | Returns: AString representation of the URL from which the stylesheet was loaded, or null if
the stylesheet was created from an inline style.The URL from which this |
| public int | |
| pack-priv void | |
| public static Stylesheet | Returns: the loadedStylesheetthe url)URL from which the Stylesheet will be loadedLoads a binary stylesheet from a |
| public static Stylesheet | Returns: the loadedStylesheetthe input stream stream)Loads a binary stylesheet from a stream. |
| private static Stylesheet | |
| pack-priv final void | |
| public void | |
| public String | |
| pack-priv final void |
| BINARY_CSS_VERSION | back to summary |
|---|---|
| pack-priv static final int BINARY_CSS_VERSION Version number of binary CSS format. The value is incremented whenever the format of the binary stream changes. This number does not correlate with JavaFX versions. Version 5: persist @font-face Version 6: converter classes moved to public package | |
| fontFaces | back to summary |
|---|---|
| private final List<FontFace> fontFaces List of all font faces | |
| origin | back to summary |
|---|---|
| private StyleOrigin origin Specifies the origin of this | |
| rules | back to summary |
|---|---|
| private final ObservableList<Rule> rules All the rules contained in the stylesheet in the order they are in the file | |
| stringStore | back to summary |
|---|---|
| private String[] stringStore | |
| url | back to summary |
|---|---|
| private final String url | |
| Stylesheet | back to summary |
|---|---|
| pack-priv Stylesheet() Constructs a stylesheet with the base URI defaulting to the root path of the application. | |
| Stylesheet | back to summary |
|---|---|
| pack-priv Stylesheet(String url) Constructs a Stylesheet using the given URL as the base URI. The parameter may not be null.
| |
| convertToBinary | back to summary |
|---|---|
| public static void convertToBinary(File source, File destination) throws IOException Converts the css file referenced by
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Indicates whether this
| |
| getFontFaces | back to summary |
|---|---|
| public List Returns the font faces used by this | |
| getOrigin | back to summary |
|---|---|
| public StyleOrigin getOrigin() Returns the origin of this
| |
| getRules | back to summary |
|---|---|
| public List Returns the rules that are defined in this | |
| getStringStore | back to summary |
|---|---|
| pack-priv final String[] getStringStore() | |
| getUrl | back to summary |
|---|---|
| public String getUrl() The URL from which this
| |
| 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
| |
| importStylesheet | back to summary |
|---|---|
| pack-priv void importStylesheet(Stylesheet importedStylesheet) | |
| loadBinary | back to summary |
|---|---|
| public static Stylesheet loadBinary(URL url) throws IOException Loads a binary stylesheet from a
| |
| loadBinary | back to summary |
|---|---|
| public static Stylesheet loadBinary(InputStream stream) throws IOException Loads a binary stylesheet from a stream.
| |
| loadBinary | back to summary |
|---|---|
| private static Stylesheet loadBinary(InputStream stream, String uri) throws IOException | |
| readBinary | back to summary |
|---|---|
| pack-priv final void readBinary(int bssVersion, DataInputStream is, String[] strings) throws IOException | |
| setOrigin | back to summary |
|---|---|
| public void setOrigin(StyleOrigin origin) Sets the origin of this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this object.
| |
| writeBinary | back to summary |
|---|---|
| pack-priv final void writeBinary(final DataOutputStream os, final StyleConverter. | |