public class RuleMediaImpl extends AbstractRuleBlock<RuleSet> implements RuleMedia
| Modifier and Type | Field and Description |
|---|---|
protected List<MediaQuery> |
media
List of medias
|
stylesheethash, listmodCount| Modifier | Constructor and Description |
|---|---|
protected |
RuleMediaImpl()
Creates an empty object to be filled by interface methods
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<MediaQuery> |
getMediaQueries()
Returns list of all media associated with this rule
|
int |
hashCode() |
RuleMedia |
setMediaQueries(List<MediaQuery> medias)
Sets media associated with rules
|
void |
setStyleSheet(StyleSheet stylesheet)
Sets the owner style sheet for this rule.
|
String |
toString() |
String |
toString(int depth)
Pretty output of CSS definition using indentation
|
getStyleSheetadd, add, asList, get, iterator, remove, replaceAll, set, size, unlockaddAll, clear, indexOf, lastIndexOf, listIterator, listIterator, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetStyleSheetasList, replaceAll, unlockadd, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streamprotected List<MediaQuery> media
protected RuleMediaImpl()
public List<MediaQuery> getMediaQueries()
RuleMediagetMediaQueries in interface RuleMediapublic RuleMedia setMediaQueries(List<MediaQuery> medias)
RuleMediasetMediaQueries in interface RuleMediamedias - Media associatedpublic void setStyleSheet(StyleSheet stylesheet)
RuleBlocksetStyleSheet in interface RuleBlock<RuleSet>setStyleSheet in class AbstractRuleBlock<RuleSet>stylesheet - The stylesheet where this rule is contained.public String toString()
toString in class AbstractCollection<RuleSet>public String toString(int depth)
PrettyOutputtoString in interface PrettyOutputdepth - Number of times output is indentedOutputUtilpublic int hashCode()
hashCode in interface Collection<RuleSet>hashCode in interface List<RuleSet>hashCode in class AbstractRuleBlock<RuleSet>public boolean equals(Object obj)
equals in interface Collection<RuleSet>equals in interface List<RuleSet>equals in class AbstractRuleBlock<RuleSet>Copyright © 2019. All rights reserved.