Class IconLabel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants

public class IconLabel extends JLabel
A lightweight component that can display an icon from the IconFactory. To use this component in a JEditorPane, use the following:
    <object classid="com.sun.javatest.tool.IconLabel">
    <param  name=... value=...>
    ...
    </object>
 
The following parameters are recognized:
type
one of "test", "testFolder", "testSection"
state
one of "passed", "failed", "error", "notRun"
See Also:
  • Constructor Details

    • IconLabel

      public IconLabel()
  • Method Details

    • getAlignmentY

      public float getAlignmentY()
      Overrides:
      getAlignmentY in class JComponent
    • getIcon

      public Icon getIcon()
      Overrides:
      getIcon in class JLabel
    • getType

      public String getType()
      Get the type of icon to be displayed.
      Returns:
      either "test" or "folder"
      See Also:
    • setType

      public void setType(String type)
      Set the type of icon to be displayed.
      Parameters:
      type - one of "test" or "folder"
      See Also:
    • getState

      public String getState()
      Get the state for the icon to be displayed.
      Returns:
      one of "passed", "failed", "error", "notRun"
      See Also:
    • setState

      public void setState(String state)
      Set the state for the icon to be displayed.
      Parameters:
      state - one of "passed", "failed", "error", "notRun"
      See Also: