|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.ComboBoxUI
javax.swing.plaf.basic.BasicComboBoxUI
javax.swing.plaf.metal.MetalComboBoxUI
public class MetalComboBoxUI
A UI delegate for the JComboBox
component.
Nested Class Summary | |
---|---|
class |
MetalComboBoxUI.MetalComboBoxLayoutManager
A layout manager that arranges the editor component (if active) and the button that make up the combo box. |
class |
MetalComboBoxUI.MetalComboPopup
Deprecated. 1.4 |
class |
MetalComboBoxUI.MetalPropertyChangeListener
A listener used to handle property changes in the JComboBox
component, to ensure that the UI delegate accurately reflects the current
state in the rendering onscreen. |
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 | |
---|---|
MetalComboBoxUI()
Constructs a new instance of MetalComboBoxUI. |
Method Summary | |
---|---|
void |
configureEditor()
Configures the editor for this combo box. |
protected JButton |
createArrowButton()
Creates a new button for use in rendering the JComboBox. |
protected ComboBoxEditor |
createEditor()
Creates an editor for the combo box. |
protected LayoutManager |
createLayoutManager()
Creates a new layout manager for the UI delegate. |
protected ComboPopup |
createPopup()
Creates a popup for the combo box. |
PropertyChangeListener |
createPropertyChangeListener()
Creates a new property change listener. |
static ComponentUI |
createUI(JComponent component)
Returns an instance of MetalComboBoxUI. |
protected void |
editablePropertyChanged(PropertyChangeEvent e)
Deprecated. 1.4 |
Dimension |
getMinimumSize(JComponent c)
Returns the minimum size for the combo. |
void |
layoutComboBox(Container parent,
MetalComboBoxUI.MetalComboBoxLayoutManager manager)
Lays out the ComboBox |
void |
paint(Graphics g,
JComponent c)
Paints given menu item using specified graphics context |
protected void |
removeListeners()
Deprecated. 1.4 |
void |
unconfigureEditor()
Unconfigures the editor for this combo box. |
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 |
Constructor Detail |
---|
public MetalComboBoxUI()
Method Detail |
---|
public static ComponentUI createUI(JComponent component)
component
- the component for which we return an UI instance
protected ComboBoxEditor createEditor()
createEditor
in class BasicComboBoxUI
protected ComboPopup createPopup()
createPopup
in class BasicComboBoxUI
protected JButton createArrowButton()
createArrowButton
in class BasicComboBoxUI
public PropertyChangeListener createPropertyChangeListener()
createPropertyChangeListener
in class BasicComboBoxUI
public void paint(Graphics g, JComponent c)
BasicComboBoxUI
paint
in class BasicComboBoxUI
g
- The graphics context used to paint this combo boxc
- comboBox which needs to be painted.protected void editablePropertyChanged(PropertyChangeEvent e)
e
- the event.protected LayoutManager createLayoutManager()
createLayoutManager
in class BasicComboBoxUI
protected void removeListeners()
public Dimension getMinimumSize(JComponent c)
getMinimumSize
in class BasicComboBoxUI
c
- the component
public void configureEditor()
configureEditor
in class BasicComboBoxUI
public void unconfigureEditor()
unconfigureEditor
in class BasicComboBoxUI
public void layoutComboBox(Container parent, MetalComboBoxUI.MetalComboBoxLayoutManager manager)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |