public class DebugSettings extends Object
componentUseCheck (defaults to true in development mode) - causes the framework to do a check after rendering each page to ensure that each component was used in rendering the markup. If components are found that are not referenced in the markup, an appropriate error will be displayed
Constructor and Description |
---|
DebugSettings() |
Modifier and Type | Method and Description |
---|---|
String |
getComponentPathAttributeName() |
boolean |
getComponentUseCheck() |
boolean |
isAjaxDebugModeEnabled()
Returns status of ajax debug mode.
|
boolean |
isDevelopmentUtilitiesEnabled()
Are all of the panels and pages, etc, from wicket-devutils package enabled?
|
boolean |
isLinePreciseReportingOnAddComponentEnabled()
Returns status of line precise error reporting for added components that are not present in
the markup: it points to the line where the component was added to the hierarchy in your Java
classes.
|
boolean |
isLinePreciseReportingOnNewComponentEnabled()
Returns status of line precise error reporting for new components that are not present in the
markup: it points to the line where the component was created in your Java classes.
|
boolean |
isOutputMarkupContainerClassName()
Returns whether the output of markup container's should be wrapped by comments containing the
container's class name.
|
DebugSettings |
setAjaxDebugModeEnabled(boolean enable)
Enables or disables ajax debug mode.
|
DebugSettings |
setComponentPathAttributeName(String componentPathAttributeName)
If the parameter value is non-empty then Wicket will use it as the name of an attribute of the
component tag to print the
Component 's path. |
DebugSettings |
setComponentUseCheck(boolean componentUseCheck)
Sets componentUseCheck debug settings
|
DebugSettings |
setDevelopmentUtilitiesEnabled(boolean enable)
Enables all of the panels and pages, etc, from wicket-devutils package.
|
DebugSettings |
setLinePreciseReportingOnAddComponentEnabled(boolean enable)
Enables line precise error reporting for added components that are not present in the markup:
it points to the line where the component was added to the hierarchy in your Java classes.
|
DebugSettings |
setLinePreciseReportingOnNewComponentEnabled(boolean enable)
Enables line precise error reporting for new components that are not present in the markup:
it points to the line where the component was created in your Java classes.
|
DebugSettings |
setOutputMarkupContainerClassName(boolean enable)
Enables wrapping output of markup container in html comments that contain markup container's
class name.
|
public boolean getComponentUseCheck()
public boolean isAjaxDebugModeEnabled()
public boolean isLinePreciseReportingOnAddComponentEnabled()
public boolean isLinePreciseReportingOnNewComponentEnabled()
public boolean isOutputMarkupContainerClassName()
public DebugSettings setAjaxDebugModeEnabled(boolean enable)
enable
- this
object for chainingpublic DebugSettings setComponentUseCheck(boolean componentUseCheck)
componentUseCheck
- this
object for chainingpublic DebugSettings setLinePreciseReportingOnAddComponentEnabled(boolean enable)
enable
- this
object for chainingpublic DebugSettings setLinePreciseReportingOnNewComponentEnabled(boolean enable)
enable
- this
object for chainingpublic DebugSettings setOutputMarkupContainerClassName(boolean enable)
enable
- this
object for chainingpublic DebugSettings setComponentPathAttributeName(String componentPathAttributeName)
Component
's path.
This can be useful for debugging and automating tests.
For example: if componentPathAttributeName
is 'data-wicket-path' then Wicket will add
an attribute to the ComponentTag
for each component with name
'data-wicket-path' and as a value the component's
page relative path
.componentPathAttributeName
- The name of the attribute for the ComponentTag
.
If null
or empty then the attribute won't be renderedthis
object for chainingpublic String getComponentPathAttributeName()
ComponentTag
.
If null
or empty then the attribute won't be renderedsetComponentPathAttributeName(String)
public DebugSettings setDevelopmentUtilitiesEnabled(boolean enable)
enable
- this
object for chainingpublic boolean isDevelopmentUtilitiesEnabled()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.