Class StatusMonitor

java.lang.Object
com.iamsoft.util.ui.javafx.StatusMonitor

public class StatusMonitor extends Object
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 Details

    • status

      public javafx.beans.property.ReadOnlyObjectProperty<String> statusProperty
      See Also:
    • emptyStatus

      public javafx.beans.property.ReadOnlyBooleanProperty emptyStatusProperty
      See Also:
  • Constructor Details

    • StatusMonitor

      public StatusMonitor()
  • Method Details

    • statusProperty

      public javafx.beans.property.ReadOnlyObjectProperty<String> statusProperty()
      See Also:
    • getStatus

      public String 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

      public void addStatus(int pPriority, javafx.beans.value.ObservableValue<String> pStatus)
      Parameters:
      pPriority - the lower the number the higher the priority
      pStatus - status message
    • removeStatus

      public boolean removeStatus(int pPriority, javafx.beans.value.ObservableValue<String> pStatus)