ListView

class ListView[A] extends Component
A component that displays a number of elements in a list. A list view does
not support inline editing of items. If you need it, use a table view instead.
Named ListView to avoid a clash with the frequently used
scala.List
See also
javax.swing.JList
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
The current item selection.

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 model: Model[A]
def model_=(value: Model[A]): Unit
def items: Seq[A]
def items_=(xs: Seq[A]): Unit
def renderer_=(r: Renderer[A]): Unit
def fixedCellWidth: Int
def fixedCellWidth_=(x: Int): Unit
def fixedCellHeight: Int
def fixedCellHeight_=(x: Int): Unit
def prototypeCellValue_=(a: A): Unit
def visibleRowCount: Int
def visibleRowCount_=(n: Int): Unit
def ensureIndexIsVisible(idx: Int): Unit
def selectionForeground_=(c: Color): Unit
def selectionBackground_=(c: Color): Unit
def selectIndices(ind: Int*): Unit
def dragEnabled: Boolean
def dragEnabled_=(value: Boolean): Unit
def dropMode_=(value: Value): Unit

Fields

lazy override val peer: JComponent

Inherited methods

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 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 visible: Boolean
Inhertied from
UIElement
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 paint(g: Graphics2D): Unit
Inhertied from
Component
def scala$swing$LazyPublisher$$super$subscribe(listener: Reaction): Unit
Inhertied from
LazyPublisher
def focusable_=(b: Boolean): 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

val reactions: Reactions
All reactions of this reactor.
Inhertied from
Reactor
protected val listeners: RefSet[Reaction]
Inhertied from
Publisher