|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.ComboBoxUI javax.swing.plaf.basic.BasicComboBoxUI com.alee.laf.combobox.WebComboBoxUI
public class WebComboBoxUI
Custom UI for JComboBox component.
Nested Class Summary | |
---|---|
protected class |
WebComboBoxUI.WebComboBoxLayout
Custom layout manager for WebComboBoxUI. |
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicComboBoxUI |
---|
javax.swing.plaf.basic.BasicComboBoxUI.ComboBoxLayoutManager, javax.swing.plaf.basic.BasicComboBoxUI.FocusHandler, javax.swing.plaf.basic.BasicComboBoxUI.ItemHandler, javax.swing.plaf.basic.BasicComboBoxUI.KeyHandler, javax.swing.plaf.basic.BasicComboBoxUI.ListDataHandler, javax.swing.plaf.basic.BasicComboBoxUI.PropertyChangeHandler |
Field Summary | |
---|---|
protected static javax.swing.ListCellRenderer |
DEFAULT_RENDERER
Default combobox renderer. |
Fields inherited from class javax.swing.plaf.basic.BasicComboBoxUI |
---|
arrowButton, cachedMinimumSize, comboBox, currentValuePane, editor, focusListener, hasFocus, isMinimumSizeDirty, itemListener, keyListener, listBox, listDataListener, popup, popupKeyListener, popupMouseListener, popupMouseMotionListener, propertyChangeListener |
Constructor Summary | |
---|---|
WebComboBoxUI()
|
Method Summary | |
---|---|
void |
configureArrowButton()
|
protected javax.swing.JButton |
createArrowButton()
|
protected javax.swing.ComboBoxEditor |
createEditor()
|
protected java.awt.LayoutManager |
createLayoutManager()
|
protected javax.swing.plaf.basic.ComboPopup |
createPopup()
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
|
javax.swing.ImageIcon |
getCollapseIcon()
|
protected static javax.swing.ListCellRenderer |
getDefaultListCellRenderer()
Returns default list cell renderer instance. |
protected java.awt.Dimension |
getDefaultSize()
|
protected java.awt.Dimension |
getDisplaySize()
|
javax.swing.ImageIcon |
getExpandIcon()
|
int |
getIconSpacing()
|
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c)
|
int |
getRound()
|
int |
getShadeWidth()
|
protected java.awt.Dimension |
getSizeForComponent(java.awt.Component c)
Returns renderer component preferred size. |
protected void |
installComponents()
|
protected void |
installRendererListener(java.lang.Object renderer)
Installs RendererListener into specified renderer if possible. |
void |
installUI(javax.swing.JComponent c)
|
boolean |
isComboboxCellEditor()
|
boolean |
isDrawBorder()
|
boolean |
isDrawFocus()
|
boolean |
isMouseWheelScrollingEnabled()
|
boolean |
isUseFirstValueAsPrototype()
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
|
void |
paintCurrentValue(java.awt.Graphics g,
java.awt.Rectangle bounds,
boolean hasFocus)
|
void |
paintCurrentValueBackground(java.awt.Graphics g,
java.awt.Rectangle bounds,
boolean hasFocus)
|
java.awt.Shape |
provideShape()
Returns component shape. |
void |
setCollapseIcon(javax.swing.ImageIcon collapseIcon)
|
void |
setDrawBorder(boolean drawBorder)
|
void |
setDrawFocus(boolean drawFocus)
|
void |
setEditorColumns(int columns)
|
void |
setExpandIcon(javax.swing.ImageIcon expandIcon)
|
void |
setIconSpacing(int iconSpacing)
|
void |
setMouseWheelScrollingEnabled(boolean enabled)
|
void |
setRound(int round)
|
void |
setShadeWidth(int shadeWidth)
|
void |
setUseFirstValueAsPrototype(boolean use)
|
protected void |
uninstallRendererListener(java.lang.Object renderer)
Uninstalls RendererListener from specified renderer if possible. |
void |
uninstallUI(javax.swing.JComponent c)
|
void |
updateBorder()
Updates custom WebLaF border. |
Methods inherited from class javax.swing.plaf.basic.BasicComboBoxUI |
---|
addEditor, configureEditor, createFocusListener, createItemListener, createKeyListener, createListDataListener, createPropertyChangeListener, createRenderer, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getInsets, getMaximumSize, getPreferredSize, installDefaults, installKeyboardActions, installListeners, isFocusTraversable, isNavigationKey, isPopupVisible, rectangleForCurrentValue, removeEditor, selectNextPossibleValue, selectPreviousPossibleValue, setPopupVisible, toggleOpenClose, unconfigureArrowButton, unconfigureEditor, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static javax.swing.ListCellRenderer DEFAULT_RENDERER
Constructor Detail |
---|
public WebComboBoxUI()
Method Detail |
---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.basic.BasicComboBoxUI
public void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.basic.BasicComboBoxUI
public void updateBorder()
BorderMethods
updateBorder
in interface BorderMethods
protected void installRendererListener(java.lang.Object renderer)
renderer
- RendererListener to installprotected void uninstallRendererListener(java.lang.Object renderer)
renderer
- RendererListener to uninstallprotected void installComponents()
installComponents
in class javax.swing.plaf.basic.BasicComboBoxUI
protected javax.swing.ComboBoxEditor createEditor()
createEditor
in class javax.swing.plaf.basic.BasicComboBoxUI
protected javax.swing.JButton createArrowButton()
createArrowButton
in class javax.swing.plaf.basic.BasicComboBoxUI
public void configureArrowButton()
configureArrowButton
in class javax.swing.plaf.basic.BasicComboBoxUI
protected javax.swing.plaf.basic.ComboPopup createPopup()
createPopup
in class javax.swing.plaf.basic.BasicComboBoxUI
public boolean isComboboxCellEditor()
public java.awt.Shape provideShape()
provideShape
in interface ShapeProvider
public void setEditorColumns(int columns)
public boolean isUseFirstValueAsPrototype()
public void setUseFirstValueAsPrototype(boolean use)
public javax.swing.ImageIcon getExpandIcon()
public void setExpandIcon(javax.swing.ImageIcon expandIcon)
public javax.swing.ImageIcon getCollapseIcon()
public void setCollapseIcon(javax.swing.ImageIcon collapseIcon)
public int getIconSpacing()
public void setIconSpacing(int iconSpacing)
public boolean isDrawBorder()
public void setDrawBorder(boolean drawBorder)
public boolean isDrawFocus()
public void setDrawFocus(boolean drawFocus)
public int getRound()
public void setRound(int round)
public int getShadeWidth()
public void setShadeWidth(int shadeWidth)
public boolean isMouseWheelScrollingEnabled()
public void setMouseWheelScrollingEnabled(boolean enabled)
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.basic.BasicComboBoxUI
public void paintCurrentValueBackground(java.awt.Graphics g, java.awt.Rectangle bounds, boolean hasFocus)
paintCurrentValueBackground
in class javax.swing.plaf.basic.BasicComboBoxUI
public void paintCurrentValue(java.awt.Graphics g, java.awt.Rectangle bounds, boolean hasFocus)
paintCurrentValue
in class javax.swing.plaf.basic.BasicComboBoxUI
protected java.awt.LayoutManager createLayoutManager()
createLayoutManager
in class javax.swing.plaf.basic.BasicComboBoxUI
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
getMinimumSize
in class javax.swing.plaf.basic.BasicComboBoxUI
protected java.awt.Dimension getDisplaySize()
getDisplaySize
in class javax.swing.plaf.basic.BasicComboBoxUI
protected java.awt.Dimension getDefaultSize()
getDefaultSize
in class javax.swing.plaf.basic.BasicComboBoxUI
protected static javax.swing.ListCellRenderer getDefaultListCellRenderer()
protected java.awt.Dimension getSizeForComponent(java.awt.Component c)
c
- renderer component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |