|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.swing.plaf.ComponentUI
|
+--javax.swing.plaf.ComboBoxUI
|
+--javax.swing.plaf.basic.BasicComboBoxUI
|
+--javax.swing.plaf.metal.MetalComboBoxUI
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. A future release of Swing will provide support for long term persistence.
MetalComboBoxListCellRenderer,
MetalPopupMenuBorder| Inner Class Summary | |
class |
MetalComboBoxUI.MetalComboBoxLayoutManager
This inner class is marked "public" due to a compiler bug. |
class |
MetalComboBoxUI.MetalComboPopup
This inner class is marked "public" due to a compiler bug. |
class |
MetalComboBoxUI.MetalPropertyChangeListener
This inner class is marked "public" due to a compiler bug. |
| Inner classes inherited from class javax.swing.plaf.basic.BasicComboBoxUI |
BasicComboBoxUI.ComboBoxLayoutManager, BasicComboBoxUI.FocusHandler, BasicComboBoxUI.ItemHandler, BasicComboBoxUI.KeyHandler, BasicComboBoxUI.ListDataHandler, BasicComboBoxUI.PropertyChangeHandler |
| 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()
|
|
| Method Summary | |
void |
configureArrowButton()
Configures the arrow button by adding listeners. |
void |
configureEditor()
Configures the editor by setting its font and adding listeners. |
protected JButton |
createArrowButton()
Creates the arrow button. |
protected ComboBoxEditor |
createEditor()
Creates the editor that is to be used in editable combo boxes. |
protected LayoutManager |
createLayoutManager()
Creates the standard combo box layout manager that has the arrow button to the right and the editor to the left. |
protected ComboPopup |
createPopup()
Creates an implementation of the ComboPopup interface. |
PropertyChangeListener |
createPropertyChangeListener()
Creates the list data listener that is used for caching the preferred sizes. |
static ComponentUI |
createUI(JComponent c)
|
protected void |
editablePropertyChanged(PropertyChangeEvent e)
|
Dimension |
getMinimumSize(JComponent c)
|
protected void |
installListeners()
Attaches listeners to the JComboBox and JComboBoxModel. |
void |
installUI(JComponent c)
|
boolean |
isFocusTraversable(JComboBox c)
Determines if the JComboBox is focus traversable. |
void |
layoutComboBox(Container parent,
MetalComboBoxUI.MetalComboBoxLayoutManager manager)
|
void |
paint(Graphics g,
JComponent c)
|
protected void |
removeListeners()
|
protected void |
selectNextPossibleValue()
Selects the next item in the list. |
protected void |
selectPreviousPossibleValue()
Selects the previous item in the list. |
void |
unconfigureArrowButton()
Unconfigures the arrow button by removing listeners. |
void |
unconfigureEditor()
Unconfigures the editor by removing listeners. |
protected void |
uninstallListeners()
Removes listeners from the JComboBox and JComboBoxModel. |
void |
uninstallUI(JComponent c)
|
| 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 c)
public void installUI(JComponent c)
installUI in class BasicComboBoxUIpublic void uninstallUI(JComponent c)
uninstallUI in class BasicComboBoxUI
public void paint(Graphics g,
JComponent c)
paint in class BasicComboBoxUIprotected ComboBoxEditor createEditor()
BasicComboBoxUIcreateEditor in class BasicComboBoxUIprotected ComboPopup createPopup()
BasicComboBoxUIcreatePopup in class BasicComboBoxUIprotected JButton createArrowButton()
BasicComboBoxUIcreateArrowButton in class BasicComboBoxUIpublic PropertyChangeListener createPropertyChangeListener()
BasicComboBoxUIcreatePropertyChangeListener in class BasicComboBoxUIprotected void editablePropertyChanged(PropertyChangeEvent e)
protected LayoutManager createLayoutManager()
BasicComboBoxUIcreateLayoutManager in class BasicComboBoxUI
public void layoutComboBox(Container parent,
MetalComboBoxUI.MetalComboBoxLayoutManager manager)
public boolean isFocusTraversable(JComboBox c)
BasicComboBoxUIisFocusTraversable in class BasicComboBoxUIprotected void installListeners()
BasicComboBoxUIinstallListeners in class BasicComboBoxUIprotected void uninstallListeners()
BasicComboBoxUIuninstallListeners in class BasicComboBoxUIprotected void removeListeners()
public void configureEditor()
BasicComboBoxUIconfigureEditor in class BasicComboBoxUIpublic void unconfigureEditor()
BasicComboBoxUIunconfigureEditor in class BasicComboBoxUIpublic void configureArrowButton()
BasicComboBoxUIconfigureArrowButton in class BasicComboBoxUIpublic void unconfigureArrowButton()
BasicComboBoxUIunconfigureArrowButton in class BasicComboBoxUIpublic Dimension getMinimumSize(JComponent c)
getMinimumSize in class BasicComboBoxUIprotected void selectNextPossibleValue()
BasicComboBoxUIselectNextPossibleValue in class BasicComboBoxUIprotected void selectPreviousPossibleValue()
BasicComboBoxUIselectPreviousPossibleValue in class BasicComboBoxUI
|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.