1. /*
  2. * @(#)Renderer.java 1.12 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.swing;
  8. import java.awt.Component;
  9. /**
  10. * Defines the requirements for an object responsible for
  11. * "rendering" (displaying) a value.
  12. *
  13. * @version 1.12 12/19/03
  14. * @author Arnaud Weber
  15. */
  16. public interface Renderer {
  17. /**
  18. * Specifies the value to display and whether or not the
  19. * value should be portrayed as "currently selected".
  20. *
  21. * @param aValue an Object object
  22. * @param isSelected a boolean
  23. */
  24. void setValue(Object aValue,boolean isSelected);
  25. /**
  26. * Returns the component used to render the value.
  27. *
  28. * @return the Component responsible for displaying the value
  29. */
  30. Component getComponent();
  31. }