Ejemplo n.º 1
0
 /** the CSS condition [attribute|=value] */
 public void addAttributeMatchesFirstPartCondition(
     String namespaceURI, String name, String value) {
   _specificityC++;
   addCondition(Condition.createAttributeMatchesFirstPartCondition(namespaceURI, name, value));
 }
Ejemplo n.º 2
0
 /** the CSS condition [attribute] */
 public void addAttributeExistsCondition(String namespaceURI, String name) {
   _specificityC++;
   addCondition(Condition.createAttributeExistsCondition(namespaceURI, name));
 }
Ejemplo n.º 3
0
 /** the CSS condition [attribute*=value] */
 public void addAttributeSubstringCondition(String namespaceURI, String name, String value) {
   _specificityC++;
   addCondition(Condition.createAttributeSubstringCondition(namespaceURI, name, value));
 }
Ejemplo n.º 4
0
 /** the CSS condition #ID */
 public void addIDCondition(String id) {
   _specificityB++;
   addCondition(Condition.createIDCondition(id));
 }
Ejemplo n.º 5
0
 /** the CSS condition .class */
 public void addClassCondition(String className) {
   _specificityC++;
   addCondition(Condition.createClassCondition(className));
   _text = _name + Token.TK_PERIOD.getExternalName() + className;
 }
Ejemplo n.º 6
0
 /** the CSS condition :lang(Xx) */
 public void addLangCondition(String lang) {
   _specificityC++;
   addCondition(Condition.createLangCondition(lang));
 }
Ejemplo n.º 7
0
 /** the CSS condition that element has pseudo-class :odd */
 public void addOddChildCondition() {
   _specificityC++;
   addCondition(Condition.createOddChildCondition());
 }
Ejemplo n.º 8
0
 /** the CSS condition that element has pseudo-class :first-child */
 public void addFirstChildCondition() {
   _specificityC++;
   addCondition(Condition.createFirstChildCondition());
 }
Ejemplo n.º 9
0
 /** the CSS condition that element has pseudo-class :link */
 public void addLinkCondition() {
   _specificityC++;
   addCondition(Condition.createLinkCondition());
 }
Ejemplo n.º 10
0
 /** for unsupported or invalid CSS */
 public void addUnsupportedCondition() {
   addCondition(Condition.createUnsupportedCondition());
 }