|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 IMarkupSettingsIMarkupSettings.getAutomaticLinking()public boolean getCompressWhitespace()
getCompressWhitespace in interface IMarkupSettingsIMarkupSettings.getCompressWhitespace()public String getDefaultAfterDisabledLink()
getDefaultAfterDisabledLink in interface IMarkupSettingsIMarkupSettings.getDefaultAfterDisabledLink()public String getDefaultBeforeDisabledLink()
getDefaultBeforeDisabledLink in interface IMarkupSettingsIMarkupSettings.getDefaultBeforeDisabledLink()public String getDefaultMarkupEncoding()
getDefaultMarkupEncoding in interface IMarkupSettingsIMarkupSettings.getDefaultMarkupEncoding()public MarkupFactory getMarkupFactory()
IMarkupSettings
getMarkupFactory in interface IMarkupSettingsIMarkupSettings.getMarkupFactory()public boolean getStripComments()
getStripComments in interface IMarkupSettingsIMarkupSettings.getStripComments()public boolean getStripWicketTags()
IMarkupSettings
getStripWicketTags in interface IMarkupSettingsIMarkupSettings.getStripWicketTags()public boolean getThrowExceptionOnMissingXmlDeclaration()
getThrowExceptionOnMissingXmlDeclaration in interface IMarkupSettingsIMarkupSettings.getThrowExceptionOnMissingXmlDeclaration()public void setAutomaticLinking(boolean automaticLinking)
IMarkupSettings
setAutomaticLinking in interface IMarkupSettingsautomaticLinking - The automaticLinking to set.IMarkupSettings.setAutomaticLinking(boolean)public void setCompressWhitespace(boolean compressWhitespace)
IMarkupSettingsCompression 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 IMarkupSettingscompressWhitespace - The compressWhitespace to set.IMarkupSettings.setCompressWhitespace(boolean)public void setDefaultAfterDisabledLink(String defaultAfterDisabledLink)
setDefaultAfterDisabledLink in interface IMarkupSettingsdefaultAfterDisabledLink - The defaultAfterDisabledLink to set.IMarkupSettings.setDefaultAfterDisabledLink(java.lang.String)public void setDefaultBeforeDisabledLink(String defaultBeforeDisabledLink)
setDefaultBeforeDisabledLink in interface IMarkupSettingsdefaultBeforeDisabledLink - The defaultBeforeDisabledLink to set.IMarkupSettings.setDefaultBeforeDisabledLink(java.lang.String)public void setDefaultMarkupEncoding(String encoding)
IMarkupSettings
setDefaultMarkupEncoding in interface IMarkupSettingsIMarkupSettings.setDefaultMarkupEncoding(java.lang.String)public void setMarkupFactory(MarkupFactory factory)
IMarkupSettings
setMarkupFactory in interface IMarkupSettingsIMarkupSettings.setMarkupFactory(org.apache.wicket.markup.MarkupFactory)public void setStripComments(boolean stripComments)
IMarkupSettings
setStripComments in interface IMarkupSettingsstripComments - True to strip markup comments from rendered pagesIMarkupSettings.setStripComments(boolean)public void setStripWicketTags(boolean stripWicketTags)
IMarkupSettings
setStripWicketTags in interface IMarkupSettingsstripWicketTags - whether to remove wicket tags from the outputIMarkupSettings.setStripWicketTags(boolean)public void setThrowExceptionOnMissingXmlDeclaration(boolean throwException)
IMarkupSettings
setThrowExceptionOnMissingXmlDeclaration in interface IMarkupSettingsIMarkupSettings.setThrowExceptionOnMissingXmlDeclaration(boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||