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. |
protected ComboBoxEditor | createEditor()
Overrides javax. |
protected ComboPopup | createPopup()
Overrides javax. |
protected ListCellRenderer | createRenderer()
Overrides javax. |
public static ComponentUI | Returns: the UI objectcomponent to create UI object for c)
Creates a new UI object for the given component.
|
private int | |
public SynthContext | getContext(JComponent
Component requesting SynthContext. c)Implements javax. |
private SynthContext | |
protected Dimension | Returns: the size of an empty display areaOverrides javax. |
public Dimension | getMinimumSize(JComponent
the component whose minimum size is being queried;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple components c)Overrides javax. |
protected void | installDefaults()
Overrides javax. |
protected void | installListeners()
Overrides javax. |
public void | installUI(JComponent
the component where this UI delegate is being installed c)
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. |
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
a component context context, Graphics Graphics to paint onthe X coordinate x, int the Y coordinate y, int width of the border w, int height of the border h)Implements javax. |
public void | paintCurrentValue(Graphics
an instance of g, Rectangle Graphics a bounding rectangle to render to bounds, boolean is focused hasFocus)Overrides javax. |
public void | propertyChange(PropertyChangeEvent
A PropertyChangeEvent object describing the event source
and the property that has changed. e)Implements java. |
private boolean | Returns: true if this combo box should act as one big button. Typically only happens when buttonWhenNotEditable is true, and comboBox.isEditable is false.
|
protected void | uninstallDefaults()
Overrides javax. |
protected void | uninstallListeners()
Overrides javax. |
public void | uninstallUI(JComponent
the component from which this UI delegate is being removed;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple components c)Overrides javax. installUI .
|
public void | update(Graphics
the g, JComponent Graphics object used for paintingthe component being painted c)Overrides javax. |
private void |