@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 |
running |
Modifier and Type | Method and Description |
---|---|
javafx.beans.property.ReadOnlyBooleanProperty |
executableProperty() |
void |
execute()
This method will be called when the command is invoked.
|
boolean |
isExecutable()
Determines whether the command can be executed in it's current state.
|
boolean |
isRunning()
Signals whether the command is currently executing.
|
javafx.beans.property.ReadOnlyBooleanProperty |
runningProperty() |
javafx.beans.property.ReadOnlyBooleanProperty executableProperty
isExecutable()
javafx.beans.property.ReadOnlyBooleanProperty runningProperty
isRunning()
void execute()
boolean isExecutable()
true
if the Command
can executed, otherwise false
.javafx.beans.property.ReadOnlyBooleanProperty executableProperty()
isExecutable()
boolean isRunning()
true
if the Command
is running, otherwise false
.javafx.beans.property.ReadOnlyBooleanProperty runningProperty()
isRunning()
Copyright © 2015 Saxonia Systems AG. All rights reserved.