public class ValidationStatus extends Object
Validator
.
This class is reactive, which means that it's values will represent the current validation status. When the validation status changes the observable lists for the messages will be updated automatically.
Type | Property and Description |
---|---|
javafx.beans.property.ReadOnlyBooleanProperty |
valid |
Constructor and Description |
---|
ValidationStatus() |
Modifier and Type | Method and Description |
---|---|
javafx.collections.ObservableList<ValidationMessage> |
getErrorMessages() |
Optional<ValidationMessage> |
getHighestMessage()
Returns the message with the highest priority using the following algorithm: - if there are messages with
Severity.ERROR , take the first one. - otherwise, if there are messages with Severity.WARNING ,
take the first one. - otherwise, an empty Optional is returned. |
javafx.collections.ObservableList<ValidationMessage> |
getMessages() |
javafx.collections.ObservableList<ValidationMessage> |
getWarningMessages() |
boolean |
isValid()
Gets the value of the property valid.
|
javafx.beans.property.ReadOnlyBooleanProperty |
validProperty() |
public javafx.beans.property.ReadOnlyBooleanProperty validProperty
isValid()
public javafx.collections.ObservableList<ValidationMessage> getMessages()
public javafx.collections.ObservableList<ValidationMessage> getErrorMessages()
public javafx.collections.ObservableList<ValidationMessage> getWarningMessages()
public javafx.beans.property.ReadOnlyBooleanProperty validProperty()
isValid()
public boolean isValid()
public Optional<ValidationMessage> getHighestMessage()
Severity.ERROR
, take the first one. - otherwise, if there are messages with Severity.WARNING
,
take the first one. - otherwise, an empty Optional is returned.Copyright © 2015 Saxonia Systems AG. All rights reserved.