From a70acf853de62d0754ca95aa4103712b82afdef8 Mon Sep 17 00:00:00 2001
From: Robert Jaros Overrides FormControl.getValueAsString Returns the value of the control as a String. Overrides FormControl.getValue Returns the value of the control. Return Base interface of a form control with a date value. Date value. Determines if the field is disabled. Form field label. The actual input component. The name attribute of the generated HTML input element. Input control field size. Validation info component. Validator error message. Returns the value of the control. Returns the value of the control as a String. Sets the value of the control. Makes the input element blur. Makes the input element focused. Form field date/time chooser component. Overrides FormControl.setValue Sets the value of the control. Date value. Base interface of a form control with a date value.
+
+getValueAsString
+
+open fun getValueAsString(): String?
+
+
+getValue
+
+open fun getValue(): Date?
+
+the value
+
+DateFormControl
+interface DateFormControl : FormControl
+Properties
+
+
+
+
+
+
+
+
+
+
+
+abstract var value: Date?
+Inherited Properties
+
+
+
+
+
+
+
+
+
+
+open var disabled: Boolean
+
+
+
+
+
+
+
+abstract val flabel: FieldLabel
+
+
+
+
+
+
+
+abstract val input: FormInput
+
+
+
+
+
+
+
+open var name: String?
+
+
+
+
+
+
+
+open var size: InputSize?
+
+
+
+
+
+
+
+abstract val validationInfo: HelpBlock
+
+
+
+
+
+
+
+
+open var validatorError: String?
+Functions
+
+
+
+
+
+
+
+
+
+
+open fun getValue(): Date?
+
+
+
+
+
+
+
+open fun getValueAsString(): String?
+
+
+
+
+
+
+
+
+open fun setValue(v: Any?): Unit
+Inherited Functions
+
+
+
+
+
+
+
+
+
+
+abstract fun blur(): Unit
+
+
+
+
+
+
+
+
+abstract fun focus(): Unit
+Inheritors
+
+
+
+
+
diff --git a/api/pl.treksoft.kvision.form/-date-form-control/set-value.html b/api/pl.treksoft.kvision.form/-date-form-control/set-value.html
new file mode 100644
index 00000000..7dd2477e
--- /dev/null
+++ b/api/pl.treksoft.kvision.form/-date-form-control/set-value.html
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+open class DateTime : SimplePanel, DateFormControl
+
+
+setValue
+
+open fun setValue(v: Any?): Unit
+Parameters
+
+
+
diff --git a/api/pl.treksoft.kvision.form/-date-form-control/value.html b/api/pl.treksoft.kvision.form/-date-form-control/value.html
new file mode 100644
index 00000000..0d6d2079
--- /dev/null
+++ b/api/pl.treksoft.kvision.form/-date-form-control/value.html
@@ -0,0 +1,15 @@
+
+
+
+
+
+value
+
+abstract var value: Date?
+
diff --git a/api/pl.treksoft.kvision.form/-form-panel/add.html b/api/pl.treksoft.kvision.form/-form-panel/add.html
index 55663b95..49c88d13 100644
--- a/api/pl.treksoft.kvision.form/-form-panel/add.html
+++ b/api/pl.treksoft.kvision.form/-form-panel/add.html
@@ -62,8 +62,8 @@ current form panel
-
+
-
interface KDateFormControl : FormControl
+interface DateFormControl : FormControl
validator
- optional validation function
Return
current form panel
open fun <C : KDateFormControl> add(key: KProperty1<K, KDate?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
+
+open fun <C : DateFormControl> add(key: KProperty1<K, Date?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
Adds a date control to the form panel.
@@ -81,7 +81,7 @@ current form panel
Return
current form panel
open fun <C : KFilesFormControl> add(key: KProperty1<K, List<KFile>?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
+open fun <C : KFilesFormControl> add(key: KProperty1<K, List<KFile>?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
Adds a files control to the form panel.
diff --git a/api/pl.treksoft.kvision.form/-form-panel/get-content.html b/api/pl.treksoft.kvision.form/-form-panel/get-content.html deleted file mode 100644 index 6e97ae04..00000000 --- a/api/pl.treksoft.kvision.form/-form-panel/get-content.html +++ /dev/null @@ -1,22 +0,0 @@ - -
- -suspend fun getContent(key: KProperty1<K, List<KFile>?>, kFile: KFile): KFile
-Returns an object with the content of the file.
-
-key
- key identifier of the control
-kFile
- object identifying the file
Return
-KFile object
Adds a boolean control to the form panel.
open fun <C : NumberFormControl> add(key: KProperty1<K, Number?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
Adds a number control to the form panel.
-open fun <C : KDateFormControl> add(key: KProperty1<K, KDate?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
+open fun <C : DateFormControl> add(key: KProperty1<K, Date?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
Adds a date control to the form panel.
-open fun <C : KFilesFormControl> add(key: KProperty1<K, List<KFile>?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
+open fun <C : KFilesFormControl> add(key: KProperty1<K, List<KFile>?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
Adds a files control to the form panel.
@@ -155,15 +155,6 @@suspend fun getContent(key: KProperty1<K, List<KFile>?>, kFile: KFile): KFile
-Returns an object with the content of the file.
-validator
- optional validation function
Return
current form
fun <C : KDateFormControl> add(key: KProperty1<K, KDate?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
+
+fun <C : DateFormControl> add(key: KProperty1<K, Date?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
Adds a date control to the form.
@@ -81,7 +81,7 @@ current form
Return
current form
fun <C : KFilesFormControl> add(key: KProperty1<K, List<KFile>?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
+fun <C : KFilesFormControl> add(key: KProperty1<K, List<KFile>?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
Adds a files control to the form.
diff --git a/api/pl.treksoft.kvision.form/-form/get-content.html b/api/pl.treksoft.kvision.form/-form/get-content.html deleted file mode 100644 index 90b6feeb..00000000 --- a/api/pl.treksoft.kvision.form/-form/get-content.html +++ /dev/null @@ -1,22 +0,0 @@ - -
- -suspend fun getContent(key: KProperty1<K, List<KFile>?>, kFile: KFile): KFile
-Returns file with the content read.
-
-key
- key identifier of the control
-kFile
- object identifying the file
Return
-KFile object
Adds a boolean control to the form.
fun <C : NumberFormControl> add(key: KProperty1<K, Number?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
Adds a number control to the form.
-fun <C : KDateFormControl> add(key: KProperty1<K, KDate?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
+fun <C : DateFormControl> add(key: KProperty1<K, Date?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
Adds a date control to the form.
-fun <C : KFilesFormControl> add(key: KProperty1<K, List<KFile>?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
+fun <C : KFilesFormControl> add(key: KProperty1<K, List<KFile>?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
Adds a files control to the form.
suspend fun getContent(key: KProperty1<K, List<KFile>?>, kFile: KFile): KFile
-Returns file with the content read.
-open fun getValueAsString(): String?
-Overrides FormControl.getValueAsString
-Returns the value of the control as a String.
- - diff --git a/api/pl.treksoft.kvision.form/-k-date-form-control/get-value.html b/api/pl.treksoft.kvision.form/-k-date-form-control/get-value.html deleted file mode 100644 index 80fe5c8b..00000000 --- a/api/pl.treksoft.kvision.form/-k-date-form-control/get-value.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -open fun getValue(): KDate?
-Overrides FormControl.getValue
-Returns the value of the control.
-Return
-the value
interface KDateFormControl : FormControl
-Base interface of a form control with a date value.
-- - | -
-abstract var value: KDate?
-Date value. - |
-
- - | -
-open var disabled: Boolean
-Determines if the field is disabled. - |
-
- - | -
-abstract val flabel: FieldLabel
-Form field label. - |
-
- - | -
-abstract val input: FormInput
-The actual input component. - |
-
- - | -
-open var name: String?
-The name attribute of the generated HTML input element. - |
-
- - | -
-open var size: InputSize?
-Input control field size. - |
-
- - | -
-abstract val validationInfo: HelpBlock
-Validation info component. - |
-
- - | -
-open var validatorError: String?
-Validator error message. - |
-
- - | -
-open fun getValue(): KDate?
-Returns the value of the control. - |
-
- - | -
-open fun getValueAsString(): String?
-Returns the value of the control as a String. - |
-
- - | -
-open fun setValue(v: Any?): Unit
-Sets the value of the control. - |
-
- - | -
-abstract fun blur(): Unit
-Makes the input element blur. - |
-
- - | -
-abstract fun focus(): Unit
-Makes the input element focused. - |
-
- - | -
-open class DateTime : SimplePanel, KDateFormControl
-Form field date/time chooser component. - |
-
open fun setValue(v: Any?): Unit
-Overrides FormControl.setValue
-Sets the value of the control.
-abstract var value: KDate?
-Date value.
- - diff --git a/api/pl.treksoft.kvision.form/-k-files-form-control/get-value.html b/api/pl.treksoft.kvision.form/-k-files-form-control/get-value.html index 83d54534..cfc28f64 100644 --- a/api/pl.treksoft.kvision.form/-k-files-form-control/get-value.html +++ b/api/pl.treksoft.kvision.form/-k-files-form-control/get-value.html @@ -9,7 +9,7 @@open fun getValue(): List<KFile>?
+open fun getValue(): List<KFile>?
Overrides FormControl.getValue
Returns the value of the control.
Return
diff --git a/api/pl.treksoft.kvision.form/-k-files-form-control/index.html b/api/pl.treksoft.kvision.form/-k-files-form-control/index.html
index 410e07c5..056d1394 100644
--- a/api/pl.treksoft.kvision.form/-k-files-form-control/index.html
+++ b/api/pl.treksoft.kvision.form/-k-files-form-control/index.html
@@ -18,7 +18,7 @@
abstract var value: List<KFile>?
+abstract var value: List<KFile>?
List of files value.
open fun getValue(): List<KFile>?
+open fun getValue(): List<KFile>?
Returns the value of the control.
abstract var value: List<KFile>?
+abstract var value: List<KFile>?
List of files value.