CheckBox

class CheckBox(val label: Label, isChecked: Boolean = true, skin: CheckButtonSkin = SkinProvider.skin.checkButton, handler: CheckBox.() -> Unit? = null) : AbstractButton<CheckButtonSkin>

Constructors

Link copied to clipboard
constructor(text: String = "", isChecked: Boolean = true, skin: CheckButtonSkin = SkinProvider.skin.checkButton, handler: CheckBox.() -> Unit? = null)
constructor(label: String, property: KMutableProperty0<Boolean>, skin: CheckButtonSkin = SkinProvider.skin.checkButton)
constructor(label: Label, isChecked: Boolean = true, skin: CheckButtonSkin = SkinProvider.skin.checkButton, handler: CheckBox.() -> Unit? = null)

Properties

Link copied to clipboard
open override val children: List<Node>
Link copied to clipboard
val clickEvent: EmptySignal
Link copied to clipboard
open override val drawer: ElementDrawer?
Link copied to clipboard
open override val input: ButtonLogic
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val layout: OrientationLayout
Link copied to clipboard
open override val placement: ElementPlacement
Link copied to clipboard
Link copied to clipboard
open override var tag: String
Link copied to clipboard
open override var update: ElementUpdate?

You can place any custom actions for run before element draw

Functions

Link copied to clipboard
fun click()
Link copied to clipboard
open override fun invalidateLayout()
Link copied to clipboard
fun setChecked(isChecked: Boolean): CheckBox
Link copied to clipboard
Link copied to clipboard
fun setListener(handler: CheckBox.() -> Unit): CheckBox
fun setListener(isChecked: Boolean = true, handler: CheckBox.() -> Unit): CheckBox
Link copied to clipboard
Link copied to clipboard