scala.swing

ComboBox

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.

go to: companion
source: ComboBox.scala
    see also:
  1. javax.swing.JComboBox

Inherited
  1. Hide All
  2. Show all
  1. Component
  2. UIElement
  3. LazyPublisher
  4. Publisher
  5. Reactor
  6. Proxy
  7. AnyRef
  8. Any
Visibility
  1. Public
  2. All

Instance constructors

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

Type Members

  1. trait SuperMixin extends JComponent

    This trait is used to redirect certain calls from the peer to the wrapper and back.

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  7. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  8. lazy val Mouse: mouse

  9. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  10. def background: Color

  11. def background_=(c: Color): Unit

  12. def border: Border

  13. def border_=(b: Border): Unit

  14. def bounds: Rectangle

  15. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

  16. def cursor: Cursor

  17. def cursor_=(c: Cursor): Unit

  18. def deafTo(ps: Publisher*): Unit

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

  19. def displayable: Boolean

  20. def editable: Boolean

  21. def enabled: Boolean

  22. def enabled_=(b: Boolean): Unit

  23. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  24. def equals(that: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

  25. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

  26. def focusable: Boolean

  27. def focusable_=(b: Boolean): Unit

  28. def font: Font

  29. def font_=(f: Font): Unit

  30. def foreground: Color

  31. def foreground_=(c: Color): Unit

  32. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

  33. def hasFocus: Boolean

  34. def hashCode(): Int

    Returns a hash code value for the object.

  35. def ignoreRepaint: Boolean

  36. def ignoreRepaint_=(b: Boolean): Unit

  37. var initP: JComponent

  38. def inputVerifier: (Component) ⇒ Boolean

  39. def inputVerifier_=(v: (Component) ⇒ Boolean): Unit

  40. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  41. object keys extends Publisher

  42. def listenTo(ps: Publisher*): Unit

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

  43. val listeners: RefSet[PartialFunction[Event, Unit]] {...}

  44. def locale: Locale

  45. def location: Point

  46. def locationOnScreen: Point

  47. def makeEditable()(implicit editor: (ComboBox[A]) ⇒ Editor[A]): Unit

    Makes this combo box editable.

  48. def maximumSize: Dimension

  49. def maximumSize_=(x: Dimension): Unit

  50. def minimumSize: Dimension

  51. def minimumSize_=(x: Dimension): Unit

  52. object mouse extends AnyRef

    Contains publishers for various mouse events.

  53. def name: String

  54. def name_=(s: String): Unit

  55. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  56. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  57. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  58. def onFirstSubscribe(): Unit

  59. def onLastUnsubscribe(): Unit

  60. def opaque: Boolean

  61. def opaque_=(b: Boolean): Unit

  62. def paint(g: Graphics2D): Unit

  63. def paintBorder(g: Graphics2D): Unit

  64. def paintChildren(g: Graphics2D): Unit

  65. def paintComponent(g: Graphics2D): Unit

    For custom painting, users should usually override this method.

  66. lazy val peer: JComboBox

    The underlying Swing peer.

  67. def preferredSize: Dimension

  68. def preferredSize_=(x: Dimension): Unit

  69. def prototypeDisplayValue: Option[A]

  70. def prototypeDisplayValue_=(v: Option[A]): Unit

  71. def publish(e: Event): Unit

    Notify all registered reactions.

  72. val reactions: Reactions

    All reactions of this reactor.

  73. def renderer: Renderer[A]

    Sets the renderer for this combo box's items.

  74. def renderer_=(r: Renderer[A]): Unit

  75. def repaint(rect: Rectangle): Unit

  76. def repaint(): Unit

  77. def requestFocus(): Unit

  78. def requestFocusInWindow(): Boolean

  79. def revalidate(): Unit

  80. object selection extends Publisher

  81. def self: Component

  82. def showing: Boolean

  83. def size: Dimension

  84. def size_=(dim: Dimension): Unit

  85. def subscribe(listener: PartialFunction[Event, Unit]): Unit

  86. def synchronized[T0](arg0: T0): T0

  87. def toString(): String

    Returns a string representation of the object.

  88. def toolkit: Toolkit

  89. def tooltip: String

  90. def tooltip_=(t: String): Unit

  91. def unsubscribe(listener: PartialFunction[Event, Unit]): Unit

  92. def visible: Boolean

  93. def visible_=(b: Boolean): Unit

  94. def wait(): Unit

  95. def wait(arg0: Long, arg1: Int): Unit

  96. def wait(arg0: Long): Unit

  97. def xLayoutAlignment: Double

    Used by certain layout managers, e.

  98. def xLayoutAlignment_=(x: Double): Unit

  99. def yLayoutAlignment: Double

  100. def yLayoutAlignment_=(y: Double): Unit