Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Standard Edition |
|||||||||
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 |
installKeyboardActions()
Adds keyboard actions to the JComboBox. |
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 |
uninstallKeyboardActions()
Removes the keyboard actions that were added by installKeyboardActions(). |
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)
public void uninstallUI(JComponent c)
public void paint(Graphics g, JComponent c)
protected ComboBoxEditor createEditor()
protected ComboPopup createPopup()
protected JButton createArrowButton()
public PropertyChangeListener createPropertyChangeListener()
protected void editablePropertyChanged(PropertyChangeEvent e)
protected LayoutManager createLayoutManager()
public void layoutComboBox(Container parent, MetalComboBoxUI.MetalComboBoxLayoutManager manager)
public boolean isFocusTraversable(JComboBox c)
protected void installListeners()
protected void uninstallListeners()
protected void removeListeners()
public void configureEditor()
public void unconfigureEditor()
public void configureArrowButton()
public void unconfigureArrowButton()
public Dimension getMinimumSize(JComponent c)
protected void selectNextPossibleValue()
protected void selectPreviousPossibleValue()
protected void installKeyboardActions()
protected void uninstallKeyboardActions()
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |