public final class ValidationInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
javax.swing.JComponent |
component |
java.lang.String |
message |
boolean |
okEnabled |
boolean |
warning |
Constructor and Description |
---|
ValidationInfo(java.lang.String message)
Creates a validation error message not associated with a specific component.
|
ValidationInfo(java.lang.String message,
javax.swing.JComponent component)
Creates a validation error message associated with a specific component.
|
Modifier and Type | Method and Description |
---|---|
ValidationInfo |
asWarning() |
boolean |
equals(java.lang.Object o) |
ValidationInfo |
forComponent(javax.swing.JComponent component) |
ValidationInfo |
withOKEnabled() |
public final java.lang.String message
public final javax.swing.JComponent component
public boolean okEnabled
public boolean warning
public ValidationInfo(java.lang.String message, javax.swing.JComponent component)
message
- the error message to display.component
- the component containing the invalid data.public ValidationInfo(java.lang.String message)
message
- the error message to display.public ValidationInfo withOKEnabled()
public ValidationInfo asWarning()
public ValidationInfo forComponent(javax.swing.JComponent component)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object