Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ComboBoxUI
javax.swing.plaf.basic.BasicComboBoxUI
javax.swing.plaf.metal.MetalComboBoxUI
public class MetalComboBoxUI
extends BasicComboBoxUI
JComboBox
component.
Nested Class Summary | |
class |
|
class |
|
class |
|
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicComboBoxUI | |
BasicComboBoxUI.ComboBoxLayoutManager , BasicComboBoxUI.FocusHandler , BasicComboBoxUI.ItemHandler , BasicComboBoxUI.KeyHandler , BasicComboBoxUI.ListDataHandler , BasicComboBoxUI.PropertyChangeHandler |
Field Summary |
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 | |
|
Method Summary | |
void |
|
protected JButton |
|
protected ComboBoxEditor |
|
protected LayoutManager |
|
protected ComboPopup |
|
PropertyChangeListener |
|
static ComponentUI |
|
protected void |
|
Dimension |
|
void |
|
void |
|
protected void |
|
void |
|
Methods inherited from class javax.swing.plaf.ComboBoxUI | |
isFocusTraversable , isPopupVisible , setPopupVisible |
Methods inherited from class javax.swing.plaf.ComponentUI | |
contains , createUI , getAccessibleChild , getAccessibleChildrenCount , getMaximumSize , getMinimumSize , getPreferredSize , installUI , paint , uninstallUI , update |
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public void configureEditor()
Configures the editor for this combo box.
- Overrides:
- configureEditor in interface BasicComboBoxUI
protected JButton createArrowButton()
Creates a new button for use in rendering the JComboBox.
- Overrides:
- createArrowButton in interface BasicComboBoxUI
- Returns:
- A button.
protected ComboBoxEditor createEditor()
Creates an editor for the combo box.
- Overrides:
- createEditor in interface BasicComboBoxUI
- Returns:
- An editor.
protected LayoutManager createLayoutManager()
Creates a new layout manager for the UI delegate.
- Overrides:
- createLayoutManager in interface BasicComboBoxUI
- Returns:
- A new layout manager.
protected ComboPopup createPopup()
Creates a popup for the combo box.
- Overrides:
- createPopup in interface BasicComboBoxUI
- Returns:
- A popup.
public PropertyChangeListener createPropertyChangeListener()
Creates a new property change listener.
- Overrides:
- createPropertyChangeListener in interface BasicComboBoxUI
- Returns:
- A new property change listener.
public static ComponentUI createUI(JComponent component)
Returns an instance of MetalComboBoxUI.
- Overrides:
- createUI in interface BasicComboBoxUI
- Parameters:
component
- the component for which we return an UI instance
- Returns:
- an instance of MetalComboBoxUI
protected void editablePropertyChanged(PropertyChangeEvent e)
Deprecated. 1.4
Updates the button and text field to reflect a change in the 'editable' property.
- Parameters:
e
- the event.
public Dimension getMinimumSize(JComponent c)
Returns the minimum size for the combo.
- Overrides:
- getMinimumSize in interface BasicComboBoxUI
- Parameters:
c
- the component
- Returns:
- The minimum size for the combo box.
public void layoutComboBox(Container parent, MetalComboBoxUI.MetalComboBoxLayoutManager manager)
Lays out the ComboBox
public void paint(Graphics g, JComponent c)
Paints given menu item using specified graphics context
- Overrides:
- paint in interface BasicComboBoxUI
- Parameters:
g
- The graphics context used to paint this combo boxc
- comboBox which needs to be painted.
public void unconfigureEditor()
Unconfigures the editor for this combo box.
- Overrides:
- unconfigureEditor in interface BasicComboBoxUI