Spec-Zone .ru
спецификации, руководства, описания, API
|
Type | Property and Description |
---|---|
ReadOnlyObjectProperty<java.lang.Throwable> |
exception
Gets the ReadOnlyObjectProperty representing any exception which occurred.
|
ReadOnlyStringProperty |
message
Gets the ReadOnlyStringProperty representing the message.
|
ReadOnlyDoubleProperty |
progress
Gets the ReadOnlyLongProperty representing the progress.
|
ReadOnlyBooleanProperty |
running
Gets the ReadOnlyBooleanProperty representing whether the Worker is running.
|
ReadOnlyObjectProperty<Worker.State> |
state
Gets the ReadOnlyObjectProperty representing the current state.
|
ReadOnlyStringProperty |
title
Gets the ReadOnlyStringProperty representing the title.
|
ReadOnlyDoubleProperty |
totalWork
Gets the ReadOnlyLongProperty representing the maximum amount of work
that needs to be done.
|
ReadOnlyObjectProperty<java.lang.Void> |
value
Gets the ReadOnlyObjectProperty representing the value.
|
ReadOnlyDoubleProperty |
workDone
Gets the ReadOnlyLongProperty representing the current progress.
|
Worker.State
Modifier and Type | Method and Description |
---|---|
boolean |
cancel()
Cancels the loading of the page.
|
ReadOnlyObjectProperty<java.lang.Throwable> |
exceptionProperty()
Gets the ReadOnlyObjectProperty representing any exception which occurred.
|
java.lang.Throwable |
getException()
Indicates the exception which occurred while the Worker was running, if any.
|
java.lang.String |
getMessage()
Gets a message associated with the current state of this Worker.
|
double |
getProgress()
Indicates the current progress of this Worker in terms of percent complete.
|
Worker.State |
getState()
Specifies the current state of this Worker.
|
java.lang.String |
getTitle()
An optional title that should be associated with this Worker.
|
double |
getTotalWork()
Indicates a maximum value for the
Worker.workDoneProperty() property. |
java.lang.Void |
getValue()
Specifies the value, or result, of this Worker.
|
double |
getWorkDone()
Indicates the current amount of work that has been completed.
|
boolean |
isRunning()
True if the state is either SCHEDULED or RUNNING.
|
ReadOnlyStringProperty |
messageProperty()
Gets the ReadOnlyStringProperty representing the message.
|
ReadOnlyDoubleProperty |
progressProperty()
Gets the ReadOnlyLongProperty representing the progress.
|
ReadOnlyBooleanProperty |
runningProperty()
Gets the ReadOnlyBooleanProperty representing whether the Worker is running.
|
ReadOnlyObjectProperty<Worker.State> |
stateProperty()
Gets the ReadOnlyObjectProperty representing the current state.
|
ReadOnlyStringProperty |
titleProperty()
Gets the ReadOnlyStringProperty representing the title.
|
ReadOnlyDoubleProperty |
totalWorkProperty()
Gets the ReadOnlyLongProperty representing the maximum amount of work
that needs to be done.
|
ReadOnlyObjectProperty<java.lang.Void> |
valueProperty()
Gets the ReadOnlyObjectProperty representing the value.
|
ReadOnlyDoubleProperty |
workDoneProperty()
Gets the ReadOnlyLongProperty representing the current progress.
|
stateProperty
in interface Worker<java.lang.Void>
getState()
valueProperty
in interface Worker<java.lang.Void>
getValue()
exceptionProperty
in interface Worker<java.lang.Void>
getException()
workDoneProperty
in interface Worker<java.lang.Void>
getWorkDone()
totalWorkProperty
in interface Worker<java.lang.Void>
getTotalWork()
progressProperty
in interface Worker<java.lang.Void>
getProgress()
runningProperty
in interface Worker<java.lang.Void>
isRunning()
messageProperty
in interface Worker<java.lang.Void>
getMessage()
titleProperty
in interface Worker<java.lang.Void>
getTitle()
public final Worker.State getState()
Worker
public final ReadOnlyObjectProperty<Worker.State> stateProperty()
Worker
stateProperty
in interface Worker<java.lang.Void>
getState()
public final java.lang.Void getValue()
Worker
public final ReadOnlyObjectProperty<java.lang.Void> valueProperty()
Worker
valueProperty
in interface Worker<java.lang.Void>
getValue()
public final java.lang.Throwable getException()
Worker
null
, there is no known exception, even if
the status is FAILED. If this property is not null
, it will most
likely contain an exception that describes the cause of failure.getException
in interface Worker<java.lang.Void>
public final ReadOnlyObjectProperty<java.lang.Throwable> exceptionProperty()
Worker
exceptionProperty
in interface Worker<java.lang.Void>
getException()
public final double getWorkDone()
Worker
getWorkDone
in interface Worker<java.lang.Void>
Worker.totalWorkProperty()
,
Worker.progressProperty()
public final ReadOnlyDoubleProperty workDoneProperty()
Worker
workDoneProperty
in interface Worker<java.lang.Void>
getWorkDone()
public final double getTotalWork()
Worker
Worker.workDoneProperty()
property. The
totalWork will either be -1 (indicating that the amount of work
to do is indeterminate), or it will be a non-zero value less than or
equal to Long.MAX_VALUE.getTotalWork
in interface Worker<java.lang.Void>
Worker.workDoneProperty()
,
Worker.progressProperty()
public final ReadOnlyDoubleProperty totalWorkProperty()
Worker
totalWorkProperty
in interface Worker<java.lang.Void>
getTotalWork()
public final double getProgress()
Worker
getProgress
in interface Worker<java.lang.Void>
Worker.workDoneProperty()
,
Worker.totalWorkProperty()
public final ReadOnlyDoubleProperty progressProperty()
Worker
progressProperty
in interface Worker<java.lang.Void>
getProgress()
public final boolean isRunning()
Worker
ProgressIndicator
, you will typically bind the visibility
of the ProgressIndicator to the Worker's running property, and the progress of the
ProgressIndicator to the Worker's progress property.public final ReadOnlyBooleanProperty runningProperty()
Worker
runningProperty
in interface Worker<java.lang.Void>
isRunning()
public final java.lang.String getMessage()
Worker
getMessage
in interface Worker<java.lang.Void>
public final ReadOnlyStringProperty messageProperty()
Worker
messageProperty
in interface Worker<java.lang.Void>
getMessage()
public final java.lang.String getTitle()
Worker
public final ReadOnlyStringProperty titleProperty()
Worker
titleProperty
in interface Worker<java.lang.Void>
getTitle()
Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to