AbstractFormComponent

abstract class AbstractFormComponent<T>(parentDisposable: <Error class: unknown class>) : FormComponent<T>

使用 Kotlin DSL 创建组件.

Parameters

parentDisposable

如果不提供该值,则不会创建表单验证器

Constructors

Link copied to clipboard
constructor(parentDisposable: <Error class: unknown class>)

Functions

Link copied to clipboard
open override fun apply(): T?

验证表单并返回结果,如果非空,表示表单验证通过

Link copied to clipboard
open override fun getComponent(): JComponent

获取组件. 对于多次调用,必须返回相同的组件

Link copied to clipboard
abstract fun getState(): T

获取状态

Link copied to clipboard
open override fun isModified(): Boolean

是否有修改