javax.swing.JComboBox .
| Modifier and Type | Class and Description |
|---|---|
| private class | SynthComboBoxUI.
Handles all the logic for treating the combo as a button when it is not editable, and when shouldActLikeButton() is true. |
| private static class | SynthComboBoxUI.
Handler for updating combobox enabled status when renderer enabled status changes |
| private static class | SynthComboBoxUI.
Handler for repainting combo when editor component gains/looses focus |
| private static class | |
| private class | SynthComboBoxUI.
From BasicComboBoxRenderer v 1.18. |
| Modifier and Type | Field and Description |
|---|---|
| private SynthComboBoxUI. | buttonHandler
When buttonWhenNotEditable is true, this field is used to help make the combo box appear and function as a button when the combo box is not editable. |
| private boolean | buttonWhenNotEditable
This flag may be set via UIDefaults. |
| private SynthComboBoxUI. | |
| private SynthComboBoxUI. | editorFocusHandler
Handler for repainting combo when editor component gains/looses focus |
| private boolean | forceOpaque
If true, then the cell renderer will be forced to be non-opaque when used for rendering the selected item in the combo box (not in the list), and forced to opaque after rendering the selected value. |
| pack-priv Insets | popupInsets
Used to adjust the location and size of the popup. |
| private boolean | pressedWhenPopupVisible
A flag to indicate that the combo box and combo box button should remain in the PRESSED state while the combo popup is visible. |
| private SynthStyle | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected JButton | createArrowButton()
Overrides javax. Creates a button which will be used as the control to show or hide the popup portion of the combo box. |
| protected ComboBoxEditor | createEditor()
Overrides javax. Creates the default editor that will be used in editable combo boxes. |
| protected ComboPopup | createPopup()
Overrides javax. Creates the popup portion of the combo box. |
| protected ListCellRenderer | createRenderer()
Overrides javax. Creates the default renderer that will be used in a non-editiable combo box. |
| public static ComponentUI | Returns: the UI objectcomponent to create UI object for c)Hides javax. Creates a new UI object for the given component. |
| private int | |
| public SynthContext | getContext(JComponent c)
Implements javax. Returns the Context for the specified component. |
| private SynthContext | |
| protected Dimension | Returns: the size of an empty display areaOverrides javax. Returns the default size of an empty display area of the combo box using the current renderer and font. |
| public Dimension | getMinimumSize(JComponent c)
Overrides javax. The minimum size is the size of the display area plus insets plus the button. |
| protected void | installDefaults()
Overrides javax. Installs the default colors, default font, default renderer, and default editor into the JComboBox. |
| protected void | installListeners()
Overrides javax. Creates and installs listeners for the combo box and its model. |
| public void | installUI(JComponent c)
Overrides javax. Configures the specified component appropriately for the look and feel. |
| public void | paint(Graphics
the g, JComponent Graphics object used for paintingthe component being painted c)Overrides javax. Paints the specified component according to the Look and Feel. |
| protected void | paint(SynthContext
context for the component being painted context, Graphics the g)Graphics object used for paintingPaints the specified component. |
| public void | paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
Implements javax. Paints the border. |
| public void | paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)
Overrides javax. Paints the currently selected item. |
| public void | propertyChange(PropertyChangeEvent e)
Implements java. This method gets called when a bound property is changed. |
| private boolean | |
| protected void | uninstallDefaults()
Overrides javax. Uninstalls the default colors, default font, default renderer, and default editor from the combo box. |
| protected void | uninstallListeners()
Overrides javax. Removes the installed listeners from the combo box and its model. |
| public void | uninstallUI(JComponent c)
Overrides javax. Reverses configuration which was done on the specified component during
|
| public void | update(Graphics
the g, JComponent Graphics object used for paintingthe component being painted c)Overrides javax. Notifies this UI delegate to repaint the specified component. |
| private void |