| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class MetalComboBoxUI extends BasicComboBoxUI
Metal UI for JComboBox
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans
package.
Please see {@link java.beans.XMLEncoder}.
Nested Class Summary | |
---|---|
class |
This inner class is marked "public" due to a compiler bug. |
class |
This inner class is marked "public" due to a compiler bug. |
class |
This inner class is marked "public" due to a compiler bug. |
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 |
This protected method is implementation specific and should be private. |
protected JButton |
Creates an button which will be used as the control to show or hide the popup portion of the combo box. |
protected ComboBoxEditor |
Creates the default editor that will be used in editable combo boxes. |
protected LayoutManager |
Creates a layout manager for managing the components which make up the combo box. |
protected ComboPopup |
Creates the popup portion of the combo box. |
PropertyChangeListener |
Creates a PropertyChangeListener which will be added to
the combo box.
|
static ComponentUI |
|
protected void |
As of Java 2 platform v1.4 this method is no longer used. |
int |
getBaseline(JComponent c, int width, int height) Returns the baseline. |
Dimension |
The minumum size is the size of the display area plus insets plus the button. |
void |
layoutComboBox(Container parent, MetalComboBoxUI.MetalComboBoxLayoutManager manager) |
void |
paint(Graphics g, JComponent c) |
void |
paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) If necessary paints the currently selected item. |
void |
paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) If necessary paints the background of the currently selected item. |
protected void |
As of Java 2 platform v1.4 this method is no longer used. |
void |
This protected method is implementation specific and should be private. |
Methods inherited from class javax.swing.plaf.ComboBoxUI |
---|
isFocusTraversable, isPopupVisible, setPopupVisible |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, 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 void configureEditor()
configureEditor
in class BasicComboBoxUI
protected JButton createArrowButton()
createArrowButton
in class BasicComboBoxUI
protected ComboBoxEditor createEditor()
createEditor
in class BasicComboBoxUI
protected LayoutManager createLayoutManager()
createLayoutManager
in class BasicComboBoxUI
protected ComboPopup createPopup()
createPopup
in class BasicComboBoxUI
public PropertyChangeListener createPropertyChangeListener()
createPropertyChangeListener
in class BasicComboBoxUI
public static ComponentUI createUI(JComponent c)
c
protected void editablePropertyChanged(PropertyChangeEvent e)
e
public int getBaseline(JComponent c, int width, int height)
getBaseline
in class BasicComboBoxUI
c
width
height
public Dimension getMinimumSize(JComponent c)
getMinimumSize
in class BasicComboBoxUI
c
public void layoutComboBox(Container parent, MetalComboBoxUI.MetalComboBoxLayoutManager manager)
parent
manager
public void paint(Graphics g, JComponent c)
paint
in class BasicComboBoxUI
g
c
public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)
paintCurrentValue
in class BasicComboBoxUI
g
- Graphics to paint tobounds
- Region to paint current value tohasFocus
- whether or not the JComboBox has focuspublic void paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus)
paintCurrentValueBackground
in class BasicComboBoxUI
g
- Graphics to paint tobounds
- Region to paint background tohasFocus
- whether or not the JComboBox has focusprotected void removeListeners()
public void unconfigureEditor()
unconfigureEditor
in class BasicComboBoxUI
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |