SimpleColoredRenderer instead@Deprecated public abstract class HtmlListCellRenderer<T> extends ListCellRendererWrapper<T>
| Constructor and Description |
|---|
HtmlListCellRenderer()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(SimpleColoredText text)
Deprecated.
|
void |
append(java.lang.String fragment)
Deprecated.
|
void |
append(java.lang.String fragment,
SimpleTextAttributes attributes)
Deprecated.
|
void |
appendLink(java.lang.String fragment,
SimpleTextAttributes attributes,
java.lang.String url)
Deprecated.
|
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.
|
protected abstract void |
doCustomize(javax.swing.JList list,
T value,
int index,
boolean selected,
boolean hasFocus)
Deprecated.
|
createSeparator, getListCellRendererComponent, setBackground, setClientProperty, setFont, setForeground, setIcon, setSeparator, setText, setToolTipTextpublic final void customize(javax.swing.JList list,
T value,
int index,
boolean selected,
boolean hasFocus)
ListCellRendererWrapperListCellRendererWrapper.setIcon(Icon) and ListCellRendererWrapper.setText(String) methods.customize in class ListCellRendererWrapper<T>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.protected abstract void doCustomize(javax.swing.JList list,
T value,
int index,
boolean selected,
boolean hasFocus)
public void append(java.lang.String fragment)
public void append(java.lang.String fragment,
SimpleTextAttributes attributes)
public void appendLink(java.lang.String fragment,
SimpleTextAttributes attributes,
java.lang.String url)
public void append(SimpleColoredText text)