Basic UI implementation for JComboBox.
The combo box is a compound component which means that it is an aggregate of many simpler components. This class creates and manages the listeners on the combo box and the combo box model. These listeners update the user interface in response to changes in the properties and state of the combo box.
All event handling is handled by listener classes created with the createxxxListener() methods and internal classes. You can change the behavior of this class by overriding the createxxxListener() methods and supplying your own event listeners or subclassing from the ones supplied in this class.
For adding specific actions, overide installKeyboardActions to add actions in response to KeyStroke bindings. See the article How to Use Key Bindings
Basic UI implementation for JComboBox. The combo box is a compound component which means that it is an aggregate of many simpler components. This class creates and manages the listeners on the combo box and the combo box model. These listeners update the user interface in response to changes in the properties and state of the combo box. All event handling is handled by listener classes created with the createxxxListener() methods and internal classes. You can change the behavior of this class by overriding the createxxxListener() methods and supplying your own event listeners or subclassing from the ones supplied in this class. For adding specific actions, overide installKeyboardActions to add actions in response to KeyStroke bindings. See the article How to Use Key Bindings
(*create-ui c)
c - javax.swing.JComponent
returns: javax.swing.plaf.ComponentUI
c - `javax.swing.JComponent` returns: `javax.swing.plaf.ComponentUI`
(add-editor this)
This public method is implementation specific and should be private. do not call or override. To implement a specific editor create a custom ComboBoxEditor
This public method is implementation specific and should be private. do not call or override. To implement a specific editor create a custom ComboBoxEditor
(configure-arrow-button this)
This public method is implementation specific and should be private. Do not call or override.
This public method is implementation specific and should be private. Do not call or override.
(focus-traversable? this c)
Determines if the JComboBox is focus traversable. If the JComboBox is editable this returns false, otherwise it returns true.
c - javax.swing.JComboBox
returns: boolean
Determines if the JComboBox is focus traversable. If the JComboBox is editable this returns false, otherwise it returns true. c - `javax.swing.JComboBox` returns: `boolean`
(get-accessible-child this c i)
Description copied from class: ComponentUI
c - javax.swing.JComponent
i - int
returns: the ith Accessible child of the object - javax.accessibility.Accessible
Description copied from class: ComponentUI c - `javax.swing.JComponent` i - `int` returns: the ith Accessible child of the object - `javax.accessibility.Accessible`
(get-accessible-children-count this c)
Description copied from class: ComponentUI
c - javax.swing.JComponent
returns: the number of accessible children in the object - int
Description copied from class: ComponentUI c - `javax.swing.JComponent` returns: the number of accessible children in the object - `int`
(get-baseline this c width height)
Returns the baseline.
c - JComponent baseline is being requested for - javax.swing.JComponent
width - the width to get the baseline for - int
height - the height to get the baseline for - int
returns: baseline or a value < 0 indicating there is no reasonable
baseline - int
throws: java.lang.NullPointerException - if c is null
Returns the baseline. c - JComponent baseline is being requested for - `javax.swing.JComponent` width - the width to get the baseline for - `int` height - the height to get the baseline for - `int` returns: baseline or a value < 0 indicating there is no reasonable baseline - `int` throws: java.lang.NullPointerException - if c is null
(get-baseline-resize-behavior this c)
Returns an enum indicating how the baseline of the component changes as the size changes.
c - JComponent to return baseline resize behavior for - javax.swing.JComponent
returns: an enum indicating how the baseline changes as the component
size changes - java.awt.Component$BaselineResizeBehavior
throws: java.lang.NullPointerException - if c is null
Returns an enum indicating how the baseline of the component changes as the size changes. c - JComponent to return baseline resize behavior for - `javax.swing.JComponent` returns: an enum indicating how the baseline changes as the component size changes - `java.awt.Component$BaselineResizeBehavior` throws: java.lang.NullPointerException - if c is null
(get-maximum-size this c)
Description copied from class: ComponentUI
c - the component whose maximum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - javax.swing.JComponent
returns: a Dimension object or null - java.awt.Dimension
Description copied from class: ComponentUI c - the component whose maximum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - `javax.swing.JComponent` returns: a Dimension object or null - `java.awt.Dimension`
(get-minimum-size this c)
The minimum size is the size of the display area plus insets plus the button.
c - 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 - javax.swing.JComponent
returns: a Dimension object or null - java.awt.Dimension
The minimum size is the size of the display area plus insets plus the button. c - 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 - `javax.swing.JComponent` returns: a Dimension object or null - `java.awt.Dimension`
(get-preferred-size this c)
Description copied from class: ComponentUI
c - the component whose preferred size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - javax.swing.JComponent
returns: java.awt.Dimension
Description copied from class: ComponentUI c - the component whose preferred size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - `javax.swing.JComponent` returns: `java.awt.Dimension`
(install-ui this c)
Description copied from class: ComponentUI
c - the component where this UI delegate is being installed - javax.swing.JComponent
Description copied from class: ComponentUI c - the component where this UI delegate is being installed - `javax.swing.JComponent`
(paint this g c)
Description copied from class: ComponentUI
g - the Graphics context in which to paint - java.awt.Graphics
c - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - javax.swing.JComponent
Description copied from class: ComponentUI g - the Graphics context in which to paint - `java.awt.Graphics` c - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - `javax.swing.JComponent`
(paint-current-value this g bounds has-focus)
Paints the currently selected item.
g - java.awt.Graphics
bounds - java.awt.Rectangle
has-focus - boolean
Paints the currently selected item. g - `java.awt.Graphics` bounds - `java.awt.Rectangle` has-focus - `boolean`
(paint-current-value-background this g bounds has-focus)
Paints the background of the currently selected item.
g - java.awt.Graphics
bounds - java.awt.Rectangle
has-focus - boolean
Paints the background of the currently selected item. g - `java.awt.Graphics` bounds - `java.awt.Rectangle` has-focus - `boolean`
(popup-visible? this c)
Tells if the popup is visible or not.
c - javax.swing.JComboBox
returns: boolean
Tells if the popup is visible or not. c - `javax.swing.JComboBox` returns: `boolean`
(remove-editor this)
This public method is implementation specific and should be private. do not call or override.
This public method is implementation specific and should be private. do not call or override.
(set-popup-visible this c v)
Hides the popup.
c - javax.swing.JComboBox
v - boolean
Hides the popup. c - `javax.swing.JComboBox` v - `boolean`
(unconfigure-arrow-button this)
This public method is implementation specific and should be private. Do not call or override.
This public method is implementation specific and should be private. Do not call or override.
(uninstall-ui this c)
Description copied from class: ComponentUI
c - 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 - javax.swing.JComponent
Description copied from class: ComponentUI c - 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 - `javax.swing.JComponent`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close