public class WebComboBoxUI extends javax.swing.plaf.basic.BasicComboBoxUI implements Styleable, ShapeProvider, MarginSupport, PaddingSupport
| Modifier and Type | Class and Description |
|---|---|
protected class |
WebComboBoxUI.WebComboBoxLayout
Custom layout manager for WebComboBoxUI.
|
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| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Dimension |
cachedDisplaySize |
static javax.swing.ImageIcon |
COLLAPSE_ICON
Collapse icon.
|
protected javax.swing.ImageIcon |
collapseIcon |
protected static javax.swing.ListCellRenderer |
DEFAULT_RENDERER
Default combobox renderer.
|
static javax.swing.ImageIcon |
EXPAND_ICON
Expand icon.
|
protected javax.swing.ImageIcon |
expandIcon
Style settings.
|
protected java.awt.Insets |
margin
Runtime variables.
|
protected java.lang.Boolean |
mouseWheelScrollingEnabled |
protected java.awt.Insets |
padding |
protected IComboBoxPainter |
painter
Component painter.
|
protected javax.swing.JSeparator |
separator |
protected java.lang.Boolean |
widerPopupAllowed |
arrowButton, cachedMinimumSize, comboBox, currentValuePane, editor, focusListener, hasFocus, isMinimumSizeDirty, itemListener, keyListener, listBox, listDataListener, popup, popupKeyListener, popupMouseListener, popupMouseMotionListener, propertyChangeListener, squareButtonEMPTYEMPTY| Constructor and Description |
|---|
WebComboBoxUI() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addArrowButton()
Adding arrow button onto combobox.
|
protected void |
addSeparator()
Adding separator onto combobox.
|
protected javax.swing.JButton |
createArrowButton() |
protected javax.swing.ComboBoxEditor |
createEditor() |
protected java.awt.LayoutManager |
createLayoutManager() |
protected javax.swing.plaf.basic.ComboPopup |
createPopup() |
protected javax.swing.ListCellRenderer |
createRenderer() |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Returns an instance of the WebComboBoxUI for the specified component.
|
java.awt.Rectangle |
getArrowButtonBounds()
Returns the area that is reserved for drawing arrow button.
|
javax.swing.ImageIcon |
getCollapseIcon() |
protected static javax.swing.ListCellRenderer |
getDefaultListCellRenderer()
Returns default list cell renderer instance.
|
protected java.awt.Dimension |
getDefaultSize() |
javax.swing.ImageIcon |
getExpandIcon() |
javax.swing.JList |
getListBox() |
java.awt.Insets |
getMargin()
Returns current margin.
|
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c) |
java.awt.Insets |
getPadding()
Returns current padding.
|
Painter |
getPainter()
Returns combobox painter.
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c) |
java.awt.Rectangle |
getSeparatorBounds()
Returns the area that is reserved for drawing separator between currently selected item and arrow button.
|
protected java.awt.Dimension |
getSizeForComponent(java.awt.Component c)
Returns renderer component preferred size.
|
StyleId |
getStyleId()
Returns component style ID.
|
java.awt.Rectangle |
getValueBounds()
Returns the area that is reserved for drawing currently selected item.
|
protected void |
installComponents() |
void |
installUI(javax.swing.JComponent c) |
boolean |
isComboboxCellEditor() |
boolean |
isMouseWheelScrollingEnabled() |
boolean |
isWiderPopupAllowed() |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
void |
pinMinimumSizeDirty() |
java.awt.Shape |
provideShape()
Returns component shape.
|
protected java.awt.Rectangle |
rectangleForCurrentValue() |
protected void |
removeArrowButton()
Removing arrow button from combobox.
|
protected void |
removeSeparator()
Removing separator from combobox.
|
void |
setCollapseIcon(javax.swing.ImageIcon collapseIcon) |
void |
setEditorColumns(int columns) |
void |
setExpandIcon(javax.swing.ImageIcon expandIcon) |
void |
setMargin(java.awt.Insets margin)
Sets new margin.
|
void |
setMouseWheelScrollingEnabled(boolean enabled) |
void |
setPadding(java.awt.Insets padding)
Sets new padding.
|
void |
setPainter(Painter painter)
Sets combobox painter.
|
StyleId |
setStyleId(StyleId id)
Sets new component style ID.
|
void |
setWiderPopupAllowed(boolean allowed) |
protected void |
uninstallComponents() |
void |
uninstallUI(javax.swing.JComponent c) |
addEditor, configureArrowButton, configureEditor, createFocusListener, createItemListener, createKeyListener, createListDataListener, createPropertyChangeListener, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getDisplaySize, getInsets, getMaximumSize, installDefaults, installKeyboardActions, installListeners, isFocusTraversable, isNavigationKey, isPopupVisible, paintCurrentValue, paintCurrentValueBackground, removeEditor, selectNextPossibleValue, selectPreviousPossibleValue, setPopupVisible, toggleOpenClose, unconfigureArrowButton, unconfigureEditor, uninstallDefaults, uninstallKeyboardActions, uninstallListenerspublic static javax.swing.ImageIcon EXPAND_ICON
public static javax.swing.ImageIcon COLLAPSE_ICON
protected static javax.swing.ListCellRenderer DEFAULT_RENDERER
protected javax.swing.ImageIcon expandIcon
protected javax.swing.ImageIcon collapseIcon
protected java.lang.Boolean mouseWheelScrollingEnabled
protected java.lang.Boolean widerPopupAllowed
@DefaultPainter(value=ComboBoxPainter.class) protected IComboBoxPainter painter
protected java.awt.Insets margin
protected java.awt.Insets padding
protected java.awt.Dimension cachedDisplaySize
protected javax.swing.JSeparator separator
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c - component that will use UI instanceprotected static javax.swing.ListCellRenderer getDefaultListCellRenderer()
public void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.basic.BasicComboBoxUIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.basic.BasicComboBoxUIprotected void installComponents()
installComponents in class javax.swing.plaf.basic.BasicComboBoxUIprotected void uninstallComponents()
uninstallComponents in class javax.swing.plaf.basic.BasicComboBoxUIprotected void addArrowButton()
protected void removeArrowButton()
protected void addSeparator()
protected void removeSeparator()
public StyleId getStyleId()
StyleablegetStyleId in interface Styleablepublic StyleId setStyleId(StyleId id)
StyleablesetStyleId in interface Styleableid - custom component style IDpublic java.awt.Shape provideShape()
ShapeProviderprovideShape in interface ShapeProviderpublic java.awt.Insets getMargin()
MarginSupportgetMargin in interface MarginSupportpublic void setMargin(java.awt.Insets margin)
MarginSupportnull can be provided to set an empty [0,0,0,0] margin.setMargin in interface MarginSupportmargin - new marginpublic java.awt.Insets getPadding()
PaddingSupportgetPadding in interface PaddingSupportpublic void setPadding(java.awt.Insets padding)
PaddingSupportnull can be provided to set an empty [0,0,0,0] padding.setPadding in interface PaddingSupportpadding - new paddingpublic Painter getPainter()
public void setPainter(Painter painter)
painter - new combobox painterprotected javax.swing.ListCellRenderer createRenderer()
createRenderer in class javax.swing.plaf.basic.BasicComboBoxUIprotected javax.swing.ComboBoxEditor createEditor()
createEditor in class javax.swing.plaf.basic.BasicComboBoxUIprotected javax.swing.JButton createArrowButton()
createArrowButton in class javax.swing.plaf.basic.BasicComboBoxUIprotected javax.swing.plaf.basic.ComboPopup createPopup()
createPopup in class javax.swing.plaf.basic.BasicComboBoxUIpublic boolean isComboboxCellEditor()
public void setEditorColumns(int columns)
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 boolean isMouseWheelScrollingEnabled()
public void setMouseWheelScrollingEnabled(boolean enabled)
public boolean isWiderPopupAllowed()
public void setWiderPopupAllowed(boolean allowed)
public javax.swing.JList getListBox()
public void pinMinimumSizeDirty()
public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class javax.swing.plaf.basic.BasicComboBoxUIprotected java.awt.LayoutManager createLayoutManager()
createLayoutManager in class javax.swing.plaf.basic.BasicComboBoxUIpublic java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
getMinimumSize in class javax.swing.plaf.basic.BasicComboBoxUIprotected java.awt.Dimension getDefaultSize()
getDefaultSize in class javax.swing.plaf.basic.BasicComboBoxUIprotected java.awt.Dimension getSizeForComponent(java.awt.Component c)
getSizeForComponent in class javax.swing.plaf.basic.BasicComboBoxUIc - renderer componentpublic java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class javax.swing.plaf.basic.BasicComboBoxUIprotected java.awt.Rectangle rectangleForCurrentValue()
rectangleForCurrentValue in class javax.swing.plaf.basic.BasicComboBoxUIpublic java.awt.Rectangle getValueBounds()
public java.awt.Rectangle getSeparatorBounds()
public java.awt.Rectangle getArrowButtonBounds()