/** * Returns whether the given CSS property is available on this element. */ public boolean hasProperty(String pn) { AbstractStylableDocument doc = (AbstractStylableDocument) ownerDocument; CSSEngine eng = doc.getCSSEngine(); return eng.getPropertyIndex(pn) != -1 || eng.getShorthandIndex(pn) != -1; }
/** * Returns whether the given CSS property is available on this element. */ public boolean hasProperty(String pn) { AbstractStylableDocument doc = (AbstractStylableDocument) ownerDocument; CSSEngine eng = doc.getCSSEngine(); return eng.getPropertyIndex(pn) != -1 || eng.getShorthandIndex(pn) != -1; }
/** * Returns whether the given CSS property is available on this element. */ public boolean hasProperty(String pn) { AbstractStylableDocument doc = (AbstractStylableDocument) ownerDocument; CSSEngine eng = doc.getCSSEngine(); return eng.getPropertyIndex(pn) != -1 || eng.getShorthandIndex(pn) != -1; }
public void property(String pname, LexicalUnit lu, boolean important) { int idx = getPropertyIndex(pname); if (idx != -1) { ValueManager vm = valueManagers[idx]; Value v = vm.createValue(lu, CSSEngine.this); dst.setMainProperty(pname, v, important); return; } idx = getShorthandIndex(pname); if (idx == -1) return; // Unknown property... // Shorthand value shorthandManagers[idx].setValues (CSSEngine.this, this, lu, important); } };
public void property(String pname, LexicalUnit lu, boolean important) { int idx = getPropertyIndex(pname); if (idx != -1) { ValueManager vm = valueManagers[idx]; Value v = vm.createValue(lu, CSSEngine.this); dst.setMainProperty(pname, v, important); return; } idx = getShorthandIndex(pname); if (idx == -1) return; // Unknown property... // Shorthand value shorthandManagers[idx].setValues (CSSEngine.this, this, lu, important); } };
public void property(String pname, LexicalUnit lu, boolean important) { int idx = getPropertyIndex(pname); if (idx != -1) { ValueManager vm = valueManagers[idx]; Value v = vm.createValue(lu, CSSEngine.this); dst.setMainProperty(pname, v, important); return; } idx = getShorthandIndex(pname); if (idx == -1) return; // Unknown property... // Shorthand value shorthandManagers[idx].setValues (CSSEngine.this, this, lu, important); } };
public void property(String pname, LexicalUnit lu, boolean important) { int idx = getPropertyIndex(pname); if (idx != -1) { ValueManager vm = valueManagers[idx]; Value v = vm.createValue(lu, CSSEngine.this); putAuthorProperty(result, idx, v, important, StyleMap.NON_CSS_ORIGIN); return; } idx = getShorthandIndex(pname); if (idx == -1) return; // Unknown property... // Shorthand value shorthandManagers[idx].setValues (CSSEngine.this, this, lu, important); } };
public void property(String pname, LexicalUnit lu, boolean important) { int idx = getPropertyIndex(pname); if (idx != -1) { ValueManager vm = valueManagers[idx]; Value v = vm.createValue(lu, CSSEngine.this); putAuthorProperty(result, idx, v, important, StyleMap.NON_CSS_ORIGIN); return; } idx = getShorthandIndex(pname); if (idx == -1) return; // Unknown property... // Shorthand value shorthandManagers[idx].setValues (CSSEngine.this, this, lu, important); } };
public void property(String pname, LexicalUnit lu, boolean important) { int idx = getPropertyIndex(pname); if (idx != -1) { ValueManager vm = valueManagers[idx]; Value v = vm.createValue(lu, CSSEngine.this); putAuthorProperty(result, idx, v, important, StyleMap.NON_CSS_ORIGIN); return; } idx = getShorthandIndex(pname); if (idx == -1) return; // Unknown property... // Shorthand value shorthandManagers[idx].setValues (CSSEngine.this, this, lu, important); } };
/** * <b>SAC</b>: Implements {@link * DocumentHandler#property(String,LexicalUnit,boolean)}. */ public void property(String name, LexicalUnit value, boolean important) throws CSSException { int i = getPropertyIndex(name); if (i == -1) { i = getShorthandIndex(name); if (i == -1) { // Unknown property return; } shorthandManagers[i].setValues(CSSEngine.this, this, value, important); } else { Value v = valueManagers[i].createValue(value, CSSEngine.this); putAuthorProperty(styleMap, i, v, important, StyleMap.INLINE_AUTHOR_ORIGIN); } } }
/** * <b>SAC</b>: Implements {@link * DocumentHandler#property(String,LexicalUnit,boolean)}. */ public void property(String name, LexicalUnit value, boolean important) throws CSSException { int i = getPropertyIndex(name); if (i == -1) { i = getShorthandIndex(name); if (i == -1) { // Unknown property return; } shorthandManagers[i].setValues(CSSEngine.this, this, value, important); } else { Value v = valueManagers[i].createValue(value, CSSEngine.this); styleDeclaration.append(v, i, important); } } }
/** * <b>SAC</b>: Implements {@link * DocumentHandler#property(String,LexicalUnit,boolean)}. */ public void property(String name, LexicalUnit value, boolean important) throws CSSException { int i = getPropertyIndex(name); if (i == -1) { i = getShorthandIndex(name); if (i == -1) { // Unknown property return; } shorthandManagers[i].setValues(CSSEngine.this, this, value, important); } else { Value v = valueManagers[i].createValue(value, CSSEngine.this); styleDeclaration.append(v, i, important); } } }
/** * <b>SAC</b>: Implements {@link * DocumentHandler#property(String,LexicalUnit,boolean)}. */ public void property(String name, LexicalUnit value, boolean important) throws CSSException { int i = getPropertyIndex(name); if (i == -1) { i = getShorthandIndex(name); if (i == -1) { // Unknown property return; } shorthandManagers[i].setValues(CSSEngine.this, this, value, important); } else { Value v = valueManagers[i].createValue(value, CSSEngine.this); putAuthorProperty(styleMap, i, v, important, StyleMap.INLINE_AUTHOR_ORIGIN); } } }
/** * <b>SAC</b>: Implements {@link * DocumentHandler#property(String,LexicalUnit,boolean)}. */ public void property(String name, LexicalUnit value, boolean important) throws CSSException { int i = getPropertyIndex(name); if (i == -1) { i = getShorthandIndex(name); if (i == -1) { // Unknown property return; } shorthandManagers[i].setValues(CSSEngine.this, this, value, important); } else { Value v = valueManagers[i].createValue(value, CSSEngine.this); styleDeclaration.append(v, i, important); } } }
/** * Returns whether the given CSS property is additive. */ public boolean isPropertyAdditive(String pn) { AbstractStylableDocument doc = (AbstractStylableDocument) ownerDocument; CSSEngine eng = doc.getCSSEngine(); int idx = eng.getPropertyIndex(pn); if (idx != -1) { ValueManager[] vms = eng.getValueManagers(); return vms[idx].isAdditiveProperty(); } idx = eng.getShorthandIndex(pn); if (idx != -1) { ShorthandManager[] sms = eng.getShorthandManagers(); return sms[idx].isAdditiveProperty(); } return false; }
/** * Returns whether the given CSS property is additive. */ public boolean isPropertyAdditive(String pn) { AbstractStylableDocument doc = (AbstractStylableDocument) ownerDocument; CSSEngine eng = doc.getCSSEngine(); int idx = eng.getPropertyIndex(pn); if (idx != -1) { ValueManager[] vms = eng.getValueManagers(); return vms[idx].isAdditiveProperty(); } idx = eng.getShorthandIndex(pn); if (idx != -1) { ShorthandManager[] sms = eng.getShorthandManagers(); return sms[idx].isAdditiveProperty(); } return false; }
/** * Returns whether the given CSS property is animatable. */ public boolean isPropertyAnimatable(String pn) { AbstractStylableDocument doc = (AbstractStylableDocument) ownerDocument; CSSEngine eng = doc.getCSSEngine(); int idx = eng.getPropertyIndex(pn); if (idx != -1) { ValueManager[] vms = eng.getValueManagers(); return vms[idx].isAnimatableProperty(); } idx = eng.getShorthandIndex(pn); if (idx != -1) { ShorthandManager[] sms = eng.getShorthandManagers(); return sms[idx].isAnimatableProperty(); } return false; }
/** * Returns whether the given CSS property is animatable. */ public boolean isPropertyAnimatable(String pn) { AbstractStylableDocument doc = (AbstractStylableDocument) ownerDocument; CSSEngine eng = doc.getCSSEngine(); int idx = eng.getPropertyIndex(pn); if (idx != -1) { ValueManager[] vms = eng.getValueManagers(); return vms[idx].isAnimatableProperty(); } idx = eng.getShorthandIndex(pn); if (idx != -1) { ShorthandManager[] sms = eng.getShorthandManagers(); return sms[idx].isAnimatableProperty(); } return false; }
/** * Returns whether the given CSS property is additive. */ public boolean isPropertyAdditive(String pn) { AbstractStylableDocument doc = (AbstractStylableDocument) ownerDocument; CSSEngine eng = doc.getCSSEngine(); int idx = eng.getPropertyIndex(pn); if (idx != -1) { ValueManager[] vms = eng.getValueManagers(); return vms[idx].isAdditiveProperty(); } idx = eng.getShorthandIndex(pn); if (idx != -1) { ShorthandManager[] sms = eng.getShorthandManagers(); return sms[idx].isAdditiveProperty(); } return false; }
/** * Returns whether the given CSS property is animatable. */ public boolean isPropertyAnimatable(String pn) { AbstractStylableDocument doc = (AbstractStylableDocument) ownerDocument; CSSEngine eng = doc.getCSSEngine(); int idx = eng.getPropertyIndex(pn); if (idx != -1) { ValueManager[] vms = eng.getValueManagers(); return vms[idx].isAnimatableProperty(); } idx = eng.getShorthandIndex(pn); if (idx != -1) { ShorthandManager[] sms = eng.getShorthandManagers(); return sms[idx].isAnimatableProperty(); } return false; }