Class GUIRunner.TestListCellRenderer

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.ListCellRenderer<TestCase>
    Enclosing class:
    GUIRunner

    static class GUIRunner.TestListCellRenderer
    extends java.lang.Object
    implements javax.swing.ListCellRenderer<TestCase>, java.io.Serializable
    A special renderer object consisting of a label and a location within java code for an item in a failure list.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  GUIRunner.TestListCellRenderer.XLabel
      A special kind of label which fires only change in the text and which allows to set details: selection and focus.
    • Constructor Summary

      Constructors 
      Constructor Description
      TestListCellRenderer()
      Constructs a special renderer object consisting of a label and a location within java code for an item in a failure list.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Component getListCellRendererComponent​(javax.swing.JList<? extends TestCase> list, TestCase testCase, int index, boolean isSelected, boolean cellHasFocus)  
      private java.lang.String thrwToString​(java.lang.Throwable thrw)  
      • Methods inherited from class java.lang.Object

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

      • NO_FOCUS_BORDER

        protected static final javax.swing.border.Border NO_FOCUS_BORDER
    • Constructor Detail

      • TestListCellRenderer

        TestListCellRenderer()
        Constructs a special renderer object consisting of a label and a location within java code for an item in a failure list.
    • Method Detail

      • thrwToString

        private java.lang.String thrwToString​(java.lang.Throwable thrw)
      • getListCellRendererComponent

        public java.awt.Component getListCellRendererComponent​(javax.swing.JList<? extends TestCase> list,
                                                               TestCase testCase,
                                                               int index,
                                                               boolean isSelected,
                                                               boolean cellHasFocus)
        Specified by:
        getListCellRendererComponent in interface javax.swing.ListCellRenderer<TestCase>