|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.renderer.DefaultListRenderer
public class DefaultListRenderer
Adapter to glue SwingX renderer support to core api.
| Field Summary | |
|---|---|
protected CellContext<JList> |
cellContext
|
protected ComponentProvider |
componentController
|
| Constructor Summary | |
|---|---|
DefaultListRenderer()
Instantiates a default list renderer with the default component controller. |
|
DefaultListRenderer(ComponentProvider componentController)
Instantiates a ListCellRenderer with the given componentController. |
|
DefaultListRenderer(StringValue converter)
Instantiates a default table renderer with a default component controller using the given converter. |
|
| Method Summary | |
|---|---|
void |
doClick()
Same as AbstractButton.doClick(). |
Component |
getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
Returns a configured component, appropriate to render the given list cell. |
boolean |
isEnabled()
|
void |
setBackground(Color background)
|
void |
setForeground(Color foreground)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ComponentProvider componentController
protected CellContext<JList> cellContext
| Constructor Detail |
|---|
public DefaultListRenderer()
public DefaultListRenderer(ComponentProvider componentController)
componentController - the provider of the configured component to
use for cell renderingpublic DefaultListRenderer(StringValue converter)
converter - the converter to use for mapping the
content value to a String representation.| Method Detail |
|---|
public Component getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
getListCellRendererComponent in interface ListCellRendererlist - the JList to render onvalue - the value to assign to the cellisSelected - true if cell is selectedcellHasFocus - true if cell has focusindex - the row index (in view coordinates) of the cell to render
JList,
ListSelectionModel,
ListModelpublic void setBackground(Color background)
background - public void setForeground(Color foreground)
foreground - public void doClick()
doClick in interface RolloverRendererpublic boolean isEnabled()
isEnabled in interface RolloverRenderer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||