intellij-randomness / com.fwdekker.randomness / ValidationInfo

ValidationInfo

data class ValidationInfo

Carries information on why a component has invalid input.

Based on com.intellij.openapi.ui.ValidationInfo and com.intellij.openapi.options.ConfigurationException.

Constructors

<init>

ValidationInfo(message: String, component: JComponent? = null, quickFix: Runnable? = null)

Carries information on why a component has invalid input.

Properties

component

val component: JComponent?

the component that is not valid

message

val message: String

the message explaining why the component is not valid

quickFix

val quickFix: Runnable?

a runnable that can be executed to make the component valid