|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.laf.combobox.WebComboBoxCellRenderer
public class WebComboBoxCellRenderer
Custom cell renderer for JComboBox value and popup list and some other similar cases.
It uses WebComboBoxElement
as renderer which is being styled by a custom LabelPainter.
WebComboBoxElement
Field Summary | |
---|---|
protected WebComboBoxElement |
boxRenderer
Actual renderer components. |
protected WebComboBoxElement |
elementRenderer
|
protected java.util.List<RendererListener> |
rendererListeners
Renderer listeners. |
Constructor Summary | |
---|---|
WebComboBoxCellRenderer()
Constructs new combo box renderer. |
Method Summary | |
---|---|
void |
addRendererListener(RendererListener listener)
Adds RendererListener to this renderer. |
void |
fireRepaint()
Fires repaint event. |
void |
fireRevalidate()
Fires revalidate event. |
WebComboBoxElement |
getBoxRenderer()
Returns actual combo box value renderer. |
WebComboBoxElement |
getElementRenderer()
Returns actual elements renderer. |
java.awt.Component |
getListCellRendererComponent(javax.swing.JList list,
java.lang.Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
|
void |
removeRendererListener(RendererListener listener)
Removes RendererListener from this renderer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<RendererListener> rendererListeners
protected WebComboBoxElement boxRenderer
protected WebComboBoxElement elementRenderer
Constructor Detail |
---|
public WebComboBoxCellRenderer()
Method Detail |
---|
public WebComboBoxElement getBoxRenderer()
public WebComboBoxElement getElementRenderer()
public java.awt.Component getListCellRendererComponent(javax.swing.JList list, java.lang.Object value, int index, boolean isSelected, boolean cellHasFocus)
getListCellRendererComponent
in interface javax.swing.ListCellRenderer
public void addRendererListener(RendererListener listener)
listener
- RendererListener to addpublic void removeRendererListener(RendererListener listener)
listener
- RendererListener to removepublic void fireRepaint()
public void fireRevalidate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |