JNumberSpinner

abstract class JNumberSpinner<T : Number, Comparable<T>>(value: T, minValue: T, maxValue: T, stepSize: T, description: String? = null) : JSpinner(source)

An abstract JSpinner for numbers that contains common logic for its subclasses.

Parameters

T

the type of number

value

the default value

minValue

the smallest number that may be represented

maxValue

the largest number that may be represented

stepSize

the default value to increment and decrement by

description

the description to use in error messages; defaults to DEFAULT_DESCRIPTION if null is given

Constructors

Link copied to clipboard
fun <T : Number, Comparable<T>> JNumberSpinner(value: T, minValue: T, maxValue: T, stepSize: T, description: String? = null)

Types

Link copied to clipboard
object Companion

Holds constants.

Functions

Link copied to clipboard
open fun action(p0: Event, p1: Any): Boolean
Link copied to clipboard
open fun add(p0: PopupMenu)
open fun add(p0: Component): Component
open fun add(p0: Component, p1: Any)
open fun add(p0: Component, p1: Int): Component
open fun add(p0: String, p1: Component): Component
open fun add(p0: Component, p1: Any, p2: Int)
Link copied to clipboard
open fun addAncestorListener(p0: AncestorListener)
Link copied to clipboard
open fun addChangeListener(p0: ChangeListener)
Link copied to clipboard
open fun addComponentListener(p0: ComponentListener)
Link copied to clipboard
open fun addContainerListener(p0: ContainerListener)
Link copied to clipboard
open fun addFocusListener(p0: FocusListener)
Link copied to clipboard
open fun addHierarchyBoundsListener(p0: HierarchyBoundsListener)
Link copied to clipboard
open fun addHierarchyListener(p0: HierarchyListener)
Link copied to clipboard
open fun addInputMethodListener(p0: InputMethodListener)
Link copied to clipboard
open fun addKeyListener(p0: KeyListener)
Link copied to clipboard
open fun addMouseListener(p0: MouseListener)
Link copied to clipboard
open fun addMouseMotionListener(p0: MouseMotionListener)
Link copied to clipboard
open fun addMouseWheelListener(p0: MouseWheelListener)
Link copied to clipboard
open override fun addNotify()
Link copied to clipboard
open override fun addPropertyChangeListener(p0: PropertyChangeListener)
open override fun addPropertyChangeListener(p0: String, p1: PropertyChangeListener)
Link copied to clipboard
open fun addVetoableChangeListener(p0: VetoableChangeListener)
Link copied to clipboard
open override fun applyComponentOrientation(p0: ComponentOrientation)
Link copied to clipboard
open override fun areFocusTraversalKeysSet(p0: Int): Boolean
Link copied to clipboard
open fun bounds(): Rectangle
Link copied to clipboard
open fun checkImage(p0: Image, p1: ImageObserver): Int
open fun checkImage(p0: Image, p1: Int, p2: Int, p3: ImageObserver): Int
Link copied to clipboard
open fun commitEdit()
Link copied to clipboard
open fun computeVisibleRect(p0: Rectangle)
Link copied to clipboard
open operator fun contains(p0: Point): Boolean
open override fun contains(p0: Int, p1: Int): Boolean
Link copied to clipboard
open fun countComponents(): Int
Link copied to clipboard
open fun createImage(p0: ImageProducer): Image
open fun createImage(p0: Int, p1: Int): Image
Link copied to clipboard
open fun createToolTip(): JToolTip
Link copied to clipboard
open fun createVolatileImage(p0: Int, p1: Int): VolatileImage
open fun createVolatileImage(p0: Int, p1: Int, p2: ImageCapabilities): VolatileImage
Link copied to clipboard
open override fun deliverEvent(p0: Event)
Link copied to clipboard
open override fun disable()
Link copied to clipboard
fun dispatchEvent(p0: AWTEvent)
Link copied to clipboard
open override fun doLayout()
Link copied to clipboard
open override fun enable()
open fun enable(p0: Boolean)
Link copied to clipboard
open fun enableInputMethods(p0: Boolean)
Link copied to clipboard
open fun findComponentAt(p0: Point): Component
open fun findComponentAt(p0: Int, p1: Int): Component
Link copied to clipboard
open fun firePropertyChange(p0: String, p1: Byte, p2: Byte)
open fun firePropertyChange(p0: String, p1: Double, p2: Double)
open fun firePropertyChange(p0: String, p1: Float, p2: Float)
open fun firePropertyChange(p0: String, p1: Long, p2: Long)
open fun firePropertyChange(p0: String, p1: Short, p2: Short)
open override fun firePropertyChange(p0: String, p1: Boolean, p2: Boolean)
open override fun firePropertyChange(p0: String, p1: Char, p2: Char)
open override fun firePropertyChange(p0: String, p1: Int, p2: Int)
Link copied to clipboard
@BeanProperty(bound = false)
open override fun getAccessibleContext(): AccessibleContext
Link copied to clipboard
open fun getActionForKeyStroke(p0: KeyStroke): ActionListener
Link copied to clipboard
@BeanProperty(bound = false)
open fun getAncestorListeners(): Array<AncestorListener>
Link copied to clipboard
open override fun getBaseline(p0: Int, p1: Int): Int
Link copied to clipboard
@BeanProperty(bound = false)
open override fun getBaselineResizeBehavior(): Component.BaselineResizeBehavior
Link copied to clipboard
open fun getBounds(): Rectangle
open override fun getBounds(p0: Rectangle): Rectangle
Link copied to clipboard
@BeanProperty(bound = false)
open fun getChangeListeners(): Array<ChangeListener>
Link copied to clipboard
fun getClientProperty(p0: Any): Any
Link copied to clipboard
open fun getColorModel(): ColorModel
Link copied to clipboard
open fun getComponent(p0: Int): Component
Link copied to clipboard
open override fun getComponentAt(p0: Point): Component
open override fun getComponentAt(p0: Int, p1: Int): Component
Link copied to clipboard
open fun getComponentCount(): Int
Link copied to clipboard
open fun getComponentListeners(): Array<ComponentListener>
Link copied to clipboard
open fun getComponentPopupMenu(): JPopupMenu
Link copied to clipboard
open fun getComponents(): Array<Component>
Link copied to clipboard
open fun getComponentZOrder(p0: Component): Int
Link copied to clipboard
open fun getConditionForKeyStroke(p0: KeyStroke): Int
Link copied to clipboard
open fun getContainerListeners(): Array<ContainerListener>
Link copied to clipboard
open fun getDebugGraphicsOptions(): Int
Link copied to clipboard
open fun getFocusCycleRootAncestor(): Container
Link copied to clipboard
open fun getFocusListeners(): Array<FocusListener>
Link copied to clipboard
open override fun getFocusTraversalKeys(p0: Int): MutableSet<AWTKeyStroke>
Link copied to clipboard
open override fun getFontMetrics(p0: Font): FontMetrics
Link copied to clipboard
@BeanProperty(bound = false)
open override fun getGraphics(): Graphics
Link copied to clipboard
open fun getGraphicsConfiguration(): GraphicsConfiguration
Link copied to clipboard
open fun getHierarchyBoundsListeners(): Array<HierarchyBoundsListener>
Link copied to clipboard
open fun getHierarchyListeners(): Array<HierarchyListener>
Link copied to clipboard
open fun getInheritsPopupMenu(): Boolean
Link copied to clipboard
open fun getInputContext(): InputContext
Link copied to clipboard
fun getInputMap(): InputMap
fun getInputMap(p0: Int): InputMap
Link copied to clipboard
open fun getInputMethodListeners(): Array<InputMethodListener>
Link copied to clipboard
open fun getInputMethodRequests(): InputMethodRequests
Link copied to clipboard
@BeanProperty(expert = true)
open override fun getInsets(): Insets
open fun getInsets(p0: Insets): Insets
Link copied to clipboard
open fun getKeyListeners(): Array<KeyListener>
Link copied to clipboard
open fun getLayout(): LayoutManager
Link copied to clipboard
open override fun <T : EventListener> getListeners(p0: Class<T>): Array<T>
Link copied to clipboard
open fun getLocation(): Point
open override fun getLocation(p0: Point): Point
Link copied to clipboard
open fun getLocationOnScreen(): Point
Link copied to clipboard
open override fun getMaximumSize(): Dimension
Link copied to clipboard
open override fun getMinimumSize(): Dimension
Link copied to clipboard
open fun getMouseListeners(): Array<MouseListener>
Link copied to clipboard
open fun getMouseMotionListeners(): Array<MouseMotionListener>
Link copied to clipboard
open fun getMousePosition(): Point
open fun getMousePosition(p0: Boolean): Point
Link copied to clipboard
open fun getMouseWheelListeners(): Array<MouseWheelListener>
Link copied to clipboard
open fun getNextFocusableComponent(): Component
Link copied to clipboard
@BeanProperty(bound = false)
open fun getNextValue(): Any
Link copied to clipboard
open fun getPopupLocation(p0: MouseEvent): Point
Link copied to clipboard
open override fun getPreferredSize(): Dimension
Link copied to clipboard
@BeanProperty(bound = false)
open fun getPreviousValue(): Any
Link copied to clipboard
open fun getPropertyChangeListeners(): Array<PropertyChangeListener>
open fun getPropertyChangeListeners(p0: String): Array<PropertyChangeListener>
Link copied to clipboard
@BeanProperty(bound = false)
open fun getRegisteredKeyStrokes(): Array<KeyStroke>
Link copied to clipboard
@BeanProperty(bound = false)
open fun getRootPane(): JRootPane
Link copied to clipboard
open fun getSize(): Dimension
open override fun getSize(p0: Dimension): Dimension
Link copied to clipboard
open fun getToolkit(): Toolkit
Link copied to clipboard
open fun getToolTipLocation(p0: MouseEvent): Point
Link copied to clipboard
open fun getToolTipText(): String
open fun getToolTipText(p0: MouseEvent): String
Link copied to clipboard
@BeanProperty(bound = false)
open fun getTopLevelAncestor(): Container
Link copied to clipboard
open override fun getTransferHandler(): TransferHandler
Link copied to clipboard
fun getTreeLock(): Any
Link copied to clipboard
open override fun getUI(): SpinnerUI
Link copied to clipboard
@BeanProperty(bound = false)
open override fun getUIClassID(): String
Link copied to clipboard
open override fun getValue(): T

