Package PamUtils.worker
Class PamWorkerProgressFX
java.lang.Object
PamUtils.worker.PamWorkerProgressFX
Worker update message with property to allow FX bindings (e.g. binding to a progress bar)
- Author:
- Jamie Macaulay
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.StringProperty
Get the message property.javafx.beans.property.DoubleProperty
Get the progress property.void
Update with a swing worker message.void
updateProgress
(double d) Update progress between 0 and 1/
-
Constructor Details
-
PamWorkerProgressFX
public PamWorkerProgressFX()
-
-
Method Details
-
getProgressProperty
public javafx.beans.property.DoubleProperty getProgressProperty()Get the progress property.- Returns:
- the progress property.
-
getMessageProperty
public javafx.beans.property.StringProperty getMessageProperty()Get the message property. for update messages.- Returns:
- the message property.
-
update
Update with a swing worker message.- Parameters:
msg
- - the message.
-
updateProgress
public void updateProgress(double d) Update progress between 0 and 1/- Parameters:
d
-
-