util.ui.customizableitems
Class SelectableItemRenderer
java.lang.Object
util.ui.customizableitems.SelectableItemRenderer
- All Implemented Interfaces:
- ListCellRenderer
public class SelectableItemRenderer
- extends Object
- implements ListCellRenderer
A ListCellRenderer for SelectableItems.
- Author:
- René Mach
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectableItemRenderer
public SelectableItemRenderer()
getListCellRendererComponent
public Component getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
- Specified by:
getListCellRendererComponent in interface ListCellRenderer
setEnabled
public void setEnabled(boolean value)
- Parameters:
value - If the renderer should be enabled
getSelectionWidth
public int getSelectionWidth()
- Returns:
- The selection width.
setCenterRendererComponent
public void setCenterRendererComponent(Class clazz,
SelectableItemRendererCenterComponentIf component)
- Sets the render component that is to be used for the given class or it's super class.
- Parameters:
clazz - The class to use the render component for, the render component is also used for the super class of clazz.component - The render component.- Since:
- 2.7
setScrollPane
protected void setScrollPane(JScrollPane parentScrollPane)
TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)