public class RuleMediaImpl extends AbstractRuleBlock<RuleSet> implements RuleMedia
RuleBlock.Priority| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
medias
List of medias
|
priority, stylesheethash, listmodCount| Modifier | Constructor and Description |
|---|---|
protected |
RuleMediaImpl(RuleBlock.Priority priority)
Creates an empty object to be filled by interface methods
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<String> |
getMedia()
Returns list of all media associated with this rule
|
int |
hashCode() |
RuleMedia |
setMedia(List<String> 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
|
compareTo, getPriority, getStyleSheet, setPriorityadd, 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, waitgetPriority, getStyleSheet, setPriorityasList, replaceAll, unlockadd, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArraycompareToprotected RuleMediaImpl(RuleBlock.Priority priority)
priority - Priority markpublic List<String> getMedia()
RuleMediapublic RuleMedia setMedia(List<String> medias)
RuleMediapublic 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 © 2014. All rights reserved.