Returns the current value of the spinner.

Link copied to clipboard
@BeanProperty(bound = false)
open fun getVetoableChangeListeners(): Array<VetoableChangeListener>
Link copied to clipboard
@BeanProperty(bound = false)
open fun getVisibleRect(): Rectangle
Link copied to clipboard
open fun gotFocus(p0: Event, p1: Any): Boolean
Link copied to clipboard
open fun grabFocus()
Link copied to clipboard
open fun handleEvent(p0: Event): Boolean
Link copied to clipboard
open fun hasFocus(): Boolean
Link copied to clipboard
open override fun hide()
Link copied to clipboard
open override fun imageUpdate(p0: Image, p1: Int, p2: Int, p3: Int, p4: Int, p5: Int): Boolean
Link copied to clipboard
open fun insets(): Insets
Link copied to clipboard
open fun inside(p0: Int, p1: Int): Boolean
Link copied to clipboard
open override fun invalidate()
Link copied to clipboard
open fun isAncestorOf(p0: Component): Boolean
Link copied to clipboard
open fun isBackgroundSet(): Boolean
Link copied to clipboard
open fun isCursorSet(): Boolean
Link copied to clipboard
open fun isDisplayable(): Boolean
Link copied to clipboard
open override fun isDoubleBuffered(): Boolean
Link copied to clipboard
open override fun isFocusCycleRoot(p0: Container): Boolean
Link copied to clipboard
open fun isFocusOwner(): Boolean
Link copied to clipboard
open fun isFocusTraversable(): Boolean
Link copied to clipboard
open fun isFocusTraversalPolicySet(): Boolean
Link copied to clipboard
open fun isFontSet(): Boolean
Link copied to clipboard
open fun isForegroundSet(): Boolean
Link copied to clipboard
open fun isLightweight(): Boolean
Link copied to clipboard
@BeanProperty(bound = false)
open fun isManagingFocus(): Boolean
Link copied to clipboard
open fun isMaximumSizeSet(): Boolean
Link copied to clipboard
open fun isMinimumSizeSet(): Boolean
Link copied to clipboard
open override fun isOpaque(): Boolean
Link copied to clipboard
@BeanProperty(bound = false)
open fun isOptimizedDrawingEnabled(): Boolean
Link copied to clipboard
@BeanProperty(bound = false)
fun isPaintingForPrint(): Boolean
Link copied to clipboard
@BeanProperty(bound = false)
open fun isPaintingTile(): Boolean
Link copied to clipboard
open fun isPreferredSizeSet(): Boolean
Link copied to clipboard
open fun isRequestFocusEnabled(): Boolean
Link copied to clipboard
open fun isShowing(): Boolean
Link copied to clipboard
open override fun isValidateRoot(): Boolean
Link copied to clipboard
open fun keyDown(p0: Event, p1: Int): Boolean
Link copied to clipboard
open fun keyUp(p0: Event, p1: Int): Boolean
Link copied to clipboard
open override fun layout()
Link copied to clipboard
open fun list()
open fun list(p0: PrintStream)
open fun list(p0: PrintWriter)
open override fun list(p0: PrintStream, p1: Int)
open override fun list(p0: PrintWriter, p1: Int)
Link copied to clipboard
open override fun locate(p0: Int, p1: Int): Component
Link copied to clipboard
open fun location(): Point
Link copied to clipboard
open fun lostFocus(p0: Event, p1: Any): Boolean
Link copied to clipboard
open override fun minimumSize(): Dimension
Link copied to clipboard
open fun mouseDown(p0: Event, p1: Int, p2: Int): Boolean
Link copied to clipboard
open fun mouseDrag(p0: Event, p1: Int, p2: Int): Boolean
Link copied to clipboard
open fun mouseEnter(p0: Event, p1: Int, p2: Int): Boolean
Link copied to clipboard
open fun mouseExit(p0: Event, p1: Int, p2: Int): Boolean
Link copied to clipboard
open fun mouseMove(p0: Event, p1: Int, p2: Int): Boolean
Link copied to clipboard
open fun mouseUp(p0: Event, p1: Int, p2: Int): Boolean
Link copied to clipboard
open fun move(p0: Int, p1: Int)
Link copied to clipboard
open fun nextFocus()
Link copied to clipboard
open override fun paint(p0: Graphics)
Link copied to clipboard
open fun paintAll(p0: Graphics)
Link copied to clipboard
open fun paintComponents(p0: Graphics)
Link copied to clipboard
open fun paintImmediately(p0: Rectangle)
open fun paintImmediately(p0: Int, p1: Int, p2: Int, p3: Int)
Link copied to clipboard
open override fun postEvent(p0: Event): Boolean
Link copied to clipboard
open override fun preferredSize(): Dimension
Link copied to clipboard
open fun prepareImage(p0: Image, p1: ImageObserver): Boolean
open fun prepareImage(p0: Image, p1: Int, p2: Int, p3: ImageObserver): Boolean
Link copied to clipboard
open override fun print(p0: Graphics)
Link copied to clipboard
open override fun printAll(p0: Graphics)
Link copied to clipboard
open fun printComponents(p0: Graphics)
Link copied to clipboard
fun putClientProperty(p0: Any, p1: Any)
Link copied to clipboard
open fun registerKeyboardAction(p0: ActionListener, p1: KeyStroke, p2: Int)
open fun registerKeyboardAction(p0: ActionListener, p1: String, p2: KeyStroke, p3: Int)
Link copied to clipboard
open override fun remove(p0: MenuComponent)
open fun remove(p0: Component)
open fun remove(p0: Int)
Link copied to clipboard
open fun removeAll()
Link copied to clipboard
open fun removeAncestorListener(p0: AncestorListener)
Link copied to clipboard
open fun removeChangeListener(p0: ChangeListener)
Link copied to clipboard
open fun removeComponentListener(p0: ComponentListener)
Link copied to clipboard
open fun removeContainerListener(p0: ContainerListener)
Link copied to clipboard
open fun removeFocusListener(p0: FocusListener)
Link copied to clipboard
open fun removeHierarchyBoundsListener(p0: HierarchyBoundsListener)
Link copied to clipboard
open fun removeHierarchyListener(p0: HierarchyListener)
Link copied to clipboard
open fun removeInputMethodListener(p0: InputMethodListener)
Link copied to clipboard
open fun removeKeyListener(p0: KeyListener)
Link copied to clipboard
open fun removeMouseListener(p0: MouseListener)
Link copied to clipboard
open fun removeMouseMotionListener(p0: MouseMotionListener)
Link copied to clipboard
open fun removeMouseWheelListener(p0: MouseWheelListener)
Link copied to clipboard
open override fun removeNotify()
Link copied to clipboard
open fun removePropertyChangeListener(p0: PropertyChangeListener)
open fun removePropertyChangeListener(p0: String, p1: PropertyChangeListener)
Link copied to clipboard
open fun removeVetoableChangeListener(p0: VetoableChangeListener)
Link copied to clipboard
open fun repaint()
open fun repaint(p0: Long)
open fun repaint(p0: Rectangle)
open fun repaint(p0: Int, p1: Int, p2: Int, p3: Int)
open override fun repaint(p0: Long, p1: Int, p2: Int, p3: Int, p4: Int)
Link copied to clipboard
open fun requestDefaultFocus(): Boolean
Link copied to clipboard
open override fun requestFocus()
open fun requestFocus(p0: FocusEvent.Cause)
open override fun requestFocus(p0: Boolean): Boolean
Link copied to clipboard
open override fun requestFocusInWindow(): Boolean
open fun requestFocusInWindow(p0: FocusEvent.Cause): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun reshape(p0: Int, p1: Int, p2: Int, p3: Int)
Link copied to clipboard
open fun resize(p0: Dimension)
open fun resize(p0: Int, p1: Int)
Link copied to clipboard
open override fun revalidate()
Link copied to clipboard
open fun scrollRectToVisible(p0: Rectangle)
Link copied to clipboard
open fun setBounds(p0: Rectangle)
open fun setBounds(p0: Int, p1: Int, p2: Int, p3: Int)
Link copied to clipboard
@BeanProperty(preferred = true, description = "Popup to show")
open fun setComponentPopupMenu(p0: JPopupMenu)
Link copied to clipboard
open fun setComponentZOrder(p0: Component, p1: Int)
Link copied to clipboard
@BeanProperty(bound = false, preferred = true, enumerationValues = ["DebugGraphics.NONE_OPTION", "DebugGraphics.LOG_OPTION", "DebugGraphics.FLASH_OPTION", "DebugGraphics.BUFFERED_OPTION"], description = "Diagnostic options for graphics operations.")
open fun setDebugGraphicsOptions(p0: Int)
Link copied to clipboard
open fun setDoubleBuffered(p0: Boolean)
Link copied to clipboard
open override fun setFocusTraversalKeys(p0: Int, p1: MutableSet<out AWTKeyStroke>)
Link copied to clipboard
@BeanProperty(description = "Whether or not the JPopupMenu is inherited")
open fun setInheritsPopupMenu(p0: Boolean)
Link copied to clipboard
fun setInputMap(p0: Int, p1: InputMap)
Link copied to clipboard
open fun setLayout(p0: LayoutManager)
Link copied to clipboard
open fun setLocation(p0: Point)
open fun setLocation(p0: Int, p1: Int)
Link copied to clipboard
@BeanProperty(description = "The maximum size of the component.")
open override fun setMaximumSize(p0: Dimension)
Link copied to clipboard
@BeanProperty(description = "The minimum size of the component.")
open override fun setMinimumSize(p0: Dimension)
Link copied to clipboard
open fun setMixingCutoutShape(p0: Shape)
Link copied to clipboard
open fun setNextFocusableComponent(p0: Component)
Link copied to clipboard
@BeanProperty(expert = true, description = "The component's opacity")
open fun setOpaque(p0: Boolean)
Link copied to clipboard
@BeanProperty(preferred = true, description = "The preferred size of the component.")
open override fun setPreferredSize(p0: Dimension)
Link copied to clipboard
open fun setRequestFocusEnabled(p0: Boolean)
Link copied to clipboard
open fun setSize(p0: Dimension)
open fun setSize(p0: Int, p1: Int)
Link copied to clipboard
@BeanProperty(bound = false, preferred = true, description = "The text to display in a tool tip.")
open fun setToolTipText(p0: String)
Link copied to clipboard
@BeanProperty(hidden = true, description = "Mechanism for transfer of data to and from the component")
open fun setTransferHandler(p0: TransferHandler)
Link copied to clipboard
open fun setUI(p0: SpinnerUI)
Link copied to clipboard
open override fun setValue(value: Any)

