SimpleListCellRenderer
instead.@Deprecated
public abstract class ListCellRendererWrapper<T>
extends java.lang.Object
implements javax.swing.ListCellRenderer<T>
Constructor and Description |
---|
ListCellRendererWrapper()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static java.awt.Component |
createSeparator(java.lang.String text)
Deprecated.
Use plain
JSeparator instead |
abstract void |
customize(javax.swing.JList list,
T value,
int index,
boolean selected,
boolean hasFocus)
Deprecated.
Implement this method to configure text and icon for given value.
|
java.awt.Component |
getListCellRendererComponent(javax.swing.JList<? extends T> list,
T value,
int index,
boolean selected,
boolean hasFocus)
Deprecated.
|
void |
setBackground(java.awt.Color background)
Deprecated.
|
void |
setClientProperty(java.lang.Object key,
java.lang.Object value)
Deprecated.
|
void |
setFont(java.awt.Font font)
Deprecated.
|
void |
setForeground(java.awt.Color foreground)
Deprecated.
|
void |
setIcon(javax.swing.Icon icon)
Deprecated.
|
void |
setSeparator()
Deprecated.
|
void |
setText(java.lang.String text)
Deprecated.
|
void |
setToolTipText(java.lang.String toolTipText)
Deprecated.
|
public final java.awt.Component getListCellRendererComponent(javax.swing.JList<? extends T> list, T value, int index, boolean selected, boolean hasFocus)
getListCellRendererComponent
in interface javax.swing.ListCellRenderer<T>
@Deprecated public static java.awt.Component createSeparator(java.lang.String text)
JSeparator
insteadpublic abstract void customize(javax.swing.JList list, T value, int index, boolean selected, boolean hasFocus)
setIcon(Icon)
and setText(String)
methods.list
- The JList we're painting.value
- The value returned by list.getModel().getElementAt(index).index
- The cells index.selected
- True if the specified cell was selected.hasFocus
- True if the specified cell has the focus.public final void setSeparator()
public final void setIcon(javax.swing.Icon icon)
public final void setText(java.lang.String text)
public final void setToolTipText(java.lang.String toolTipText)
public final void setForeground(java.awt.Color foreground)
public final void setBackground(java.awt.Color background)
public final void setFont(java.awt.Font font)
public final void setClientProperty(java.lang.Object key, java.lang.Object value)