scala.swing

class ListView

[source: scala/swing/ListView.scala]

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
Additional Constructor Summary
def this (items : Sequence[A]) : ListView[A]
Value Summary
override lazy val peer : javax.swing.JList
The underlying Swing peer.
Values and Variables inherited from Component
initP, Mouse
Values and Variables inherited from Publisher
listeners
Values and Variables inherited from Reactor
reactions
Method Summary
def fixedCellHeight : Int
def fixedCellHeight_= (x : Int) : Unit
def fixedCellWidth : Int
def fixedCellWidth_= (x : Int) : Unit
def listData : Sequence[A]
def listData_= (items : Sequence[A]) : Unit
def prototypeCellValue : A
def prototypeCellValue_= (a : A) : Unit
def renderer : Renderer[A]
def renderer_= (r : Renderer[A]) : Unit
def selectionBackground : java.awt.Color
def selectionBackground_= (c : java.awt.Color) : Unit
def selectionForeground : java.awt.Color
def selectionForeground_= (c : java.awt.Color) : Unit
Methods inherited from Component
xLayoutAlignment, xLayoutAlignment_=, yLayoutAlignment, yLayoutAlignment_=, border, border_=, opaque, opaque_=, enabled, enabled_=, tooltip, tooltip_=, inputVerifier, inputVerifier_=, focusable, focusable_=, requestFocus, requestFocusInWindow, hasFocus, onFirstSubscribe, revalidate, paintComponent, paint, toString
Methods inherited from UIElement
self, foreground, foreground_=, background, background_=, minimumSize, minimumSize_=, maximumSize, maximumSize_=, preferredSize, preferredSize_=, preferredSize_=, font, font_=, locationOnScreen, location, bounds, size, size_=, size_=, locale, toolkit, cursor, cursor_=, visible, visible_=, showing, displayable, repaint, repaint, ignoreRepaint, ignoreRepaint_=, onLastUnsubscribe
Methods inherited from scala.swing.LazyPublisher
scala.swing.LazyPublisher.subscribe, scala.swing.LazyPublisher.unsubscribe
Methods inherited from Publisher
publish
Methods inherited from Reactor
listenTo, deafTo
Methods inherited from Proxy
hashCode, equals
Methods inherited from AnyRef
getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Class Summary
protected class ModelWrapper (val items : Sequence[A]) extends javax.swing.AbstractListModel with AnyRef
Object Summary
object selection extends Publisher
The current item selection.
Additional Constructor Details
def this(items : Sequence[A]) : ListView[A]

Value Details
override lazy val peer : javax.swing.JList
The underlying Swing peer.
Overrides
Component.peer

Method Details
def listData : Sequence[A]

def listData_=(items : Sequence[A]) : Unit

def renderer : Renderer[A]

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

def prototypeCellValue_=(a : A) : Unit

def selectionForeground : java.awt.Color

def selectionForeground_=(c : java.awt.Color) : Unit

def selectionBackground : java.awt.Color

def selectionBackground_=(c : java.awt.Color) : Unit