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
Ordering
- Alphabetic
- By Inheritance
Inherited
- AbstractRenderer
- Renderer
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new AbstractRenderer(component: C)
Abstract Value Members
Concrete Value Members
-
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
- AbstractRenderer → Renderer
-
def
peer: ListCellRenderer[_ >: A]
- Definition Classes
- Renderer
-
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.