kvision / pl.treksoft.kvision.form / StringFormControl

StringFormControl

interface StringFormControl : FormControl

Base interface of a form control with a text value.

Properties

value

abstract var value: String?

Text value.

Inherited Properties

disabled

abstract var disabled: Boolean

Determines if the field is disabled.

flabel

abstract val flabel: FieldLabel

Form field label.

input

abstract val input: Component

The actual input component.

size

abstract var size: INPUTSIZE?

Input control size.

validationInfo

abstract val validationInfo: HelpBlock

Validation info component.

validatorError

open var validatorError: String?

Validator error message.

Functions

getValue

open fun getValue(): String?

Returns the value of the control.

getValueAsString

open fun getValueAsString(): String?

Returns the value of the control as a String.

setValue

open fun setValue(v: Any?): Unit

Sets the value of the control.

Inheritors

AbstractText

abstract class AbstractText : SimplePanel, StringFormControl

Base class for form field text components.

RadioGroup

open class RadioGroup : SimplePanel, StringFormControl

The form field component rendered as a group of HTML input type="radio" elements with the same name attribute.

Select

open class Select : SimplePanel, StringFormControl

The form field component for Select control.