|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMarkupSettings
Interface for markup related settings.
compressWhitespace (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.
stripComments (defaults to false) - Set to true to strip HTML comments during markup loading
Method Summary | |
---|---|
boolean |
getAutomaticLinking()
If true, automatic link resolution is enabled. |
boolean |
getCompressWhitespace()
|
String |
getDefaultAfterDisabledLink()
|
String |
getDefaultBeforeDisabledLink()
|
String |
getDefaultMarkupEncoding()
|
MarkupFactory |
getMarkupFactory()
Get the markup factory |
boolean |
getStripComments()
|
boolean |
getStripWicketTags()
Gets whether to remove wicket tags from the output. |
boolean |
getThrowExceptionOnMissingXmlDeclaration()
|
void |
setAutomaticLinking(boolean automaticLinking)
Application default for automatic link resolution. |
void |
setCompressWhitespace(boolean compressWhitespace)
Turns on whitespace compression. |
void |
setDefaultAfterDisabledLink(String defaultAfterDisabledLink)
|
void |
setDefaultBeforeDisabledLink(String defaultBeforeDisabledLink)
|
void |
setDefaultMarkupEncoding(String encoding)
Set default encoding for markup files. |
void |
setMarkupFactory(MarkupFactory factory)
Set a new markup factory |
void |
setStripComments(boolean stripComments)
Enables stripping of markup comments denoted in markup by HTML comment tagging. |
void |
setStripWicketTags(boolean stripWicketTags)
Sets whether to remove wicket tags from the output. |
void |
setThrowExceptionOnMissingXmlDeclaration(boolean throwException)
If true, an exception is thrown if the markup file does not contain a xml declaration |
Method Detail |
---|
boolean getAutomaticLinking()
AutoLinkResolver
,
WicketLinkTagHandler
boolean getCompressWhitespace()
setCompressWhitespace(boolean)
String getDefaultAfterDisabledLink()
String getDefaultBeforeDisabledLink()
String getDefaultMarkupEncoding()
boolean getStripComments()
setStripComments(boolean)
boolean getStripWicketTags()
boolean getThrowExceptionOnMissingXmlDeclaration()
void setAutomaticLinking(boolean automaticLinking)
automaticLinking
- The automaticLinking to set.AutoLinkResolver
,
WicketLinkTagHandler
void setCompressWhitespace(boolean compressWhitespace)
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.
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.
compressWhitespace
- The compressWhitespace to set.void setDefaultAfterDisabledLink(String defaultAfterDisabledLink)
defaultAfterDisabledLink
- The defaultAfterDisabledLink to set.void setDefaultBeforeDisabledLink(String defaultBeforeDisabledLink)
defaultBeforeDisabledLink
- The defaultBeforeDisabledLink to set.void setDefaultMarkupEncoding(String encoding)
encoding
- void setStripComments(boolean stripComments)
stripComments
- True to strip markup comments from rendered pagesvoid setStripWicketTags(boolean stripWicketTags)
stripWicketTags
- whether to remove wicket tags from the outputvoid setThrowExceptionOnMissingXmlDeclaration(boolean throwException)
throwException
- MarkupFactory getMarkupFactory()
void setMarkupFactory(MarkupFactory factory)
factory
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |