|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.settings.def.MarkupSettings
public class MarkupSettings
Constructor Summary | |
---|---|
MarkupSettings()
Construct |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MarkupSettings()
Method Detail |
---|
public boolean getAutomaticLinking()
IMarkupSettings
getAutomaticLinking
in interface IMarkupSettings
IMarkupSettings.getAutomaticLinking()
public boolean getCompressWhitespace()
getCompressWhitespace
in interface IMarkupSettings
IMarkupSettings.getCompressWhitespace()
public String getDefaultAfterDisabledLink()
getDefaultAfterDisabledLink
in interface IMarkupSettings
IMarkupSettings.getDefaultAfterDisabledLink()
public String getDefaultBeforeDisabledLink()
getDefaultBeforeDisabledLink
in interface IMarkupSettings
IMarkupSettings.getDefaultBeforeDisabledLink()
public String getDefaultMarkupEncoding()
getDefaultMarkupEncoding
in interface IMarkupSettings
IMarkupSettings.getDefaultMarkupEncoding()
public MarkupFactory getMarkupFactory()
IMarkupSettings
getMarkupFactory
in interface IMarkupSettings
IMarkupSettings.getMarkupFactory()
public boolean getStripComments()
getStripComments
in interface IMarkupSettings
IMarkupSettings.getStripComments()
public boolean getStripWicketTags()
IMarkupSettings
getStripWicketTags
in interface IMarkupSettings
IMarkupSettings.getStripWicketTags()
public boolean getThrowExceptionOnMissingXmlDeclaration()
getThrowExceptionOnMissingXmlDeclaration
in interface IMarkupSettings
IMarkupSettings.getThrowExceptionOnMissingXmlDeclaration()
public void setAutomaticLinking(boolean automaticLinking)
IMarkupSettings
setAutomaticLinking
in interface IMarkupSettings
automaticLinking
- The automaticLinking to set.IMarkupSettings.setAutomaticLinking(boolean)
public void setCompressWhitespace(boolean compressWhitespace)
IMarkupSettings
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.
setCompressWhitespace
in interface IMarkupSettings
compressWhitespace
- The compressWhitespace to set.IMarkupSettings.setCompressWhitespace(boolean)
public void setDefaultAfterDisabledLink(String defaultAfterDisabledLink)
setDefaultAfterDisabledLink
in interface IMarkupSettings
defaultAfterDisabledLink
- The defaultAfterDisabledLink to set.IMarkupSettings.setDefaultAfterDisabledLink(java.lang.String)
public void setDefaultBeforeDisabledLink(String defaultBeforeDisabledLink)
setDefaultBeforeDisabledLink
in interface IMarkupSettings
defaultBeforeDisabledLink
- The defaultBeforeDisabledLink to set.IMarkupSettings.setDefaultBeforeDisabledLink(java.lang.String)
public void setDefaultMarkupEncoding(String encoding)
IMarkupSettings
setDefaultMarkupEncoding
in interface IMarkupSettings
IMarkupSettings.setDefaultMarkupEncoding(java.lang.String)
public void setMarkupFactory(MarkupFactory factory)
IMarkupSettings
setMarkupFactory
in interface IMarkupSettings
IMarkupSettings.setMarkupFactory(org.apache.wicket.markup.MarkupFactory)
public void setStripComments(boolean stripComments)
IMarkupSettings
setStripComments
in interface IMarkupSettings
stripComments
- True to strip markup comments from rendered pagesIMarkupSettings.setStripComments(boolean)
public void setStripWicketTags(boolean stripWicketTags)
IMarkupSettings
setStripWicketTags
in interface IMarkupSettings
stripWicketTags
- whether to remove wicket tags from the outputIMarkupSettings.setStripWicketTags(boolean)
public void setThrowExceptionOnMissingXmlDeclaration(boolean throwException)
IMarkupSettings
setThrowExceptionOnMissingXmlDeclaration
in interface IMarkupSettings
IMarkupSettings.setThrowExceptionOnMissingXmlDeclaration(boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |