All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.basic.BasicComboBoxUI

java.lang.Object
   |
   +----com.sun.java.swing.plaf.ComponentUI
           |
           +----com.sun.java.swing.plaf.ComboBoxUI
                   |
                   +----com.sun.java.swing.basic.BasicComboBoxUI

public class BasicComboBoxUI
extends ComboBoxUI
implements LayoutManager, MouseListener, MouseMotionListener, ItemListener, FocusListener, KeyListener, ComponentListener, Serializable
Basic UI for JComboBox


Constructor Index

 o BasicComboBoxUI()

Method Index

 o addArrowButton()
 o addEditor()
 o addLayoutComponent(String, Component)
 o componentHidden(ComponentEvent)
 o componentMoved(ComponentEvent)
 o componentResized(ComponentEvent)
 o componentShown(ComponentEvent)
 o createArrowButton()
 o createListBox(ComboBoxModel)
 o createUI(JComponent)
 o editablePropertyChanged()
This method is called when the editable property changes.
 o enablePropertyChanged()
This method is called when the enabled property changes
 o focusGained(FocusEvent)
 o focusLost(FocusEvent)
 o getDefaultSize()
Return the dimension the the combo box should have if by default if there is no current value and no value in the list of possible values
 o getList()
This method asks the UI for the JList is using to display the contents of the ComboBox.
 o getMaximumSize(JComponent)
 o getMinimumSize(JComponent)
 o getPreferredSize(JComponent)
 o hidePopup()
This method request the UI to hide the popup
 o installUI(JComponent)
 o itemStateChanged(ItemEvent)
 o keyPressed(KeyEvent)
 o keyReleased(KeyEvent)
 o keyTyped(KeyEvent)
 o layoutContainer(Container)
 o maximumRowCountChanged()
This method is called when the maximum number of rows is changing
 o minimumLayoutSize(Container)
 o mouseClicked(MouseEvent)
 o mouseDragged(MouseEvent)
 o mouseEntered(MouseEvent)
 o mouseExited(MouseEvent)
 o mouseMoved(MouseEvent)
 o mousePressed(MouseEvent)
 o mouseReleased(MouseEvent)
 o paint(Graphics, JComponent)
 o paintCurrentValue(Graphics, Rectangle, boolean)
 o paintCurrentValueBackground(Graphics, Rectangle, boolean)
 o preferredLayoutSize(Container)
 o removeArrowButton()
 o removeEditor()
 o removeLayoutComponent(Component)
 o showPopup()
This method request the UI to show the popup
 o uninstallUI(JComponent)
 o validateMenu()

Constructors

 o BasicComboBoxUI
 public BasicComboBoxUI()

Methods

 o createUI
 public static ComponentUI createUI(JComponent c)
 o installUI
 public void installUI(JComponent c)
Overrides:
installUI in class ComponentUI
 o uninstallUI
 public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class ComponentUI
 o editablePropertyChanged
 public void editablePropertyChanged()
This method is called when the editable property changes.

Overrides:
editablePropertyChanged in class ComboBoxUI
 o enablePropertyChanged
 public void enablePropertyChanged()
This method is called when the enabled property changes

Overrides:
enablePropertyChanged in class ComboBoxUI
 o addEditor
 public void addEditor()
 o removeEditor
 public void removeEditor()
 o addArrowButton
 public void addArrowButton()
 o removeArrowButton
 public void removeArrowButton()
 o createListBox
 protected JList createListBox(ComboBoxModel aModel)
 o getList
 public JList getList()
This method asks the UI for the JList is using to display the contents of the ComboBox.

Overrides:
getList in class ComboBoxUI
 o createArrowButton
 protected JButton createArrowButton()
 o paint
 public void paint(Graphics g,
                   JComponent c)
Overrides:
paint in class ComponentUI
 o paintCurrentValue
 public void paintCurrentValue(Graphics g,
                               Rectangle bounds,
                               boolean hasFocus)
 o paintCurrentValueBackground
 public void paintCurrentValueBackground(Graphics g,
                                         Rectangle bounds,
                                         boolean hasFocus)
 o getDefaultSize
 protected Dimension getDefaultSize()
Return the dimension the the combo box should have if by default if there is no current value and no value in the list of possible values

 o getPreferredSize
 public Dimension getPreferredSize(JComponent c)
Overrides:
getPreferredSize in class ComponentUI
 o getMinimumSize
 public Dimension getMinimumSize(JComponent c)
Overrides:
getMinimumSize in class ComponentUI
 o getMaximumSize
 public Dimension getMaximumSize(JComponent c)
Overrides:
getMaximumSize in class ComponentUI
 o addLayoutComponent
 public void addLayoutComponent(String name,
                                Component comp)
 o removeLayoutComponent
 public void removeLayoutComponent(Component comp)
 o preferredLayoutSize
 public Dimension preferredLayoutSize(Container parent)
 o minimumLayoutSize
 public Dimension minimumLayoutSize(Container parent)
 o layoutContainer
 public void layoutContainer(Container parent)
 o itemStateChanged
 public void itemStateChanged(ItemEvent e)
 o focusGained
 public void focusGained(FocusEvent e)
 o focusLost
 public void focusLost(FocusEvent e)
 o mouseClicked
 public void mouseClicked(MouseEvent anEvent)
 o mouseEntered
 public void mouseEntered(MouseEvent anEvent)
 o mouseExited
 public void mouseExited(MouseEvent anEvent)
 o mouseReleased
 public void mouseReleased(MouseEvent anEvent)
 o mousePressed
 public void mousePressed(MouseEvent anEvent)
 o mouseDragged
 public void mouseDragged(MouseEvent anEvent)
 o mouseMoved
 public void mouseMoved(MouseEvent anEvent)
 o keyTyped
 public void keyTyped(KeyEvent e)
 o keyReleased
 public void keyReleased(KeyEvent e)
 o keyPressed
 public void keyPressed(KeyEvent e)
 o validateMenu
 public void validateMenu()
 o showPopup
 public void showPopup()
This method request the UI to show the popup

Overrides:
showPopup in class ComboBoxUI
 o hidePopup
 public void hidePopup()
This method request the UI to hide the popup

Overrides:
hidePopup in class ComboBoxUI
 o componentResized
 public void componentResized(ComponentEvent e)
 o componentMoved
 public void componentMoved(ComponentEvent e)
 o componentShown
 public void componentShown(ComponentEvent e)
 o componentHidden
 public void componentHidden(ComponentEvent e)
 o maximumRowCountChanged
 public void maximumRowCountChanged()
This method is called when the maximum number of rows is changing

Overrides:
maximumRowCountChanged in class ComboBoxUI

All Packages  Class Hierarchy  This Package  Previous  Next  Index