Package com.google.gwt.debug.client
Class DebugInfo
java.lang.Object
com.google.gwt.debug.client.DebugInfo
Provides low-level functionality to support the creation of testing and
diagnostic frameworks.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Returns the element attribute or property where the debug ID is set.static String
Returns the prefix string used for debug ids.static boolean
Returns true if the debug ID should be set as a property instead of an attribute.static boolean
Returns true if debug IDs are enabled such that calls toUIObject.ensureDebugId(String)
will set DOM IDs on theUIObject
and its important sub elements.static void
setDebugIdAttribute
(String attribute, boolean asProperty) Sets the element attribute to assign the debug ID.static void
setDebugIdPrefix
(String prefix) Sets the prefix string used for debug IDs.
-
Field Details
-
DEFAULT_DEBUG_ID_PREFIX
- See Also:
-
-
Constructor Details
-
DebugInfo
public DebugInfo()
-
-
Method Details
-
getDebugIdAttribute
Returns the element attribute or property where the debug ID is set. Defaults to the element id property. UseisDebugIdAsProperty()
to determine if the value is a property or attribute. -
getDebugIdPrefix
Returns the prefix string used for debug ids. Defaults to "gwt-debug-". -
isDebugIdAsProperty
public static boolean isDebugIdAsProperty()Returns true if the debug ID should be set as a property instead of an attribute. -
isDebugIdEnabled
public static boolean isDebugIdEnabled()Returns true if debug IDs are enabled such that calls toUIObject.ensureDebugId(String)
will set DOM IDs on theUIObject
and its important sub elements.- Returns:
- true if debug IDs are enabled, false if disabled.
- See Also:
-
setDebugIdAttribute
Sets the element attribute to assign the debug ID.- Parameters:
attribute
- an element propertyasProperty
- true to set the debug ID as a property instead of an attribute
-
setDebugIdPrefix
Sets the prefix string used for debug IDs.
-