public final class Rule extends Object
Constructor and Description |
---|
Rule(List<Selector> selectors,
List<Declaration> declarations) |
Modifier and Type | Method and Description |
---|---|
ObservableList<Declaration> |
getDeclarations()
This method is to support tooling that may want to add declarations to
or remove declarations from a Rule.
|
StyleOrigin |
getOrigin() |
ObservableList<Selector> |
getSelectors()
This method is to support tooling that may want to add selectors to
or remove selectors from a Rule.
|
Stylesheet |
getStylesheet() |
List<Declaration> |
getUnobservedDeclarationList()
The list returned from this method should be treated as unmodifiable.
|
List<Selector> |
getUnobservedSelectorList()
The list returned from this method should be treated as unmodifiable.
|
String |
toString()
Converts this object to a string.
|
public Rule(List<Selector> selectors, List<Declaration> declarations)
public List<Selector> getUnobservedSelectorList()
getSelectors()
which tracks adds and removes.public List<Declaration> getUnobservedDeclarationList()
getDeclarations()
which tracks adds and removes.public final ObservableList<Declaration> getDeclarations()
getUnobservedDeclarationList()
, but the returned list
must be treated as unmodifiable.public final ObservableList<Selector> getSelectors()
getUnobservedSelectorList()
, but the returned list
must be treated as unmodifiable.public Stylesheet getStylesheet()
public StyleOrigin getOrigin()
Copyright © 2020. All rights reserved.