Klasse Cmd

java.lang.Object
de.zocher_regel.util.Cmd
Alle implementierten Schnittstellen:
KeyAble

public final class Cmd extends Object implements KeyAble
A command (normally a setting selected from the Menu) with its parameters.
  • Konstruktordetails

    • Cmd

      public Cmd(KeyAble keyAble)
      Construct a Cmd that has no parms.
      Parameter:
      keyAble - The menu command (@see Setting)
  • Methodendetails

    • key

      public String key()
      Get the command without parameters.
      Angegeben von:
      key in Schnittstelle KeyAble
      Gibt zurück:
      the command (@see Setting)
    • getKeyAble

      public KeyAble getKeyAble()
      A command consists of a keyAble and parameters.
      Gibt zurück:
      the key in the KeyAble
    • name

      public String name()
      Beschreibung aus Schnittstelle kopiert: KeyAble
      The implementation, e. g. enum UtilSetting, has this method to return the name of the enum instance (e. g. BeepLevel) without package name.
      Angegeben von:
      name in Schnittstelle KeyAble
      Gibt zurück:
      the name
    • getSourcePath

      public Path getSourcePath()
      Some commands have a source and target path as parameters.
      Gibt zurück:
      the sourcePath parameter
    • getTargetPath

      public Path getTargetPath()
      Some commands have a source and target path as parameters.
      Gibt zurück:
      the targetPath parameter
    • setSourcePath

      public void setSourcePath(Path sourcePath)
      The command may have a source and target path parameter.
      Parameter:
      sourcePath - to be assigned to this command
    • setTargetPath

      public void setTargetPath(Path targetPath)
      The command may have a source and target path parameter.
      Parameter:
      targetPath - to be assigned to this command
    • toString

      public String toString()
      Get the name of the command and its optional parameters as
      Setzt außer Kraft:
      toString in Klasse Object
      Gibt zurück:
      e. g. Name,C:\abc,D:\efg