public class WebComboBoxElementPainter<E extends WebComboBoxElement> extends WebLabelPainter<E>
AbstractPainter,
Painter| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Color |
bottomSelectedBackgroundColor |
protected java.awt.Color |
topSelectedBackgroundColor
Style settings.
|
backgroundPainter, drawShade, paintIconR, paintTextR, shadeColor, transparencylisteners, margin, opaque, preferredSize| Constructor and Description |
|---|
WebComboBoxElementPainter()
Constructs new combobox element painter.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getBottomSelectedBackgroundColor() |
java.awt.Color |
getTopSelectedBackgroundColor()
Returns top selected background color.
|
void |
paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E element)
Paints visual data onto the component graphics.
|
protected void |
paintBoxBackground(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E element)
Paints combobox box element background.
|
protected void |
paintDeselectedBackground(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E element)
Paints deselected combobox popup list element background.
|
protected void |
paintSelectedBackground(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E element)
Paints selected combobox popup list element background.
|
void |
setBottomSelectedBackgroundColor(java.awt.Color color) |
void |
setTopSelectedBackgroundColor(java.awt.Color color)
Sets top selected background color.
|
getBackgroundPainter, getMargin, getPreferredSize, getShadeColor, getTransparency, isDrawShade, isOpaque, layout, layoutCL, paintDisabledText, paintEnabledText, paintShadowText, setBackgroundPainter, setDrawShade, setShadeColor, setTransparencyaddPainterListener, install, p, removePainterListener, repaint, repaint, repaint, revalidate, setMargin, setMargin, setMargin, setOpaque, setPreferredSize, uninstall, updateAll, updateOpacityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPainterListener, install, removePainterListener, uninstallprotected java.awt.Color topSelectedBackgroundColor
protected java.awt.Color bottomSelectedBackgroundColor
public WebComboBoxElementPainter()
public java.awt.Color getTopSelectedBackgroundColor()
public void setTopSelectedBackgroundColor(java.awt.Color color)
color - top selected background colorpublic java.awt.Color getBottomSelectedBackgroundColor()
public void setBottomSelectedBackgroundColor(java.awt.Color color)
public void paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E element)
paint in interface Painter<E extends WebComboBoxElement>paint in class WebLabelPainter<E extends WebComboBoxElement>g2d - component graphicsbounds - bounds for painter visual dataelement - component to processprotected void paintBoxBackground(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E element)
g2d - graphics contextbounds - element boundselement - combobox elementprotected void paintSelectedBackground(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E element)
g2d - graphics contextbounds - element boundselement - combobox elementprotected void paintDeselectedBackground(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E element)
g2d - graphics contextbounds - element boundselement - combobox element