@Beta
public interface Command
Command encapsulates logic in the execute() method which will be called later. This can be used
for example to provide an execute()-action which should perform on a button click.
In addition it is possible to add the information on whether the Command can be executed at the moment or not
(isExecutable()).
| Type | Property and Description |
|---|---|
javafx.beans.property.ReadOnlyBooleanProperty |
executable |
javafx.beans.property.ReadOnlyBooleanProperty |
notExecutable |
javafx.beans.property.ReadOnlyBooleanProperty |
notRunning |
javafx.beans.property.ReadOnlyDoubleProperty |
progress |
javafx.beans.property.ReadOnlyBooleanProperty |
running |
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.ReadOnlyBooleanProperty |
executableProperty() |
void |
execute()
This method will be called when the command is invoked.
|
double |
getProgress()
Gets a double between 0.0 and 1.0 which represents the progress.
|
boolean |
isExecutable()
Determines whether the command can be executed in it's current state.
|
boolean |
isNotExecutable()
Determines whether the command can not execute in it's current state.
|
boolean |
isNotRunning()
Signals whether the command is currently not executing.
|
boolean |
isRunning()
Signals whether the command is currently executing.
|
javafx.beans.property.ReadOnlyBooleanProperty |
notExecutableProperty() |
javafx.beans.property.ReadOnlyBooleanProperty |
notRunningProperty() |
javafx.beans.property.ReadOnlyDoubleProperty |
progressProperty() |
javafx.beans.property.ReadOnlyBooleanProperty |
runningProperty() |
javafx.beans.property.ReadOnlyBooleanProperty executableProperty
isExecutable()javafx.beans.property.ReadOnlyBooleanProperty notExecutableProperty
isNotExecutable()javafx.beans.property.ReadOnlyBooleanProperty runningProperty
isRunning()javafx.beans.property.ReadOnlyBooleanProperty notRunningProperty
isNotRunning()javafx.beans.property.ReadOnlyDoubleProperty progressProperty
getProgress()void execute()
boolean isExecutable()
true if the Command can executed, otherwise false.javafx.beans.property.ReadOnlyBooleanProperty executableProperty()
isExecutable()boolean isNotExecutable()
true if the Command can not execute, otherwise false.javafx.beans.property.ReadOnlyBooleanProperty notExecutableProperty()
isNotExecutable()boolean isRunning()
true if the Command is running, otherwise false.javafx.beans.property.ReadOnlyBooleanProperty runningProperty()
isRunning()boolean isNotRunning()
true if the Command is not running, otherwise false.javafx.beans.property.ReadOnlyBooleanProperty notRunningProperty()
isNotRunning()double getProgress()
javafx.beans.property.ReadOnlyDoubleProperty progressProperty()
getProgress()Copyright © 2019 Saxonia Systems AG. All rights reserved.