Class DebugInfo

java.lang.Object
com.google.gwt.debug.client.DebugInfo

public class DebugInfo extends Object
Provides low-level functionality to support the creation of testing and diagnostic frameworks.
See Also:
  • Field Details

  • Constructor Details

    • DebugInfo

      public DebugInfo()
  • Method Details

    • getDebugIdAttribute

      public static String getDebugIdAttribute()
      Returns the element attribute or property where the debug ID is set. Defaults to the element id property. Use isDebugIdAsProperty() to determine if the value is a property or attribute.
    • getDebugIdPrefix

      public static 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 to UIObject.ensureDebugId(String) will set DOM IDs on the UIObject and its important sub elements.
      Returns:
      true if debug IDs are enabled, false if disabled.
      See Also:
    • setDebugIdAttribute

      public static void setDebugIdAttribute(String attribute, boolean asProperty)
      Sets the element attribute to assign the debug ID.
      Parameters:
      attribute - an element property
      asProperty - true to set the debug ID as a property instead of an attribute
    • setDebugIdPrefix

      public static void setDebugIdPrefix(String prefix)
      Sets the prefix string used for debug IDs.