public class ComboBoxPainter<E extends javax.swing.JComboBox,U extends WebComboBoxUI,D extends IDecoration<E,D>> extends AbstractDecorationPainter<E,U,D> implements IComboBoxPainter<E,U>
| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.CellRendererPane |
currentValuePane
Painting variables.
|
protected PopupMenuAdapter |
menuListener
Listeners.
|
protected java.awt.event.MouseWheelListener |
mouseWheelListener |
ancestor, DECORATION_STATES_PROPERTY, decorationCache, decorations, focused, focusStateTracker, hierarchyTracker, hover, hoverStateTracker, neighboursTracker, statescomponent, listeners, ltr, propertyChangeListener, ui| Constructor and Description |
|---|
ComboBoxPainter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanupAfterPaint()
Method called when single paint operation is completed.
|
protected java.util.List<java.lang.String> |
getDecorationStates()
Returns current component decoration states.
|
void |
install(E c,
U ui)
Called when painter is installed onto some component.
|
protected void |
paintContent(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c,
U ui)
Paints content decorated by this painter.
|
protected void |
paintCurrentValue(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds)
Paints the currently selected item.
|
void |
prepareToPaint(javax.swing.CellRendererPane currentValuePane)
Prepares painter to pain combobox.
|
protected void |
propertyChange(java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue)
Performs various updates on property changes.
|
void |
uninstall(E c,
U ui)
Called when painter is installed into some component.
|
adjustBounds, asList, collectDecorationStates, getBorders, getDecoration, getDecorations, getDecorationSize, getPreferredSize, getSectionPainters, installFocusListener, installHierarchyListener, installHoverListener, isDecorated, isDecorationPaintAllowed, isEnabled, isFocused, isHover, isOpaque, isOpaqueDecorated, isOpaqueUndecorated, isPlainBackgroundPaintAllowed, paint, provideShape, uninstallFocusListener, uninstallHierarchyListener, uninstallHoverListener, updateDecorationState, usesState, usesStateaddPainterListener, b, borderChange, getCompleteBorder, i, i, i, installPropertyChangeListener, isSectionPainter, isSettingsUpdateAllowed, orientationChange, p, removePainterListener, repaint, repaint, repaint, revalidate, saveOrientation, uninstallPropertyChangeListener, updateAll, updateBorder, updateOpacity, updateOrientationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPainterListener, getBorders, getPreferredSize, isOpaque, paint, removePainterListenerprotected PopupMenuAdapter menuListener
protected java.awt.event.MouseWheelListener mouseWheelListener
protected javax.swing.CellRendererPane currentValuePane
public void install(E c, U ui)
Painterinstall in interface Painter<E extends javax.swing.JComboBox,U extends WebComboBoxUI>install in class AbstractDecorationPainter<E extends javax.swing.JComboBox,U extends WebComboBoxUI,D extends IDecoration<E,D>>c - component this painter is being installed ontoui - component UIpublic void uninstall(E c, U ui)
Painteruninstall in interface Painter<E extends javax.swing.JComboBox,U extends WebComboBoxUI>uninstall in class AbstractDecorationPainter<E extends javax.swing.JComboBox,U extends WebComboBoxUI,D extends IDecoration<E,D>>c - component this painter is being uninstalled fromui - component UIprotected void propertyChange(java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue)
AbstractPainterpropertyChange in class AbstractDecorationPainter<E extends javax.swing.JComboBox,U extends WebComboBoxUI,D extends IDecoration<E,D>>property - modified propertyoldValue - old property valuenewValue - new property valueprotected java.util.List<java.lang.String> getDecorationStates()
AbstractDecorationPaintergetDecorationStates in class AbstractDecorationPainter<E extends javax.swing.JComboBox,U extends WebComboBoxUI,D extends IDecoration<E,D>>public void prepareToPaint(javax.swing.CellRendererPane currentValuePane)
IComboBoxPainterprepareToPaint in interface IComboBoxPainter<E extends javax.swing.JComboBox,U extends WebComboBoxUI>currentValuePane - current value paneprotected void paintContent(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c,
U ui)
AbstractDecorationPainterpaintContent in class AbstractDecorationPainter<E extends javax.swing.JComboBox,U extends WebComboBoxUI,D extends IDecoration<E,D>>g2d - graphics contextbounds - painting boundsc - painted componentui - painted component UIprotected void cleanupAfterPaint()
protected void paintCurrentValue(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds)
g2d - graphics contextbounds - bounds