@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 |
notExecutable |
javafx.beans.property.ReadOnlyBooleanProperty |
notRunning |
javafx.beans.property.ReadOnlyBooleanProperty |
running |
progressProperty
Modifier and Type | Field and Description |
---|---|
protected javafx.beans.property.ReadOnlyBooleanWrapper |
executable |
protected javafx.beans.property.ReadOnlyBooleanWrapper |
notExecutable |
protected javafx.beans.property.ReadOnlyBooleanWrapper |
notRunning |
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 |
isNotExecutable()
Gets the value of the property notExecutable.
|
boolean |
isNotRunning()
Gets the value of the property notRunning.
|
boolean |
isRunning()
Gets the value of the property running.
|
javafx.beans.property.ReadOnlyBooleanProperty |
notExecutableProperty() |
javafx.beans.property.ReadOnlyBooleanProperty |
notRunningProperty() |
javafx.beans.property.ReadOnlyBooleanProperty |
runningProperty() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProgress, progressProperty
public final javafx.beans.property.ReadOnlyBooleanProperty executableProperty
executableProperty
in interface Command
isExecutable()
public final javafx.beans.property.ReadOnlyBooleanProperty notExecutableProperty
notExecutableProperty
in interface Command
isNotExecutable()
public final javafx.beans.property.ReadOnlyBooleanProperty runningProperty
runningProperty
in interface Command
isRunning()
public final javafx.beans.property.ReadOnlyBooleanProperty notRunningProperty
notRunningProperty
in interface Command
isNotRunning()
protected final javafx.beans.property.ReadOnlyBooleanWrapper executable
protected final javafx.beans.property.ReadOnlyBooleanWrapper running
protected javafx.beans.property.ReadOnlyBooleanWrapper notExecutable
protected javafx.beans.property.ReadOnlyBooleanWrapper notRunning
public final javafx.beans.property.ReadOnlyBooleanProperty executableProperty()
executableProperty
in interface Command
isExecutable()
public final boolean isExecutable()
isExecutable
in interface Command
true
if the Command
can executed, otherwise false
.public final javafx.beans.property.ReadOnlyBooleanProperty notExecutableProperty()
notExecutableProperty
in interface Command
isNotExecutable()
public final boolean isNotExecutable()
isNotExecutable
in interface Command
true
if the Command
can not execute, otherwise false
.public final javafx.beans.property.ReadOnlyBooleanProperty runningProperty()
runningProperty
in interface Command
isRunning()
public final boolean isRunning()
public final javafx.beans.property.ReadOnlyBooleanProperty notRunningProperty()
notRunningProperty
in interface Command
isNotRunning()
public final boolean isNotRunning()
isNotRunning
in interface Command
true
if the Command
is not running, otherwise false
.Copyright © 2015 Saxonia Systems AG. All rights reserved.