Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
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 BasicComboBoxUI
public void uninstallUI(JComponent c)
uninstallUI
in class BasicComboBoxUI
public void paint(Graphics g, JComponent c)
paint
in class BasicComboBoxUI
protected ComboBoxEditor createEditor()
BasicComboBoxUI
createEditor
in class BasicComboBoxUI
protected ComboPopup createPopup()
BasicComboBoxUI
createPopup
in class BasicComboBoxUI
protected JButton createArrowButton()
BasicComboBoxUI
createArrowButton
in class BasicComboBoxUI
public PropertyChangeListener createPropertyChangeListener()
BasicComboBoxUI
createPropertyChangeListener
in class BasicComboBoxUI
protected void editablePropertyChanged(PropertyChangeEvent e)
protected LayoutManager createLayoutManager()
BasicComboBoxUI
createLayoutManager
in class BasicComboBoxUI
public void layoutComboBox(Container parent, MetalComboBoxUI.MetalComboBoxLayoutManager manager)
public boolean isFocusTraversable(JComboBox c)
BasicComboBoxUI
isFocusTraversable
in class BasicComboBoxUI
protected void installListeners()
BasicComboBoxUI
installListeners
in class BasicComboBoxUI
protected void uninstallListeners()
BasicComboBoxUI
uninstallListeners
in class BasicComboBoxUI
protected void removeListeners()
public void configureEditor()
BasicComboBoxUI
configureEditor
in class BasicComboBoxUI
public void unconfigureEditor()
BasicComboBoxUI
unconfigureEditor
in class BasicComboBoxUI
public void configureArrowButton()
BasicComboBoxUI
configureArrowButton
in class BasicComboBoxUI
public void unconfigureArrowButton()
BasicComboBoxUI
unconfigureArrowButton
in class BasicComboBoxUI
public Dimension getMinimumSize(JComponent c)
getMinimumSize
in class BasicComboBoxUI
protected void selectNextPossibleValue()
BasicComboBoxUI
selectNextPossibleValue
in class BasicComboBoxUI
protected void selectPreviousPossibleValue()
BasicComboBoxUI
selectPreviousPossibleValue
in class BasicComboBoxUI
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
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-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.