Sets the value of the spinner.

Link copied to clipboard
open fun show()
open fun show(p0: Boolean)
Link copied to clipboard
open fun size(): Dimension
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open fun transferFocus()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun unregisterKeyboardAction(p0: KeyStroke)
Link copied to clipboard
open override fun update(p0: Graphics)
Link copied to clipboard
open override fun updateUI()
Link copied to clipboard
open override fun validate()
Link copied to clipboard

Validates the current value.

Properties

Link copied to clipboard
var actionMap: ActionMap
Link copied to clipboard
@set:BeanProperty(description = "The preferred horizontal alignment of the component.")
var alignmentX: Float
Link copied to clipboard
@set:BeanProperty(description = "The preferred vertical alignment of the component.")
var alignmentY: Float
Link copied to clipboard
@set:BeanProperty(bound = false, expert = true, description = "Determines if this component automatically scrolls its contents when dragged.")
var autoscrolls: Boolean
Link copied to clipboard
@set:BeanProperty(preferred = true, visualUpdate = true, description = "The background color of the component.")
var background: Color
Link copied to clipboard
@set:BeanProperty(preferred = true, visualUpdate = true, description = "The component's border.")
var border: Border
Link copied to clipboard
var componentOrientation: ComponentOrientation
Link copied to clipboard
var cursor: Cursor
Link copied to clipboard
var dropTarget: DropTarget
Link copied to clipboard
@set:BeanProperty(visualUpdate = true, description = "JComponent that displays the current value of the model")
var editor: JComponent
Link copied to clipboard
@set:BeanProperty(expert = true, preferred = true, visualUpdate = true, description = "The enabled state of the component.")
var enabled: Boolean
Link copied to clipboard
var focusable: Boolean
Link copied to clipboard
var focusCycleRoot: Boolean
Link copied to clipboard
Link copied to clipboard
var focusTraversalPolicy: FocusTraversalPolicy
Link copied to clipboard
Link copied to clipboard
@set:BeanProperty(preferred = true, visualUpdate = true, description = "The font for the component.")
var font: Font
Link copied to clipboard
@set:BeanProperty(preferred = true, visualUpdate = true, description = "The foreground color of the component.")
var foreground: Color
Link copied to clipboard
@get:BeanProperty(bound = false)
val height: Int
Link copied to clipboard
var ignoreRepaint: Boolean
Link copied to clipboard
@set:BeanProperty(description = "The component's input verifier.")
var inputVerifier: InputVerifier
Link copied to clipboard
var locale: Locale
Link copied to clipboard
var maxValue: T

The maximal allowed value.

Link copied to clipboard
var minValue: T

The minimal allowed value.

Link copied to clipboard
@set:BeanProperty(visualUpdate = true, description = "Model that represents the value of this spinner.")
var model: SpinnerModel
Link copied to clipboard
var name: String
Link copied to clipboard
abstract val numberToT: (Number) -> T

Transforms a Number into a T.

Link copied to clipboard
val parent: Container
Link copied to clipboard
val valid: Boolean
Link copied to clipboard
@set:BeanProperty(description = "Whether the Component verifies input before accepting focus.")
var verifyInputWhenFocusTarget: Boolean
Link copied to clipboard
@set:BeanProperty(hidden = true, visualUpdate = true)
var visible: Boolean
Link copied to clipboard
@get:BeanProperty(bound = false)
val width: Int
Link copied to clipboard
@get:BeanProperty(bound = false)
val x: Int
Link copied to clipboard
@get:BeanProperty(bound = false)
val y: Int

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard