Package com.google.gwt.debug.client
Class DebugInfo
- java.lang.Object
-
- com.google.gwt.debug.client.DebugInfo
-
public class DebugInfo extends java.lang.ObjectProvides low-level functionality to support the creation of testing and diagnostic frameworks.- See Also:
UIObject.ensureDebugId(String)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_DEBUG_ID_PREFIX
-
Constructor Summary
Constructors Constructor Description DebugInfo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetDebugIdAttribute()Returns the element attribute or property where the debug ID is set.static java.lang.StringgetDebugIdPrefix()Returns the prefix string used for debug ids.static booleanisDebugIdAsProperty()Returns true if the debug ID should be set as a property instead of an attribute.static booleanisDebugIdEnabled()Returns true if debug IDs are enabled such that calls toUIObject.ensureDebugId(String)will set DOM IDs on theUIObjectand its important sub elements.static voidsetDebugIdAttribute(java.lang.String attribute, boolean asProperty)Sets the element attribute to assign the debug ID.static voidsetDebugIdPrefix(java.lang.String prefix)Sets the prefix string used for debug IDs.
-
-
-
Field Detail
-
DEFAULT_DEBUG_ID_PREFIX
public static final java.lang.String DEFAULT_DEBUG_ID_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDebugIdAttribute
public static java.lang.String 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
public static java.lang.String 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 theUIObjectand its important sub elements.- Returns:
- true if debug IDs are enabled, false if disabled.
- See Also:
UIObject.ensureDebugId(String)
-
setDebugIdAttribute
public static void setDebugIdAttribute(java.lang.String attribute, boolean asProperty)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
public static void setDebugIdPrefix(java.lang.String prefix)
Sets the prefix string used for debug IDs.
-
-