BasicMonthPanelBehavior

class BasicMonthPanelBehavior(    background: Paint,     defaultVisualizer: ItemVisualizer<LocalDate, MonthPanel> = itemVisualizer { day, previous, panel -> val text = "${day.dayOfMonth}" when (previous) { is Label -> previous.apply { this.text = text } else -> Label(text) }.also { it.enabled = day.month == panel.startDate.month } }) : MonthPanelBehavior(source)

Created by Nicholas Eddy on 2/21/22.

Constructors

Link copied to clipboard
constructor(    background: Paint,     defaultVisualizer: ItemVisualizer<LocalDate, MonthPanel> = itemVisualizer { day, previous, panel -> val text = "${day.dayOfMonth}" when (previous) { is Label -> previous.apply { this.text = text } else -> Label(text) }.also { it.enabled = day.month == panel.startDate.month } })

Functions

Link copied to clipboard
Link copied to clipboard
open override fun render(view: MonthPanel, canvas: Canvas)

Inherited functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun contains(view: MonthPanel, point: Point): Boolean
Link copied to clipboard
open fun install(view: MonthPanel)
Link copied to clipboard
Link copied to clipboard
open fun uninstall(view: MonthPanel)