Liking cljdoc? Tell your friends :D

javax.swing.plaf.basic.BasicComboBoxUI

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
raw docstring

*create-uiclj

(*create-ui c)

c - javax.swing.JComponent

returns: javax.swing.plaf.ComponentUI

c - `javax.swing.JComponent`

returns: `javax.swing.plaf.ComponentUI`
raw docstring

->basic-combo-box-uiclj

(->basic-combo-box-ui)

Constructor.

Constructor.
raw docstring

add-editorclj

(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
raw docstring

configure-arrow-buttonclj

(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.
raw docstring

focus-traversable?clj

(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`
raw docstring

get-accessible-childclj

(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`
raw docstring

get-accessible-children-countclj

(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`
raw docstring

get-baselineclj

(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
raw docstring

get-baseline-resize-behaviorclj

(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
raw docstring

get-maximum-sizeclj

(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`
raw docstring

get-minimum-sizeclj

(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`
raw docstring

get-preferred-sizeclj

(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`
raw docstring

install-uiclj

(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`
raw docstring

paintclj

(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`
raw docstring

paint-current-valueclj

(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`
raw docstring

paint-current-value-backgroundclj

(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`
raw docstring

(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`
raw docstring

remove-editorclj

(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.
raw docstring

set-popup-visibleclj

(set-popup-visible this c v)

Hides the popup.

c - javax.swing.JComboBox v - boolean

Hides the popup.

c - `javax.swing.JComboBox`
v - `boolean`
raw docstring

unconfigure-arrow-buttonclj

(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.
raw docstring

uninstall-uiclj

(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`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close