Spinner
classin packageklyn.gui.windows
public class Spinner extends SpinBox:
└ SpinBox
└ Spinner

Alias for SpinBox using the more common spinner naming.

Spinner keeps the same behavior as SpinBox: the value property is a signal property and can be used directly with Binding.oneWay, Binding.twoWay and Binding.watch.

spinner = Spinner(value=10, minimum=0, maximum=255)
Binding.watch(spinner::value, lambda(value: Object): print(value))
Attributes inherited from Widget: keyPressed, keyReleased, mouseMoved, mousePressed, mouseReleased, mouseWheel, paintRequested, resized
Properties inherited from SpinBox: maximum, minimum, value
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 Spinner
Spinner(value as Int = 0, minimum as Int = 0, maximum as Int = 100):
Creates a spinner with an initial value and range.
Methods inherited from SpinBox: adjustValueBy, beginEdit, cancelEdit, clampValue, clearEdit, commitEdit, deleteBackward, insertText, paint, setValue
Methods inherited from Widget: blur, containsPoint, emitKeyPressed, emitKeyReleased, emitMouseMoved, emitMousePressed, emitMouseReleased, emitMouseWheel, handleTabKey, notifyPaintRequested, paint, paintOverlay, repaint, requestFocus, resolvePreferredHeight, resolvePreferredWidth, resolvedFont, setBounds