scala.swing.ListView

class AbstractRenderer

[source: scala/swing/ListView.scala]

abstract class AbstractRenderer[-A, C <: Component](protected val component : C)
extends Renderer[A]
A default renderer that maintains a single component for item rendering and preconfigures it to sensible defaults. It is polymorphic on the component's type so clients can easily use component specific attributes during configuration.
Method Summary
def componentFor (list : ListView[Any], isSelected : Boolean, hasFocus : Boolean, a : A, index : Int) : Component
Configures the component before returning it.
abstract def configure (list : ListView[Any], isSelected : Boolean, hasFocus : Boolean, a : A, index : Int) : Unit
Configuration that is specific to the component and this renderer.
def preConfigure (list : ListView[Any], isSelected : Boolean, hasFocus : Boolean, a : A, index : Int) : Unit
Standard preconfiguration that is commonly done for any component. This includes foreground and background colors, as well as colors of item selections.
Methods inherited from Renderer
peer
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def preConfigure(list : ListView[Any], isSelected : Boolean, hasFocus : Boolean, a : A, index : Int) : Unit
Standard preconfiguration that is commonly done for any component. This includes foreground and background colors, as well as colors of item selections.

abstract def configure(list : ListView[Any], isSelected : Boolean, hasFocus : Boolean, a : A, index : Int) : Unit
Configuration that is specific to the component and this renderer.

def componentFor(list : ListView[Any], isSelected : Boolean, hasFocus : Boolean, a : A, index : Int) : Component
Configures the component before returning it.
Overrides
Renderer.componentFor