当前位置: 首页>>代码示例>>Java>>正文


Java DocumentHandler类代码示例

本文整理汇总了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);
	}
}
 
开发者ID:oswetto,项目名称:LoboEvolution,代码行数:9,代码来源:AbstractSACParser.java

示例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);
	}
}
 
开发者ID:oswetto,项目名称:LoboEvolution,代码行数:10,代码来源:AbstractSACParser.java

示例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);
	}
}
 
开发者ID:oswetto,项目名称:LoboEvolution,代码行数:9,代码来源:AbstractSACParser.java

示例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);
	}
}
 
开发者ID:oswetto,项目名称:LoboEvolution,代码行数:9,代码来源:AbstractSACParser.java

示例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();
	}
}
 
开发者ID:oswetto,项目名称:LoboEvolution,代码行数:9,代码来源:AbstractSACParser.java

示例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);
	}
}
 
开发者ID:oswetto,项目名称:LoboEvolution,代码行数:9,代码来源:AbstractSACParser.java

示例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);
	}
}
 
开发者ID:oswetto,项目名称:LoboEvolution,代码行数:10,代码来源:AbstractSACParser.java

示例8: getDocumentHandler

import org.w3c.css.sac.DocumentHandler; //导入依赖的package包/类
protected DocumentHandler getDocumentHandler() {
	if (documentHandler_ == null) {
		setDocumentHandler(new HandlerBase());
	}
	return documentHandler_;
}
 
开发者ID:oswetto,项目名称:LoboEvolution,代码行数:7,代码来源:AbstractSACParser.java

示例9: setDocumentHandler

import org.w3c.css.sac.DocumentHandler; //导入依赖的package包/类
@Override
public void setDocumentHandler(final DocumentHandler handler) {
	documentHandler_ = handler;
}
 
开发者ID:oswetto,项目名称:LoboEvolution,代码行数:5,代码来源:AbstractSACParser.java

示例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);
	}
}
 
开发者ID:oswetto,项目名称:LoboEvolution,代码行数:7,代码来源:AbstractSACParser.java

示例11: setDocumentHandler

import org.w3c.css.sac.DocumentHandler; //导入依赖的package包/类
/**
 * Set the document handler for this parser
 */
public void setDocumentHandler(DocumentHandler handler) {
    this.documentHandler = handler;
}
 
开发者ID:dmazinanian,项目名称:css-analyser,代码行数:7,代码来源:Parser.java

示例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);
}
 
开发者ID:git-moss,项目名称:Push2Display,代码行数:8,代码来源:ExtendedParserWrapper.java

示例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;
}
 
开发者ID:git-moss,项目名称:Push2Display,代码行数:8,代码来源:Parser.java


注:本文中的org.w3c.css.sac.DocumentHandler类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。