org.dishevelled.identify
Class IdRenderer
java.lang.Object
org.dishevelled.identify.IdRenderer
- All Implemented Interfaces:
- Renderer
public final class IdRenderer
- extends Object
- implements Renderer
Renderer that displays the name property value
and appropriate icon from an icon bundle for a given bean.
The AWT component returned by the getComponent
method is an instance of IdLabel, so the following cast is safe:
IdRenderer renderer = new IdRenderer();
IdLabel rendererComponent = (IdLabel) renderer.getComponent();
// set properties on the IdLabel, e.g.
rendererComponent.setIconSize(IconSize.DEFAULT_16X16);
- Version:
- $Revision: 1059 $ $Date: 2012-01-03 14:03:02 -0600 (Tue, 03 Jan 2012) $
- Author:
- Michael Heuer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdRenderer
public IdRenderer()
getComponent
public Component getComponent()
-
- Specified by:
getComponent in interface Renderer
setValue
public void setValue(Object value,
boolean selected)
-
- Specified by:
setValue in interface Renderer
Copyright (c) 2003-2012 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).