本文整理汇总了Java中org.w3c.css.sac.DocumentHandler类的典型用法代码示例。如果您正苦于以下问题:Java DocumentHandler类的具体用法?Java DocumentHandler怎么用?Java DocumentHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DocumentHandler类属于org.w3c.css.sac包,在下文中一共展示了DocumentHandler类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: handleIgnorableAtRule
import org.w3c.css.sac.DocumentHandler; //导入依赖的package包/类
protected void handleIgnorableAtRule(final String s, final Locator locator) {
final DocumentHandler documentHandler = getDocumentHandler();
if (documentHandler instanceof DocumentHandlerExt) {
((DocumentHandlerExt) documentHandler).ignorableAtRule(s, locator);
} else {
documentHandler.ignorableAtRule(s);
}
}
示例2: handleImportStyle
import org.w3c.css.sac.DocumentHandler; //导入依赖的package包/类
protected void handleImportStyle(final String uri, final SACMediaList media, final String defaultNamespaceURI,
final Locator locator) {
final DocumentHandler documentHandler = getDocumentHandler();
if (documentHandler instanceof DocumentHandlerExt) {
((DocumentHandlerExt) documentHandler).importStyle(uri, media, defaultNamespaceURI, locator);
} else {
documentHandler.importStyle(uri, media, defaultNamespaceURI);
}
}
示例3: handleStartMedia
import org.w3c.css.sac.DocumentHandler; //导入依赖的package包/类
protected void handleStartMedia(final SACMediaList media, final Locator locator) {
final DocumentHandler documentHandler = getDocumentHandler();
if (documentHandler instanceof DocumentHandlerExt) {
((DocumentHandlerExt) documentHandler).startMedia(media, locator);
} else {
documentHandler.startMedia(media);
}
}
示例4: handleStartPage
import org.w3c.css.sac.DocumentHandler; //导入依赖的package包/类
protected void handleStartPage(final String name, final String pseudoPage, final Locator locator) {
final DocumentHandler documentHandler = getDocumentHandler();
if (documentHandler instanceof DocumentHandlerExt) {
((DocumentHandlerExt) documentHandler).startPage(name, pseudoPage, locator);
} else {
documentHandler.startPage(name, pseudoPage);
}
}
示例5: handleStartFontFace
import org.w3c.css.sac.DocumentHandler; //导入依赖的package包/类
protected void handleStartFontFace(final Locator locator) {
final DocumentHandler documentHandler = getDocumentHandler();
if (documentHandler instanceof DocumentHandlerExt) {
((DocumentHandlerExt) documentHandler).startFontFace(locator);
} else {
documentHandler.startFontFace();
}
}
示例6: handleStartSelector
import org.w3c.css.sac.DocumentHandler; //导入依赖的package包/类
protected void handleStartSelector(final SelectorList selectors, final Locator locator) {
final DocumentHandler documentHandler = getDocumentHandler();
if (documentHandler instanceof DocumentHandlerExt) {
((DocumentHandlerExt) documentHandler).startSelector(selectors, locator);
} else {
documentHandler.startSelector(selectors);
}
}
示例7: handleProperty
import org.w3c.css.sac.DocumentHandler; //导入依赖的package包/类
protected void handleProperty(final String name, final LexicalUnit value, final boolean important,
final Locator locator) {
final DocumentHandler documentHandler = getDocumentHandler();
if (documentHandler instanceof DocumentHandlerExt) {
((DocumentHandlerExt) documentHandler).property(name, value, important, locator);
} else {
documentHandler.property(name, value, important);
}
}
示例8: getDocumentHandler
import org.w3c.css.sac.DocumentHandler; //导入依赖的package包/类
protected DocumentHandler getDocumentHandler() {
if (documentHandler_ == null) {
setDocumentHandler(new HandlerBase());
}
return documentHandler_;
}
示例9: setDocumentHandler
import org.w3c.css.sac.DocumentHandler; //导入依赖的package包/类
@Override
public void setDocumentHandler(final DocumentHandler handler) {
documentHandler_ = handler;
}
示例10: handleCharset
import org.w3c.css.sac.DocumentHandler; //导入依赖的package包/类
protected void handleCharset(final String characterEncoding, final Locator locator) {
final DocumentHandler documentHandler = getDocumentHandler();
if (documentHandler instanceof DocumentHandlerExt) {
((DocumentHandlerExt) documentHandler).charset(characterEncoding, locator);
}
}
示例11: setDocumentHandler
import org.w3c.css.sac.DocumentHandler; //导入依赖的package包/类
/**
* Set the document handler for this parser
*/
public void setDocumentHandler(DocumentHandler handler) {
this.documentHandler = handler;
}
示例12: setDocumentHandler
import org.w3c.css.sac.DocumentHandler; //导入依赖的package包/类
/**
* <b>SAC</b>: Implements {@link
* org.w3c.css.sac.Parser#setDocumentHandler(DocumentHandler)}.
*/
public void setDocumentHandler(DocumentHandler handler) {
parser.setDocumentHandler(handler);
}
示例13: setDocumentHandler
import org.w3c.css.sac.DocumentHandler; //导入依赖的package包/类
/**
* <b>SAC</b>: Implements {@link
* org.w3c.css.sac.Parser#setDocumentHandler(DocumentHandler)}.
*/
public void setDocumentHandler(DocumentHandler handler) {
documentHandler = handler;
}