Interface Command<T>

All Known Implementing Classes:
CommandBase, FutureCommand, SimpleCommand

public interface Command<T>
Represents a command that encapsulates an operation and its preconditions.
  • Property Details

  • Method Details

    • executableProperty

      ReadOnlyBooleanProperty executableProperty()
      Gets a property that indicates whether the command is currently executable.
      See Also:
      isExecutable()
    • executingProperty

      ReadOnlyBooleanProperty executingProperty()
      Gets a property that indicates whether the command is currently executing.
      See Also:
      isExecuting()
    • isExecutable

      default boolean isExecutable()
      Indicates whether the command is currently executable.
    • isExecuting

      default boolean isExecuting()
      Indicates whether the command is currently executing.
    • execute

      void execute​(T parameter)
      Executes the command.
      Parameters:
      parameter - the parameter that is passed to the command implementation
      Throws:
      IllegalStateException - if the command is not executable