java.lang.Object
com.iamsoft.util.ui.javafx.StatusMonitor
A helper class which can be used to automatically determine what status
to show depending on the priority of the added statuses.
A status is considered active if the status message is non-empty.
If two statuses have the same priority, with higher priority is considered
the one which most recently changed state from inactive to active (i.e. the
one which most recently changed the status message from empty string to non-empty string).
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.ReadOnlyBooleanProperty
javafx.beans.property.ReadOnlyObjectProperty<String>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
javafx.beans.property.ReadOnlyBooleanProperty
Gets the value of the property status.boolean
Gets the value of the property emptyStatus.boolean
removeStatus
(int pPriority, javafx.beans.value.ObservableValue<String> pStatus) javafx.beans.property.ReadOnlyObjectProperty<String>
-
Property Details
-
status
- See Also:
-
emptyStatus
public javafx.beans.property.ReadOnlyBooleanProperty emptyStatusProperty- See Also:
-
-
Constructor Details
-
StatusMonitor
public StatusMonitor()
-
-
Method Details
-
statusProperty
- See Also:
-
getStatus
Gets the value of the property status.- Property description:
-
emptyStatusProperty
public javafx.beans.property.ReadOnlyBooleanProperty emptyStatusProperty()- See Also:
-
isEmptyStatus
public boolean isEmptyStatus()Gets the value of the property emptyStatus.- Property description:
-
addStatus
- Parameters:
pPriority
- the lower the number the higher the prioritypStatus
- status message
-
removeStatus
-