Class ComponentStrings


  • public class ComponentStrings
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String toString​(Component component, java.lang.Throwable location)
      Creates a location stacktrace string representation for the component for reference when the render check fails.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toString

        public static java.lang.String toString​(Component component,
                                                java.lang.Throwable location)
        Creates a location stacktrace string representation for the component for reference when the render check fails. This method filters out most of the unnecessary parts of the stack trace. The message of the location is used as a verb in the rendered string. Use "added", "constructed" or similar verbs as values.
        Parameters:
        component - the component that was constructed or added and failed to render
        location - the location where the component was created or added in the java code.
        Returns:
        a string giving the line precise location where the component was added or created.