Packages

c

scala.swing.ListView

AbstractRenderer

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

Linear Supertypes
Renderer[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractRenderer
  2. Renderer
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbstractRenderer(component: C)

Abstract Value Members

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

    Configuration that is specific to the component and this renderer.

Concrete Value Members

  1. 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.

    Definition Classes
    AbstractRendererRenderer
  2. def peer: ListCellRenderer[_ >: A]
    Definition Classes
    Renderer
  3. def preConfigure(list: ListView[_], isSelected: Boolean, focused: Boolean, a: A, index: Int): Unit

    Standard preconfiguration that is commonly done for any component.

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