public class WebComboBox extends javax.swing.JComboBox implements ShapeProvider, com.alee.managers.settings.SettingsMethods, FontMethods<WebComboBox>, SizeMethods<WebComboBox>
javax.swing.JComboBox.AccessibleJComboBox, javax.swing.JComboBox.KeySelectionManagerjavax.swing.JComponent.AccessibleJComponentactionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminderaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
WebComboBox() |
WebComboBox(javax.swing.ComboBoxModel aModel) |
WebComboBox(javax.swing.ComboBoxModel aModel,
int selected) |
WebComboBox(javax.swing.ComboBoxModel aModel,
java.lang.Object selected) |
WebComboBox(java.lang.Object[] items) |
WebComboBox(java.lang.Object[] items,
int selected) |
WebComboBox(java.lang.Object[] items,
java.lang.Object selected) |
WebComboBox(java.util.Vector<?> items) |
WebComboBox(java.util.Vector<?> items,
int selected) |
WebComboBox(java.util.Vector<?> items,
java.lang.Object selected) |
| Modifier and Type | Method and Description |
|---|---|
WebComboBox |
changeFontSize(int change)
Changes font size of the specified component.
|
javax.swing.ImageIcon |
getCollapseIcon() |
javax.swing.ImageIcon |
getExpandIcon() |
java.lang.String |
getFontName()
Returns component font name.
|
int |
getFontSize()
Returns component font size.
|
int |
getIconSpacing() |
int |
getMinimumHeight()
Returns component minimum height.
|
int |
getMinimumWidth()
Returns component minimum width.
|
int |
getPreferredHeight()
Returns component preferred height.
|
java.awt.Dimension |
getPreferredSize()
Returns component preferred size.
|
int |
getPreferredWidth()
Returns component preferred width.
|
int |
getRound() |
int |
getSelectedIndex()
Returns selected value index.
|
int |
getShadeWidth() |
WebComboBoxCellRenderer |
getWebRenderer() |
WebComboBoxUI |
getWebUI() |
boolean |
isBoldFont()
Returns whether component font is bold or not.
|
boolean |
isDrawBorder() |
boolean |
isDrawFocus() |
boolean |
isItalicFont()
Returns whether component font is italic or not.
|
boolean |
isMouseWheelScrollingEnabled() |
boolean |
isPlainFont()
Returns whether component font is plain or not.
|
boolean |
isUseFirstValueAsPrototype() |
void |
loadSettings() |
java.awt.Shape |
provideShape()
Returns component shape.
|
void |
registerSettings(com.alee.managers.settings.SettingsProcessor settingsProcessor) |
void |
registerSettings(java.lang.String key) |
void |
registerSettings(java.lang.String key,
boolean loadInitialSettings,
boolean applySettingsChanges) |
<T extends com.alee.managers.settings.DefaultValue> |
registerSettings(java.lang.String key,
java.lang.Class<T> defaultValueClass) |
<T extends com.alee.managers.settings.DefaultValue> |
registerSettings(java.lang.String key,
java.lang.Class<T> defaultValueClass,
boolean loadInitialSettings,
boolean applySettingsChanges) |
void |
registerSettings(java.lang.String key,
java.lang.Object defaultValue) |
void |
registerSettings(java.lang.String key,
java.lang.Object defaultValue,
boolean loadInitialSettings,
boolean applySettingsChanges) |
void |
registerSettings(java.lang.String group,
java.lang.String key) |
<T extends com.alee.managers.settings.DefaultValue> |
registerSettings(java.lang.String group,
java.lang.String key,
java.lang.Class<T> defaultValueClass) |
<T extends com.alee.managers.settings.DefaultValue> |
registerSettings(java.lang.String group,
java.lang.String key,
java.lang.Class<T> defaultValueClass,
boolean loadInitialSettings,
boolean applySettingsChanges) |
void |
registerSettings(java.lang.String group,
java.lang.String key,
java.lang.Object defaultValue) |
void |
registerSettings(java.lang.String group,
java.lang.String key,
java.lang.Object defaultValue,
boolean loadInitialSettings,
boolean applySettingsChanges) |
void |
saveSettings() |
WebComboBox |
setBoldFont()
Sets bold font for the component.
|
WebComboBox |
setBoldFont(boolean apply)
Sets bold font for the component.
|
void |
setCollapseIcon(javax.swing.ImageIcon collapseIcon) |
void |
setDrawBorder(boolean drawBorder) |
void |
setDrawFocus(boolean drawFocus) |
void |
setEditorColumns(int columns) |
void |
setExpandIcon(javax.swing.ImageIcon expandIcon) |
WebComboBox |
setFontName(java.lang.String fontName)
Sets component font name.
|
WebComboBox |
setFontSize(int fontSize)
Sets component font size.
|
WebComboBox |
setFontSizeAndStyle(int fontSize,
boolean bold,
boolean italic)
Sets font size and style for the specified component.
|
WebComboBox |
setFontSizeAndStyle(int fontSize,
int style)
Sets font size and style for the specified component.
|
WebComboBox |
setFontStyle(boolean bold,
boolean italic)
Sets component font style.
|
WebComboBox |
setFontStyle(int style)
Sets component font style.
|
void |
setIconSpacing(int iconSpacing) |
WebComboBox |
setItalicFont()
Sets italic or plain font for the component.
|
WebComboBox |
setItalicFont(boolean apply)
Sets italic or plain font for the component.
|
WebComboBox |
setMinimumHeight(int minimumHeight)
Sets component minimum height.
|
WebComboBox |
setMinimumWidth(int minimumWidth)
Sets component minimum width.
|
void |
setMouseWheelScrollingEnabled(boolean enabled) |
WebComboBox |
setPlainFont()
Sets plain font for the component.
|
WebComboBox |
setPlainFont(boolean apply)
Sets plain font for the component.
|
WebComboBox |
setPreferredHeight(int preferredHeight)
Sets component preferred height.
|
WebComboBox |
setPreferredWidth(int preferredWidth)
Sets component preferred width.
|
void |
setRound(int round) |
void |
setShadeWidth(int shadeWidth) |
void |
setUseFirstValueAsPrototype(boolean use) |
void |
unregisterSettings() |
void |
updateUI() |
actionPerformed, actionPropertyChanged, addActionListener, addItem, addItemListener, addPopupMenuListener, configureEditor, configurePropertiesFromAction, contentsChanged, createActionPropertyChangeListener, createDefaultKeySelectionManager, fireActionEvent, fireItemStateChanged, firePopupMenuCanceled, firePopupMenuWillBecomeInvisible, firePopupMenuWillBecomeVisible, getAccessibleContext, getAction, getActionCommand, getActionListeners, getEditor, getItemAt, getItemCount, getItemListeners, getKeySelectionManager, getMaximumRowCount, getModel, getPopupMenuListeners, getPrototypeDisplayValue, getRenderer, getSelectedItem, getSelectedObjects, getUI, getUIClassID, hidePopup, insertItemAt, installAncestorListener, intervalAdded, intervalRemoved, isEditable, isLightWeightPopupEnabled, isPopupVisible, paramString, processKeyEvent, removeActionListener, removeAllItems, removeItem, removeItemAt, removeItemListener, removePopupMenuListener, selectedItemChanged, selectWithKeyChar, setAction, setActionCommand, setEditable, setEditor, setEnabled, setKeySelectionManager, setLightWeightPopupEnabled, setMaximumRowCount, setModel, setPopupVisible, setPrototypeDisplayValue, setRenderer, setSelectedIndex, setSelectedItem, setUI, showPopupaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic WebComboBox()
public WebComboBox(java.util.Vector<?> items)
public WebComboBox(java.util.Vector<?> items,
int selected)
public WebComboBox(java.util.Vector<?> items,
java.lang.Object selected)
public WebComboBox(java.lang.Object[] items)
public WebComboBox(java.lang.Object[] items,
int selected)
public WebComboBox(java.lang.Object[] items,
java.lang.Object selected)
public WebComboBox(javax.swing.ComboBoxModel aModel)
public WebComboBox(javax.swing.ComboBoxModel aModel,
int selected)
public WebComboBox(javax.swing.ComboBoxModel aModel,
java.lang.Object selected)
public int getSelectedIndex()
getSelectedIndex in class javax.swing.JComboBoxpublic 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 java.awt.Shape provideShape()
ShapeProviderprovideShape in interface ShapeProviderpublic WebComboBoxCellRenderer getWebRenderer()
public WebComboBoxUI getWebUI()
public void updateUI()
updateUI in class javax.swing.JComboBoxpublic void registerSettings(java.lang.String key)
registerSettings in interface com.alee.managers.settings.SettingsMethodspublic <T extends com.alee.managers.settings.DefaultValue> void registerSettings(java.lang.String key,
java.lang.Class<T> defaultValueClass)
registerSettings in interface com.alee.managers.settings.SettingsMethodspublic void registerSettings(java.lang.String key,
java.lang.Object defaultValue)
registerSettings in interface com.alee.managers.settings.SettingsMethodspublic void registerSettings(java.lang.String group,
java.lang.String key)
registerSettings in interface com.alee.managers.settings.SettingsMethodspublic <T extends com.alee.managers.settings.DefaultValue> void registerSettings(java.lang.String group,
java.lang.String key,
java.lang.Class<T> defaultValueClass)
registerSettings in interface com.alee.managers.settings.SettingsMethodspublic void registerSettings(java.lang.String group,
java.lang.String key,
java.lang.Object defaultValue)
registerSettings in interface com.alee.managers.settings.SettingsMethodspublic void registerSettings(java.lang.String key,
boolean loadInitialSettings,
boolean applySettingsChanges)
registerSettings in interface com.alee.managers.settings.SettingsMethodspublic <T extends com.alee.managers.settings.DefaultValue> void registerSettings(java.lang.String key,
java.lang.Class<T> defaultValueClass,
boolean loadInitialSettings,
boolean applySettingsChanges)
registerSettings in interface com.alee.managers.settings.SettingsMethodspublic void registerSettings(java.lang.String key,
java.lang.Object defaultValue,
boolean loadInitialSettings,
boolean applySettingsChanges)
registerSettings in interface com.alee.managers.settings.SettingsMethodspublic <T extends com.alee.managers.settings.DefaultValue> void registerSettings(java.lang.String group,
java.lang.String key,
java.lang.Class<T> defaultValueClass,
boolean loadInitialSettings,
boolean applySettingsChanges)
registerSettings in interface com.alee.managers.settings.SettingsMethodspublic void registerSettings(java.lang.String group,
java.lang.String key,
java.lang.Object defaultValue,
boolean loadInitialSettings,
boolean applySettingsChanges)
registerSettings in interface com.alee.managers.settings.SettingsMethodspublic void registerSettings(com.alee.managers.settings.SettingsProcessor settingsProcessor)
registerSettings in interface com.alee.managers.settings.SettingsMethodspublic void unregisterSettings()
unregisterSettings in interface com.alee.managers.settings.SettingsMethodspublic void loadSettings()
loadSettings in interface com.alee.managers.settings.SettingsMethodspublic void saveSettings()
saveSettings in interface com.alee.managers.settings.SettingsMethodspublic WebComboBox setPlainFont()
setPlainFont in interface FontMethods<WebComboBox>public WebComboBox setPlainFont(boolean apply)
setPlainFont in interface FontMethods<WebComboBox>apply - whether to apply font changes or notpublic boolean isPlainFont()
isPlainFont in interface FontMethods<WebComboBox>public WebComboBox setBoldFont()
setBoldFont in interface FontMethods<WebComboBox>public WebComboBox setBoldFont(boolean apply)
setBoldFont in interface FontMethods<WebComboBox>apply - whether to apply font changes or notpublic boolean isBoldFont()
isBoldFont in interface FontMethods<WebComboBox>public WebComboBox setItalicFont()
setItalicFont in interface FontMethods<WebComboBox>public WebComboBox setItalicFont(boolean apply)
setItalicFont in interface FontMethods<WebComboBox>apply - whether to apply font changes or notpublic boolean isItalicFont()
isItalicFont in interface FontMethods<WebComboBox>public WebComboBox setFontStyle(boolean bold, boolean italic)
setFontStyle in interface FontMethods<WebComboBox>bold - whether should set bold font or notitalic - whether should set italic font or notpublic WebComboBox setFontStyle(int style)
setFontStyle in interface FontMethods<WebComboBox>style - new stylepublic WebComboBox setFontSize(int fontSize)
setFontSize in interface FontMethods<WebComboBox>fontSize - font sizepublic WebComboBox changeFontSize(int change)
changeFontSize in interface FontMethods<WebComboBox>change - font size change amountpublic int getFontSize()
getFontSize in interface FontMethods<WebComboBox>public WebComboBox setFontSizeAndStyle(int fontSize, boolean bold, boolean italic)
setFontSizeAndStyle in interface FontMethods<WebComboBox>fontSize - new font sizebold - whether should set bold font or notitalic - whether should set italic font or notpublic WebComboBox setFontSizeAndStyle(int fontSize, int style)
setFontSizeAndStyle in interface FontMethods<WebComboBox>fontSize - new font sizestyle - new stylepublic WebComboBox setFontName(java.lang.String fontName)
setFontName in interface FontMethods<WebComboBox>fontName - new font namepublic java.lang.String getFontName()
getFontName in interface FontMethods<WebComboBox>public int getPreferredWidth()
getPreferredWidth in interface SizeMethods<WebComboBox>public WebComboBox setPreferredWidth(int preferredWidth)
setPreferredWidth in interface SizeMethods<WebComboBox>preferredWidth - new component preferred widthpublic int getPreferredHeight()
getPreferredHeight in interface SizeMethods<WebComboBox>public WebComboBox setPreferredHeight(int preferredHeight)
setPreferredHeight in interface SizeMethods<WebComboBox>preferredHeight - new component preferred heightpublic int getMinimumWidth()
getMinimumWidth in interface SizeMethods<WebComboBox>public WebComboBox setMinimumWidth(int minimumWidth)
setMinimumWidth in interface SizeMethods<WebComboBox>minimumWidth - new component minimum widthpublic int getMinimumHeight()
getMinimumHeight in interface SizeMethods<WebComboBox>public WebComboBox setMinimumHeight(int minimumHeight)
setMinimumHeight in interface SizeMethods<WebComboBox>minimumHeight - new component minimum heightpublic java.awt.Dimension getPreferredSize()
getPreferredSize in interface SizeMethods<WebComboBox>getPreferredSize in class javax.swing.JComponent