⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imarkupsettings.java

📁 Wicket一个开发Java Web应用程序框架。它使得开发web应用程序变得容易而轻松。 Wicket利用一个POJO data beans组件使得它可以与任何持久层技术相结合。
💻 JAVA
字号:
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements.  See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License.  You may obtain a copy of the License at * *      http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package org.apache.wicket.settings;import org.apache.wicket.markup.IMarkupCache;import org.apache.wicket.markup.IMarkupParserFactory;import org.apache.wicket.markup.MarkupParserFactory;/** * Interface for markup related settings. * <p> * <i>compressWhitespace </i> (defaults to false) - Causes pages to render with redundant whitespace * removed. Whitespace stripping is not HTML or JavaScript savvy and can conceivably break pages, * but should provide significant performance improvements. * <p> * <i>stripComments </i> (defaults to false) - Set to true to strip HTML comments during markup * loading *  * @author Igor Vaynberg (ivaynberg) */public interface IMarkupSettings{	/**	 * If true, automatic link resolution is enabled. Disabled by default.	 * 	 * @see org.apache.wicket.markup.resolver.AutoLinkResolver	 * @see org.apache.wicket.markup.parser.filter.WicketLinkTagHandler	 * @return Returns the automaticLinking.	 */	boolean getAutomaticLinking();	/**	 * @return Returns the compressWhitespace.	 * @see IMarkupSettings#setCompressWhitespace(boolean)	 */	boolean getCompressWhitespace();	/**	 * @return Returns the defaultAfterDisabledLink.	 */	String getDefaultAfterDisabledLink();	/**	 * @return Returns the defaultBeforeDisabledLink.	 */	String getDefaultBeforeDisabledLink();	/**	 * @since 1.1	 * @return Returns default encoding of markup files. If null, the operating system provided	 *         encoding will be used.	 */	String getDefaultMarkupEncoding();	/**	 * @return markup parser factory	 */	IMarkupParserFactory getMarkupParserFactory();	/**	 * The markup cache also loads the markup if not yet available in the cache.	 * 	 * @return markup cache	 */	IMarkupCache getMarkupCache();	/**	 * @return Returns the stripComments.	 * @see IMarkupSettings#setStripComments(boolean)	 */	boolean getStripComments();	/**	 * Gets whether to remove wicket tags from the output.	 * 	 * @return whether to remove wicket tags from the output	 */	boolean getStripWicketTags();	/**	 * 	 * @since 1.1	 * @return if true, xml declaration will be removed.	 */	boolean getStripXmlDeclarationFromOutput();	/**	 * @since 1.3	 * @return if true, an exception is thrown if the markup file does not contain a xml declaration	 */	boolean getThrowExceptionOnMissingXmlDeclaration();	/**	 * Application default for automatic link resolution. Please	 * 	 * @see org.apache.wicket.markup.resolver.AutoLinkResolver and	 * @see org.apache.wicket.markup.parser.filter.WicketLinkTagHandler for more details.	 * 	 * @param automaticLinking	 *            The automaticLinking to set.	 */	void setAutomaticLinking(boolean automaticLinking);	/**	 * Turns on whitespace compression. Multiple occurrences of space/tab characters will be	 * compressed to a single space. Multiple line breaks newline/carriage-return will also be	 * compressed to a single newline.	 * <p>	 * Compression is currently not HTML aware and so it may be possible for whitespace compression	 * to break pages. For this reason, whitespace compression is off by default and you should test	 * your application thoroughly after turning whitespace compression on.	 * <p>	 * Spaces are removed from markup at markup load time and there should be no effect on page	 * rendering speed. In fact, your pages should render faster with whitespace compression	 * enabled.	 * 	 * @param compressWhitespace	 *            The compressWhitespace to set.	 */	void setCompressWhitespace(final boolean compressWhitespace);	/**	 * @param defaultAfterDisabledLink	 *            The defaultAfterDisabledLink to set.	 */	void setDefaultAfterDisabledLink(String defaultAfterDisabledLink);	/**	 * @param defaultBeforeDisabledLink	 *            The defaultBeforeDisabledLink to set.	 */	void setDefaultBeforeDisabledLink(String defaultBeforeDisabledLink);	/**	 * Set default encoding for markup files. If null, the encoding provided by the operating system	 * will be used.	 * 	 * @since 1.1	 * @param encoding	 */	void setDefaultMarkupEncoding(final String encoding);	/**	 * Sets the markup parser factory that will be used to generate parsers for markup. By default	 * {@link MarkupParserFactory} will be used.	 * 	 * @param factory	 *            new factory	 */	void setMarkupParserFactory(IMarkupParserFactory factory);	/**	 * Sets a new markup cache which will also be used to load markup if not yet available in the	 * cache.	 * 	 * @param markupCache	 *            new markup cache	 */	void setMarkupCache(IMarkupCache markupCache);	/**	 * Enables stripping of markup comments denoted in markup by HTML comment tagging.	 * 	 * @param stripComments	 *            True to strip markup comments from rendered pages	 */	void setStripComments(boolean stripComments);	/**	 * Sets whether to remove wicket tags from the output.	 * 	 * @param stripWicketTags	 *            whether to remove wicket tags from the output	 */	void setStripWicketTags(boolean stripWicketTags);	/**	 * 	 * @since 1.1	 * @param strip	 *            if true, xml declaration will be stripped from output	 */	void setStripXmlDeclarationFromOutput(final boolean strip);	/**	 * If true, an exception is thrown if the markup file does not contain a xml declaration	 * 	 * @since 1.3	 * @param throwException	 */	void setThrowExceptionOnMissingXmlDeclaration(final boolean throwException);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -