@Beta public abstract class CommandBase extends Object implements Command
Command
. It provides the executableProperty()
and
runningProperty()
implementations.Type | Property and Description |
---|---|
javafx.beans.property.ReadOnlyBooleanProperty |
executable |
javafx.beans.property.ReadOnlyBooleanProperty |
running |
Modifier and Type | Field and Description |
---|---|
protected javafx.beans.property.ReadOnlyBooleanWrapper |
executable |
protected javafx.beans.property.ReadOnlyBooleanWrapper |
running |
Constructor and Description |
---|
CommandBase() |
Modifier and Type | Method and Description |
---|---|
javafx.beans.property.ReadOnlyBooleanProperty |
executableProperty() |
abstract void |
execute()
This method will be called when the command is invoked.
|
boolean |
isExecutable()
Gets the value of the property executable.
|
boolean |
isRunning()
Gets the value of the property running.
|
javafx.beans.property.ReadOnlyBooleanProperty |
runningProperty() |
public javafx.beans.property.ReadOnlyBooleanProperty executableProperty
executableProperty
in interface Command
isExecutable()
public javafx.beans.property.ReadOnlyBooleanProperty runningProperty
runningProperty
in interface Command
isRunning()
protected final javafx.beans.property.ReadOnlyBooleanWrapper executable
protected final javafx.beans.property.ReadOnlyBooleanWrapper running
public javafx.beans.property.ReadOnlyBooleanProperty executableProperty()
executableProperty
in interface Command
isExecutable()
public boolean isExecutable()
isExecutable
in interface Command
true
if the Command
can executed, otherwise false
.public javafx.beans.property.ReadOnlyBooleanProperty runningProperty()
runningProperty
in interface Command
isRunning()
public boolean isRunning()
Copyright © 2015 Saxonia Systems AG. All rights reserved.