public class SelectableItemRenderer extends Object implements ListCellRenderer
Constructor and Description |
---|
SelectableItemRenderer() |
Modifier and Type | Method and Description |
---|---|
Component |
getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus) |
int |
getSelectionWidth() |
void |
setCenterRendererComponent(Class clazz,
SelectableItemRendererCenterComponentIf component)
Sets the render component that is to be used for the given class or it's super class.
|
void |
setEnabled(boolean value) |
protected void |
setScrollPane(JScrollPane parentScrollPane) |
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
getListCellRendererComponent
in interface ListCellRenderer
public void setEnabled(boolean value)
value
- If the renderer should be enabledpublic int getSelectionWidth()
public void setCenterRendererComponent(Class clazz, SelectableItemRendererCenterComponentIf component)
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.protected void setScrollPane(JScrollPane parentScrollPane)
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)