/** * <b>SAC</b>: Implements {@link * org.w3c.css.sac.DocumentHandler#startSelector(SelectorList)}. */ public void startSelector(SelectorList selectors) throws CSSException { styleRule = new StyleRule(); styleRule.setSelectorList(selectors); styleDeclaration = new StyleDeclaration(); styleRule.setStyleDeclaration(styleDeclaration); styleSheet.append(styleRule); }
/** * <b>SAC</b>: Implements {@link * org.w3c.css.sac.DocumentHandler#startMedia(SACMediaList)}. */ public void startMedia(SACMediaList media) throws CSSException { MediaRule mr = new MediaRule(); mr.setMediaList(media); mr.setParent(styleSheet); styleSheet.append(mr); styleSheet = mr; }
/** * Tells whether the given property is important. */ public boolean isImportant(String name) { int idx = cssEngine.getPropertyIndex(name); for (int i = 0; i < declaration.size(); i++) { if (idx == declaration.getIndex(i)) { return declaration.getPriority(i); } } return false; }
/** * Returns the current value associated with this object. */ public Value getValue(String name) { int idx = cssEngine.getPropertyIndex(name); for (int i = 0; i < declaration.size(); i++) { if (idx == declaration.getIndex(i)) { return declaration.getValue(i); } } return null; }
/** * Returns the value at the given. */ public String item(int idx) { return cssEngine.getPropertyName(declaration.getIndex(idx)); } }
/** * <b>SAC</b>: Implements {@link * DocumentHandler#endDocument(InputSource)}. */ public void endDocument(InputSource source) { throwUnsupportedEx(); }
/** * Returns the current value associated with this object. */ public Value getValue(String name) { int idx = cssEngine.getPropertyIndex(name); for (int i = 0; i < declaration.size(); i++) { if (idx == declaration.getIndex(i)) { return declaration.getValue(i); } } return null; }
/** * Tells whether the given property is important. */ public boolean isImportant(String name) { int idx = cssEngine.getPropertyIndex(name); for (int i = 0; i < declaration.size(); i++) { if (idx == declaration.getIndex(i)) { return declaration.getPriority(i); } } return false; }
/** * <b>SAC</b>: Implements {@link * org.w3c.css.sac.DocumentHandler#startSelector(SelectorList)}. */ public void startSelector(SelectorList selectors) throws CSSException { styleRule = new StyleRule(); styleRule.setSelectorList(selectors); styleDeclaration = new StyleDeclaration(); styleRule.setStyleDeclaration(styleDeclaration); styleSheet.append(styleRule); }
/** * <b>SAC</b>: Implements {@link * org.w3c.css.sac.DocumentHandler#startMedia(SACMediaList)}. */ public void startMedia(SACMediaList media) throws CSSException { MediaRule mr = new MediaRule(); mr.setMediaList(media); mr.setParent(styleSheet); styleSheet.append(mr); styleSheet = mr; }
/** * Returns the value at the given. */ public String item(int idx) { return cssEngine.getPropertyName(declaration.getIndex(idx)); } }
/** * <b>SAC</b>: Implements {@link * DocumentHandler#startMedia(SACMediaList)}. */ public void startMedia(SACMediaList media) { throwUnsupportedEx(); }
/** * Returns the current value associated with this object. */ public Value getValue(String name) { int idx = cssEngine.getPropertyIndex(name); for (int i = 0; i < declaration.size(); i++) { if (idx == declaration.getIndex(i)) { return declaration.getValue(i); } } return null; }
/** * Tells whether the given property is important. */ public boolean isImportant(String name) { int idx = cssEngine.getPropertyIndex(name); for (int i = 0; i < declaration.size(); i++) { if (idx == declaration.getIndex(i)) { return declaration.getPriority(i); } } return false; }
/** * <b>SAC</b>: Implements {@link * org.w3c.css.sac.DocumentHandler#startSelector(SelectorList)}. */ public void startSelector(SelectorList selectors) throws CSSException { styleRule = new StyleRule(); styleRule.setSelectorList(selectors); styleDeclaration = new StyleDeclaration(); styleRule.setStyleDeclaration(styleDeclaration); styleSheet.append(styleRule); }
/** * <b>SAC</b>: Implements {@link * org.w3c.css.sac.DocumentHandler#startMedia(SACMediaList)}. */ public void startMedia(SACMediaList media) throws CSSException { MediaRule mr = new MediaRule(); mr.setMediaList(media); mr.setParent(styleSheet); styleSheet.append(mr); styleSheet = mr; }
/** * Returns the value at the given. */ public String item(int idx) { return cssEngine.getPropertyName(declaration.getIndex(idx)); } }
/** * <b>SAC</b>: Implements {@link * DocumentHandler#startPage(String,String)}. */ public void startPage(String name, String pseudo_page) { throwUnsupportedEx(); }
/** * <b>SAC</b>: Implements {@link * DocumentHandler#startSelector(SelectorList)}. */ public void startSelector(SelectorList selectors) { throwUnsupportedEx(); }
/** * <b>SAC</b>: Implements {@link * DocumentHandler#property(String,LexicalUnit,boolean)}. */ public void property(String name, LexicalUnit value, boolean important) { throwUnsupportedEx(); }