ComboBox

class ComboBox[A] extends Component with Publisher
Lets 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
Companion
object
class Component
trait PeerContainer
trait UIElement
trait LazyPublisher
trait Publisher
trait Reactor
trait Proxy
class Object
trait Matchable
class Any

Type members

Classlikes

object selection extends Publisher

Inherited classlikes

object mouse
Contains publishers for various mouse events. They are separated for
efficiency reasons.
Inhertied from
Component
object keys
Inhertied from
Component

Value members

Constructors

def this(model: Model[A])
def this(items: Seq[A])

Methods

def component: Component
Implicitly added by stringEditor
def startEditing(): Unit
Implicitly added by stringEditor
def component: Component
Implicitly added by intEditor
def startEditing(): Unit
Implicitly added by intEditor
def component: Component
Implicitly added by floatEditor
def startEditing(): Unit
Implicitly added by floatEditor
def component: Component
Implicitly added by doubleEditor
def startEditing(): Unit
Implicitly added by doubleEditor
def model: Model[A]
def model_=(value: Model[A]): Unit
def items: Seq[A]
def items_=(xs: Seq[A]): Unit
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 surprise.
def renderer_=(r: Renderer[A]): Unit
def editable: Boolean
def makeEditable(editor: ComboBox[A] => Editor[A]): Unit
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.
def prototypeDisplayValue: Option[A]
def prototypeDisplayValue_=(v: Option[A]): Unit

Fields

lazy val comboBoxPeer: ComboBoxEditor
Implicitly added by stringEditor
var item: A
Implicitly added by stringEditor
lazy val comboBoxPeer: ComboBoxEditor
Implicitly added by intEditor
var item: A
Implicitly added by intEditor
lazy val comboBoxPeer: ComboBoxEditor
Implicitly added by floatEditor
var item: A
Implicitly added by floatEditor
lazy val comboBoxPeer: ComboBoxEditor
Implicitly added by doubleEditor
var item: A
Implicitly added by doubleEditor
lazy override val peer: JComponent

Inherited methods

