javax.swing
public class DefaultListCellRenderer extends JLabel implements ListCellRenderer, Serializable
Nested Class Summary | |
---|---|
static class | DefaultListCellRenderer.UIResource
Subclasses DefaultListCellRenderers and implements
{@link javax.swing.plaf.UIResource}. |
Field Summary | |
---|---|
protected static Border | noFocusBorder
This border is used whenever renderer doesn't have a focus. |
Method Summary | |
---|---|
protected void | firePropertyChange(String propertyName, Object oldValue, Object newValue) |
void | firePropertyChange(String propertyName, byte oldValue, byte newValue) |
void | firePropertyChange(String propertyName, char oldValue, char newValue) |
void | firePropertyChange(String propertyName, short oldValue, short newValue) |
void | firePropertyChange(String propertyName, int oldValue, int newValue) |
void | firePropertyChange(String propertyName, long oldValue, long newValue) |
void | firePropertyChange(String propertyName, float oldValue, float newValue) |
void | firePropertyChange(String propertyName, double oldValue, double newValue) |
void | firePropertyChange(String propertyName, boolean oldValue, boolean newValue) |
Component | getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
getListCellRendererComponent
|
void | repaint(long tm, int x, int y, int w, int h) |
void | repaint(Rectangle rect) |
void | revalidate() |
void | validate() |
Parameters: list JList list for the 'value' value object that should be rendered in the cell index index of the cell isSelected draw cell highlighted if isSelected is true cellHasFocus draw focus rectangle around cell if the cell has focus
Returns: Component that will be painted to the desired cell.