class ComboBox[A] extends Component with Publisher

Let's the user make a selection from a list of predefined items. Visually, this is implemented as a button-like component with a pull-down menu.

See also

javax.swing.JComboBox

Linear Supertypes
Component, UIElement, LazyPublisher, Publisher, Reactor, Proxy, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ComboBox
  2. Component
  3. UIElement
  4. LazyPublisher
  5. Publisher
  6. Reactor
  7. Proxy
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ComboBox(items: Seq[A])

Value Members

  1. def background: Color
    Definition Classes
    UIElement
  2. def background_=(c: Color): Unit
    Definition Classes
    UIElement
  3. def border: Border
    Definition Classes
    Component
  4. def border_=(b: Border): Unit
    Definition Classes
    Component
  5. def bounds: Rectangle
    Definition Classes
    UIElement
  6. def componentOrientation: ComponentOrientation
    Definition Classes
    UIElement
  7. def componentOrientation_=(x: ComponentOrientation): Unit
    Definition Classes
    UIElement
  8. def cursor: Cursor
    Definition Classes
    UIElement
  9. def cursor_=(c: Cursor): Unit
    Definition Classes
    UIElement
  10. def deafTo(ps: Publisher*): Unit

    Installed reaction won't receive events from the given publisher anylonger.

    Installed reaction won't receive events from the given publisher anylonger.

    Definition Classes
    Reactor
  11. def displayable: Boolean
    Definition Classes
    UIElement
  12. def editable: Boolean
  13. def enabled: Boolean
    Definition Classes
    Component
  14. def enabled_=(b: Boolean): Unit
    Definition Classes
    Component
  15. def equals(that: Any): Boolean
    Definition Classes
    Proxy → Any
  16. def focusable: Boolean
    Definition Classes
    Component
  17. def focusable_=(b: Boolean): Unit
    Definition Classes
    Component
  18. def font: Font
    Definition Classes
    UIElement
  19. def font_=(f: Font): Unit
    Definition Classes
    UIElement
  20. def foreground: Color
    Definition Classes
    UIElement
  21. def foreground_=(c: Color): Unit
    Definition Classes
    UIElement
  22. def hasFocus: Boolean
    Definition Classes
    Component
  23. def hashCode(): Int
    Definition Classes
    Proxy → Any
  24. def ignoreRepaint: Boolean
    Definition Classes
    UIElement
  25. def ignoreRepaint_=(b: Boolean): Unit
    Definition Classes
    UIElement
  26. var initP: JComponent
    Definition Classes
    Component
  27. def inputVerifier: (Component) ⇒ Boolean
    Definition Classes
    Component
  28. def inputVerifier_=(v: (Component) ⇒ Boolean): Unit
    Definition Classes
    Component
  29. def listenTo(ps: Publisher*): Unit

    Listen to the given publisher as long as deafTo isn't called for them.

    Listen to the given publisher as long as deafTo isn't called for them.

    Definition Classes
    Reactor
  30. def locale: Locale
    Definition Classes
    UIElement
  31. def location: Point
    Definition Classes
    UIElement
  32. def locationOnScreen: Point
    Definition Classes
    UIElement
  33. def makeEditable()(implicit editor: (ComboBox[A]) ⇒ Editor[A]): Unit

    Makes this combo box editable.

    Makes this combo box editable. In order to do so, this combo needs an editor which is supplied by the implicit argument. For default editors, see ComboBox companion object.

  34. def maximumRowCount: Int

    Maximum number of rows to display without scrolling

  35. def maximumRowCount_=(c: Int): Unit

    Maximum number of rows to display without scrolling

  36. def maximumSize: Dimension
    Definition Classes
    UIElement
  37. def maximumSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  38. def minimumSize: Dimension
    Definition Classes
    UIElement
  39. def minimumSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  40. def name: String
    Definition Classes
    Component
  41. def name_=(s: String): Unit
    Definition Classes
    Component
  42. def opaque: Boolean
    Definition Classes
    Component
  43. def opaque_=(b: Boolean): Unit
    Definition Classes
    Component
  44. def paint(g: Graphics2D): Unit
    Definition Classes
    Component
  45. lazy val peer: JComboBox[A]

    The underlying Swing peer.

    The underlying Swing peer.

    Definition Classes
    ComboBoxComponentUIElement
  46. def preferredSize: Dimension
    Definition Classes
    UIElement
  47. def preferredSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  48. def prototypeDisplayValue: Option[A]
  49. def prototypeDisplayValue_=(v: Option[A]): Unit
  50. def publish(e: Event): Unit

    Notify all registered reactions.

    Notify all registered reactions.

    Definition Classes
    Publisher
  51. val reactions: Reactions

    All reactions of this reactor.

    All reactions of this reactor.

    Definition Classes
    Reactor
  52. def renderer: Renderer[A]

    Sets the renderer for this combo box's items.

    Sets the renderer for this combo box's items. Index -1 is passed to the renderer for the selected item (not in the pull-down menu).

    The underlying combo box renders all items in a ListView (both, in the pull-down menu as well as in the box itself), hence the ListView.Renderer.

    Note that the UI peer of a combo box usually changes the colors of the component to its own defaults _after_ the renderer has been configured. That's Swing's principle of most suprise.

  53. def renderer_=(r: Renderer[A]): Unit
  54. def repaint(rect: Rectangle): Unit
    Definition Classes
    UIElement
  55. def repaint(): Unit
    Definition Classes
    UIElement
  56. def requestFocus(): Unit
    Definition Classes
    Component
  57. def requestFocusInWindow(): Boolean
    Definition Classes
    Component
  58. def revalidate(): Unit
    Definition Classes
    Component
  59. def self: java.awt.Component
    Definition Classes
    UIElement → Proxy
  60. def showing: Boolean
    Definition Classes
    UIElement
  61. def size: Dimension
    Definition Classes
    UIElement
  62. def subscribe(listener: Reaction): Unit
    Definition Classes
    LazyPublisher → Publisher
  63. def toString(): String
    Definition Classes
    Component → Proxy → AnyRef → Any
  64. def toolkit: Toolkit
    Definition Classes
    UIElement
  65. def tooltip: String
    Definition Classes
    Component
  66. def tooltip_=(t: String): Unit
    Definition Classes
    Component
  67. def unsubscribe(listener: Reaction): Unit
    Definition Classes
    LazyPublisher → Publisher
  68. def validate(): Unit
    Definition Classes
    UIElement
  69. def visible: Boolean
    Definition Classes
    UIElement
  70. def visible_=(b: Boolean): Unit
    Definition Classes
    UIElement
  71. def xLayoutAlignment: Double

    Used by certain layout managers, e.g., BoxLayout or OverlayLayout to align components relative to each other.

    Used by certain layout managers, e.g., BoxLayout or OverlayLayout to align components relative to each other.

    Definition Classes
    Component
  72. def xLayoutAlignment_=(x: Double): Unit
    Definition Classes
    Component
  73. def yLayoutAlignment: Double
    Definition Classes
    Component
  74. def yLayoutAlignment_=(y: Double): Unit
    Definition Classes
    Component
  75. object selection extends Publisher
  76. object keys extends Publisher
    Definition Classes
    Component
  77. object mouse

    Contains publishers for various mouse events.

    Contains publishers for various mouse events. They are separated for efficiency reasons.

    Definition Classes
    Component