def deafTo(ps: Publisher*): Unit
Implicitly added by stringEditor
Installed reaction won't receive events from the given publisher anylonger.
Inhertied from
Reactor
def publish(e: Event): Unit
Implicitly added by stringEditor
Notify all registered reactions.
Inhertied from
Publisher
def listenTo(ps: Publisher*): Unit
Implicitly added by stringEditor
Listen to the given publisher as long as deafTo isn't called for
them.
Inhertied from
Reactor
def deafTo(ps: Publisher*): Unit
Implicitly added by intEditor
Installed reaction won't receive events from the given publisher anylonger.
Inhertied from
Reactor
def publish(e: Event): Unit
Implicitly added by intEditor
Notify all registered reactions.
Inhertied from
Publisher
def listenTo(ps: Publisher*): Unit
Implicitly added by intEditor
Listen to the given publisher as long as deafTo isn't called for
them.
Inhertied from
Reactor
def deafTo(ps: Publisher*): Unit
Implicitly added by floatEditor
Installed reaction won't receive events from the given publisher anylonger.
Inhertied from
Reactor
def publish(e: Event): Unit
Implicitly added by floatEditor
Notify all registered reactions.
Inhertied from
Publisher
def listenTo(ps: Publisher*): Unit
Implicitly added by floatEditor
Listen to the given publisher as long as deafTo isn't called for
them.
Inhertied from
Reactor
def deafTo(ps: Publisher*): Unit
Implicitly added by doubleEditor
Installed reaction won't receive events from the given publisher anylonger.
Inhertied from
Reactor
def publish(e: Event): Unit
Implicitly added by doubleEditor
Notify all registered reactions.
Inhertied from
Publisher
def listenTo(ps: Publisher*): Unit
Implicitly added by doubleEditor
Listen to the given publisher as long as deafTo isn't called for
them.
Inhertied from
Reactor
def scala$swing$LazyPublisher$$super$unsubscribe(listener: Reaction): Unit
Inhertied from
LazyPublisher
def foreground: Color
Inhertied from
UIElement
def bounds: Rectangle
Inhertied from
UIElement
def preferredSize_=(x: Dimension): Unit
Inhertied from
UIElement
def locale: Locale
Inhertied from
UIElement
def ignoreRepaint: Boolean
Inhertied from
UIElement
def visible: Boolean
Inhertied from
UIElement
def cursor: Cursor
Inhertied from
UIElement
def deafTo(ps: Publisher*): Unit
Installed reaction won't receive events from the given publisher anylonger.
Inhertied from
Reactor
def xLayoutAlignment_=(x: Double): Unit
Inhertied from
Component
def tooltip_=(t: String): Unit
Inhertied from
Component
def publish(e: Event): Unit
Notify all registered reactions.
Inhertied from
Publisher
def border: Border
Inhertied from
Component
def location: Point
Inhertied from
UIElement
def name_=(s: String): Unit
Inhertied from
Component
def yLayoutAlignment: Double
Inhertied from
Component
def ignoreRepaint_=(b: Boolean): Unit
Inhertied from
UIElement
def cursor_=(c: Cursor): Unit
Inhertied from
UIElement
def border_=(b: Border): Unit
Inhertied from
Component
def size: Dimension
Inhertied from
UIElement
def componentOrientation: ComponentOrientation
Inhertied from
UIElement
def toolkit: Toolkit
Inhertied from
UIElement
def name: String
Inhertied from
Component
def enabled: Boolean
Inhertied from
Component
def tooltip: String
Inhertied from
Component
def minimumSize: Dimension
Inhertied from
UIElement
def maximumSize: Dimension
Inhertied from
UIElement
override def toString: String
Definition Classes
Component -> Proxy -> Any
Inhertied from
Component
def background_=(c: Color): Unit
Inhertied from
UIElement
def font: Font
Inhertied from
UIElement
def listenTo(ps: Publisher*): Unit
Listen to the given publisher as long as deafTo isn't called for
them.
Inhertied from
Reactor
def validate(): Unit
Inhertied from
UIElement
def showing: Boolean
Inhertied from
UIElement
def focusable: Boolean
Inhertied from
Component
def enabled_=(b: Boolean): Unit
Inhertied from
Component
def componentOrientation_=(x: ComponentOrientation): Unit
Inhertied from
UIElement
def visible_=(b: Boolean): Unit
Inhertied from
UIElement
def font_=(f: Font): Unit
Inhertied from
UIElement
def repaint(rect: Rectangle): Unit
Inhertied from
UIElement
def repaint(): Unit
Inhertied from
UIElement
override def unsubscribe(listener: Reaction): Unit
Definition Classes
LazyPublisher -> Publisher
Inhertied from
LazyPublisher
def preferredSize: Dimension
Inhertied from
UIElement
def background: Color
Inhertied from
UIElement
def displayable: Boolean
Inhertied from
UIElement
def maximumSize_=(x: Dimension): Unit
Inhertied from
UIElement
def yLayoutAlignment_=(y: Double): Unit
Inhertied from
Component
def self: Any
Inhertied from
UIElement
def locationOnScreen: Point
Inhertied from
UIElement
def scala$swing$LazyPublisher$$super$subscribe(listener: Reaction): Unit
Inhertied from
LazyPublisher
def focusable_=(b: Boolean): Unit
Inhertied from
Component
def paint(g: Graphics2D): Unit
Inhertied from
Component
override def subscribe(listener: Reaction): Unit
Definition Classes
LazyPublisher -> Publisher
Inhertied from
LazyPublisher
def opaque_=(b: Boolean): Unit
Inhertied from
Component
override def hashCode(): Int
Definition Classes
Proxy -> Any
Inhertied from
Proxy
def foreground_=(c: Color): Unit
Inhertied from
UIElement
def inputVerifier_=(v: Component => Boolean): Unit
Inhertied from
Component
def revalidate(): Unit
Inhertied from
Component
def xLayoutAlignment: Double
Used by certain layout managers, e.g., BoxLayout or OverlayLayout to
align components relative to each other.
Inhertied from
Component
def hasFocus: Boolean
Inhertied from
Component
def requestFocusInWindow(): Boolean
Inhertied from
Component
def opaque: Boolean
Inhertied from
Component
def inputVerifier: Component => Boolean
Inhertied from
Component
def minimumSize_=(x: Dimension): Unit
Inhertied from
UIElement
override def equals(that: Any): Boolean
Definition Classes
Proxy -> Any
Inhertied from
Proxy
def requestFocus(): Unit
Inhertied from
Component

Inherited fields

protected val listeners: RefSet[Reaction]
Implicitly added by stringEditor
Inhertied from
Publisher
val reactions: Reactions
Implicitly added by stringEditor
All reactions of this reactor.
Inhertied from
Reactor
protected val listeners: RefSet[Reaction]
Implicitly added by intEditor
Inhertied from
Publisher
val reactions: Reactions
Implicitly added by intEditor
All reactions of this reactor.
Inhertied from
Reactor
protected val listeners: RefSet[Reaction]
Implicitly added by floatEditor
Inhertied from
Publisher
val reactions: Reactions
Implicitly added by floatEditor
All reactions of this reactor.
Inhertied from
Reactor
protected val listeners: RefSet[Reaction]
Implicitly added by doubleEditor
Inhertied from
Publisher
val reactions: Reactions
Implicitly added by doubleEditor
All reactions of this reactor.
Inhertied from
Reactor
val reactions: Reactions
All reactions of this reactor.
Inhertied from
Reactor
protected val listeners: RefSet[Reaction]
Inhertied from
Publisher