CheckBox
classin packageklyn.gui.windows
public class CheckBox extends AbstractButton:
box = CheckBox("Enable limiter")
Binding.watch(box::isChecked, lambda(value: Object): print(value))
Properties
| Modifier and Type |
Member |
Description |
| public signal property |
isChecked |
Checked state observed by the data-binding engine. |
Properties inherited from Widget: accentColor,
backgroundColor,
borderColor,
bottom,
canFocus,
cornerRadius,
font,
foregroundColor,
hasFocus,
height,
isEnabled,
isHovered,
isManaged,
isTabStop,
isVisible,
layoutParams,
margin,
maxHeight,
maxWidth,
minHeight,
minWidth,
parent,
preferredHeight,
preferredWidth,
right,
sizePolicy,
styleClass,
width,
window,
x,
y
Constructors
| Modifier and Type |
Member |
Description |
| public |
CheckBox |
No summary. |
Methods
| Modifier and Type |
Member |
Description |
| public |
checkedValue |
Returns 1 when checked, otherwise 0. |
| public override |
click click() as Void:
|
Toggles the checked state, notifies Binding.watch, then emits the inherited clicked action event. |
| public override |
paint |
Paints the check box using the active KSS colors. |
Methods inherited from Widget: blur,
containsPoint,
emitKeyPressed,
emitKeyReleased,
emitMouseMoved,
emitMousePressed,
emitMouseReleased,
emitMouseWheel,
handleTabKey,
notifyPaintRequested,
paint,
paintOverlay,
repaint,
requestFocus,
resolvePreferredHeight,
resolvePreferredWidth,
resolvedFont,
setBounds