All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.swing.basic.BasicComboBoxUI
java.lang.Object
|
+----java.awt.swing.plaf.ComponentUI
|
+----java.awt.swing.plaf.ComboBoxUI
|
+----java.awt.swing.basic.BasicComboBoxUI
- public class BasicComboBoxUI
- extends ComboBoxUI
- implements LayoutManager, MouseListener, MouseMotionListener, ItemListener, FocusListener, KeyListener, ComponentListener, Serializable
Basic UI for JComboBox
comboBox-
currentValuePane-
editor-
listBox-
menu-
BasicComboBoxUI()
-
addArrowButton()
-
addEditor()
-
addLayoutComponent(String, Component)
-
componentHidden(ComponentEvent)
-
componentMoved(ComponentEvent)
-
componentResized(ComponentEvent)
-
componentShown(ComponentEvent)
-
configureComboBox()
-
createArrowButton()
-
createListBox(ComboBoxModel)
-
createUI(JComponent)
-
editablePropertyChanged()
- This method is called when the editable property changes.
enablePropertyChanged()
- This method is called when the enabled property changes
focusGained(FocusEvent)
-
focusLost(FocusEvent)
-
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
getList()
- This method asks the UI for the JList is using to display the
contents of the ComboBox.
getMaximumSize(JComponent)
-
getMinimumSize(JComponent)
-
getPopupHeightForRowCount(int)
-
getPreferredSize(JComponent)
-
hidePopup()
- This method request the UI to hide the popup
installUI(JComponent)
-
itemStateChanged(ItemEvent)
-
keyPressed(KeyEvent)
-
keyReleased(KeyEvent)
-
keyTyped(KeyEvent)
-
layoutContainer(Container)
-
maximumRowCountChanged()
- This method is called when the maximum number of rows is changing
minimumLayoutSize(Container)
-
mouseClicked(MouseEvent)
-
mouseDragged(MouseEvent)
-
mouseEntered(MouseEvent)
-
mouseExited(MouseEvent)
-
mouseMoved(MouseEvent)
-
mousePressed(MouseEvent)
-
mouseReleased(MouseEvent)
-
paint(Graphics, JComponent)
-
paintCurrentValue(Graphics, Rectangle, boolean)
-
paintCurrentValueBackground(Graphics, Rectangle, boolean)
-
preferredLayoutSize(Container)
-
rectangleForCurrentValue()
-
removeArrowButton()
-
removeEditor()
-
removeLayoutComponent(Component)
-
shouldActivatePopupForEvent(MouseEvent)
-
showPopup()
- This method request the UI to show the popup
unconfigureComboBox()
-
uninstallUI(JComponent)
-
validateMenu()
-
comboBox
protected JComboBox comboBox
currentValuePane
protected CellRendererPane currentValuePane
editor
protected Component editor
menu
protected JPopupMenu menu
listBox
protected JList listBox
BasicComboBoxUI
public BasicComboBoxUI()
createUI
public static ComponentUI createUI(JComponent c)
installUI
public void installUI(JComponent c)
- Overrides:
- installUI in class ComponentUI
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
- uninstallUI in class ComponentUI
configureComboBox
protected void configureComboBox()
unconfigureComboBox
protected void unconfigureComboBox()
editablePropertyChanged
public void editablePropertyChanged()
- This method is called when the editable property changes.
- Overrides:
- editablePropertyChanged in class ComboBoxUI
enablePropertyChanged
public void enablePropertyChanged()
- This method is called when the enabled property changes
- Overrides:
- enablePropertyChanged in class ComboBoxUI
addEditor
public void addEditor()
removeEditor
public void removeEditor()
addArrowButton
public void addArrowButton()
removeArrowButton
public void removeArrowButton()
createListBox
protected JList createListBox(ComboBoxModel aModel)
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
createArrowButton
protected JButton createArrowButton()
paint
public void paint(Graphics g,
JComponent c)
- Overrides:
- paint in class ComponentUI
paintCurrentValue
public void paintCurrentValue(Graphics g,
Rectangle bounds,
boolean hasFocus)
paintCurrentValueBackground
public void paintCurrentValueBackground(Graphics g,
Rectangle bounds,
boolean hasFocus)
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
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
- getPreferredSize in class ComponentUI
getMinimumSize
public Dimension getMinimumSize(JComponent c)
- Overrides:
- getMinimumSize in class ComponentUI
getMaximumSize
public Dimension getMaximumSize(JComponent c)
- Overrides:
- getMaximumSize in class ComponentUI
addLayoutComponent
public void addLayoutComponent(String name,
Component comp)
removeLayoutComponent
public void removeLayoutComponent(Component comp)
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
rectangleForCurrentValue
protected Rectangle rectangleForCurrentValue()
layoutContainer
public void layoutContainer(Container parent)
itemStateChanged
public void itemStateChanged(ItemEvent e)
focusGained
public void focusGained(FocusEvent e)
focusLost
public void focusLost(FocusEvent e)
mouseClicked
public void mouseClicked(MouseEvent anEvent)
mouseEntered
public void mouseEntered(MouseEvent anEvent)
mouseExited
public void mouseExited(MouseEvent anEvent)
mouseReleased
public void mouseReleased(MouseEvent anEvent)
shouldActivatePopupForEvent
protected boolean shouldActivatePopupForEvent(MouseEvent anEvent)
mousePressed
public void mousePressed(MouseEvent anEvent)
mouseDragged
public void mouseDragged(MouseEvent anEvent)
mouseMoved
public void mouseMoved(MouseEvent anEvent)
keyTyped
public void keyTyped(KeyEvent e)
keyReleased
public void keyReleased(KeyEvent e)
keyPressed
public void keyPressed(KeyEvent e)
validateMenu
public void validateMenu()
showPopup
public void showPopup()
- This method request the UI to show the popup
- Overrides:
- showPopup in class ComboBoxUI
hidePopup
public void hidePopup()
- This method request the UI to hide the popup
- Overrides:
- hidePopup in class ComboBoxUI
componentResized
public void componentResized(ComponentEvent e)
componentMoved
public void componentMoved(ComponentEvent e)
componentShown
public void componentShown(ComponentEvent e)
componentHidden
public void componentHidden(ComponentEvent e)
getPopupHeightForRowCount
protected int getPopupHeightForRowCount(int maxRowCount)
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
Submit a bug or feature