AbstractRenderer

abstract class AbstractRenderer[-A, C <: Component](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.

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.

class Renderer[A]
class Object
trait Matchable
class Any

Value members

Abstract methods

def configure(list: ListView[_], isSelected: Boolean, focused: Boolean, a: A, index: Int): Unit

Configuration that is specific to the component and this renderer.

Configuration that is specific to the component and this renderer.

Concrete methods

def componentFor(list: ListView[_ <: A], isSelected: Boolean, focused: Boolean, a: A, index: Int): Component

Configures the component before returning it.

Configures the component before returning it.

def preConfigure(list: ListView[_], isSelected: Boolean, focused: 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.

Standard preconfiguration that is commonly done for any component. This includes foreground and background colors, as well as colors of item selections.

Inherited methods

def peer: ListCellRenderer[_ >: A]
Inherited from
Renderer

Concrete fields

protected val component: C