public class SeparatorListCellRenderer
extends java.lang.Object
implements javax.swing.ListCellRenderer
Modifier and Type | Class and Description |
---|---|
static interface |
SeparatorListCellRenderer.SeparatorModel
Tells the renderer after which items to place separators
|
Constructor and Description |
---|
SeparatorListCellRenderer(javax.swing.ListCellRenderer decoratedRenderer,
SeparatorListCellRenderer.SeparatorModel separatorModel)
Add separators at locations described by the separatorModel to a
ListCellRenderer
|
SeparatorListCellRenderer(SeparatorListCellRenderer.SeparatorModel separatorModel)
Create a DefaultListCellRenderer and add separators
at locations described by the SeparatorModel
|
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
getListCellRendererComponent(javax.swing.JList list,
java.lang.Object value,
int index,
boolean isSelected,
boolean cellHasFocus) |
public SeparatorListCellRenderer(SeparatorListCellRenderer.SeparatorModel separatorModel)
separatorModel
- public SeparatorListCellRenderer(javax.swing.ListCellRenderer decoratedRenderer, SeparatorListCellRenderer.SeparatorModel separatorModel)
decoratedRenderer
- separatorModel
-