Class AbstractGraphicalCommand

java.lang.Object
weka.gui.knowledgeflow.AbstractGraphicalCommand
Direct Known Subclasses:
GetPerspectiveNamesGraphicalCommand, SendToPerspectiveGraphicalCommand

public abstract class AbstractGraphicalCommand extends Object
Base class for a graphical command
Version:
$Revision: $
Author:
Mark Hall (mhall{[at]}pentaho{[dot]}com)
  • Constructor Details

    • AbstractGraphicalCommand

      public AbstractGraphicalCommand()
  • Method Details

    • setGraphicalEnvironment

      public void setGraphicalEnvironment(Object env)
      Set a reference to the graphical environment
    • getCommandName

      public abstract String getCommandName()
      Get the name of this command
      Returns:
      the name of this command
    • getCommandDescription

      public abstract String getCommandDescription()
      Get a description of this command
      Returns:
      a description of this command
    • performCommand

      public abstract <T> T performCommand(Object... commandArgs) throws WekaException
      Perform the command
      Type Parameters:
      T - the return type
      Parameters:
      commandArgs - arguments to the command
      Returns:
      the result, or null if the command does not return a result
      Throws:
      WekaException - if a problem occurs