org.apache.wicket.settings.def
Class DebugSettings

java.lang.Object
  extended by org.apache.wicket.settings.def.DebugSettings
All Implemented Interfaces:
IDebugSettings

public class DebugSettings
extends java.lang.Object
implements IDebugSettings

Author:
Jonathan Locke, Chris Turner, Eelco Hillenius, Juergen Donnerstag, Johan Compagner, Igor Vaynberg (ivaynberg), Martijn Dashorst, James Carman

Constructor Summary
DebugSettings()
           
 
Method Summary
 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 isOutputComponentPath()
           
 boolean isOutputMarkupContainerClassName()
          Returns whether the output of markup container's should be wrapped by comments containing the container's class name.
 void setAjaxDebugModeEnabled(boolean enable)
          Enables or disables ajax debug mode.
 void setComponentUseCheck(boolean componentUseCheck)
          Sets componentUseCheck debug settings
 void setDevelopmentUtilitiesEnabled(boolean enable)
          Enables all of the panels and pages, etc, from wicket-devutils package.
 void 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.
 void 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.
 void setOutputComponentPath(boolean outputComponentPath)
          If set to true wicket will output component path in a wicketpath attribute of the component tag.
 void setOutputMarkupContainerClassName(boolean enable)
          Enables wrapping output of markup container in html comments that contain markup container's class name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugSettings

public DebugSettings()
Method Detail

getComponentUseCheck

public boolean getComponentUseCheck()
Specified by:
getComponentUseCheck in interface IDebugSettings
Returns:
true if componentUseCheck is enabled
See Also:
IDebugSettings.getComponentUseCheck()

isAjaxDebugModeEnabled

public boolean isAjaxDebugModeEnabled()
Description copied from interface: IDebugSettings
Returns status of ajax debug mode. See IDebugSettings for details

Specified by:
isAjaxDebugModeEnabled in interface IDebugSettings
Returns:
true if ajax debug mode is enabled, false otherwise
See Also:
IDebugSettings.isAjaxDebugModeEnabled()

isLinePreciseReportingOnAddComponentEnabled

public boolean isLinePreciseReportingOnAddComponentEnabled()
Description copied from interface: IDebugSettings
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. This can cause a significant decrease in performance, do not use in customer facing applications.

Specified by:
isLinePreciseReportingOnAddComponentEnabled in interface IDebugSettings
Returns:
true if the line precise error reporting is enabled
See Also:
IDebugSettings.isLinePreciseReportingOnAddComponentEnabled()

isLinePreciseReportingOnNewComponentEnabled

public boolean isLinePreciseReportingOnNewComponentEnabled()
Description copied from interface: IDebugSettings
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. This can cause a significant decrease in performance, do not use in customer facing applications.

Specified by:
isLinePreciseReportingOnNewComponentEnabled in interface IDebugSettings
Returns:
true if the line precise error reporting is enabled
See Also:
IDebugSettings.isLinePreciseReportingOnNewComponentEnabled()

isOutputMarkupContainerClassName

public boolean isOutputMarkupContainerClassName()
Description copied from interface: IDebugSettings
Returns whether the output of markup container's should be wrapped by comments containing the container's class name.

Specified by:
isOutputMarkupContainerClassName in interface IDebugSettings
Returns:
true if the markup container's class name should be written to response
See Also:
IDebugSettings.isOutputMarkupContainerClassName()

setAjaxDebugModeEnabled

public void setAjaxDebugModeEnabled(boolean enable)
Description copied from interface: IDebugSettings
Enables or disables ajax debug mode. See IDebugSettings for details

Specified by:
setAjaxDebugModeEnabled in interface IDebugSettings
See Also:
IDebugSettings.setAjaxDebugModeEnabled(boolean)

setComponentUseCheck

public void setComponentUseCheck(boolean componentUseCheck)
Description copied from interface: IDebugSettings
Sets componentUseCheck debug settings

Specified by:
setComponentUseCheck in interface IDebugSettings
See Also:
IDebugSettings.setComponentUseCheck(boolean)

setLinePreciseReportingOnAddComponentEnabled

public void setLinePreciseReportingOnAddComponentEnabled(boolean enable)
Description copied from interface: IDebugSettings
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. This can cause a significant decrease in performance, do not use in customer facing applications.

Specified by:
setLinePreciseReportingOnAddComponentEnabled in interface IDebugSettings

setLinePreciseReportingOnNewComponentEnabled

public void setLinePreciseReportingOnNewComponentEnabled(boolean enable)
Description copied from interface: IDebugSettings
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. This can cause a significant decrease in performance, do not use in customer facing applications.

Specified by:
setLinePreciseReportingOnNewComponentEnabled in interface IDebugSettings
See Also:
IDebugSettings.setLinePreciseReportingOnNewComponentEnabled(boolean)

setOutputMarkupContainerClassName

public void setOutputMarkupContainerClassName(boolean enable)
Description copied from interface: IDebugSettings
Enables wrapping output of markup container in html comments that contain markup container's class name. (Useful for determining which part of page belongs to which markup file).

Specified by:
setOutputMarkupContainerClassName in interface IDebugSettings
See Also:
IDebugSettings.setOutputMarkupContainerClassName(boolean)

isOutputComponentPath

public boolean isOutputComponentPath()
Specified by:
isOutputComponentPath in interface IDebugSettings
Returns:
true if output component path feature is enabled, false otherwise
See Also:
IDebugSettings.isOutputComponentPath()

setOutputComponentPath

public void setOutputComponentPath(boolean outputComponentPath)
Description copied from interface: IDebugSettings
If set to true wicket will output component path in a wicketpath attribute of the component tag. This can be useful for debugging and automating tests.

Specified by:
setOutputComponentPath in interface IDebugSettings
See Also:
IDebugSettings.setOutputComponentPath(boolean)

setDevelopmentUtilitiesEnabled

public void setDevelopmentUtilitiesEnabled(boolean enable)
Description copied from interface: IDebugSettings
Enables all of the panels and pages, etc, from wicket-devutils package.

Specified by:
setDevelopmentUtilitiesEnabled in interface IDebugSettings
See Also:
IDebugSettings.setDevelopmentUtilitiesEnabled(boolean)

isDevelopmentUtilitiesEnabled

public boolean isDevelopmentUtilitiesEnabled()
Description copied from interface: IDebugSettings
Are all of the panels and pages, etc, from wicket-devutils package enabled?

Specified by:
isDevelopmentUtilitiesEnabled in interface IDebugSettings
Returns:
true if all of the panels and pages, etc, from wicket-devutils package are enabled
See Also:
IDebugSettings.isDevelopmentUtilitiesEnabled()


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.