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 8 package javax.swing; 9 10 import java.awt.Component; 11 12 /** 13 * Defines the requirements for an object responsible for 14 * "rendering" (displaying) a value. 15 * 16 * @version 1.12 12/19/03 17 * @author Arnaud Weber 18 */ 19 public interface Renderer { 20 /** 21 * Specifies the value to display and whether or not the 22 * value should be portrayed as "currently selected". 23 * 24 * @param aValue an Object object 25 * @param isSelected a boolean 26 */ 27 void setValue(Object aValue,boolean isSelected); 28 /** 29 * Returns the component used to render the value. 30 * 31 * @return the Component responsible for displaying the value 32 */ 33 Component getComponent(); 34 } 35