Package weka.gui.knowledgeflow

# 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 Summary

  Constructors
  Constructor
  Description
  `AbstractGraphicalCommand()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `abstract String`
  `getCommandDescription()`
  Get a description of this command
  `abstract String`
  `getCommandName()`
  Get the name of this command
  `abstract <T> T`
  `performCommand(Object... commandArgs)`
  Perform the command
  `void`
  `setGraphicalEnvironment(Object env)`
  Set a reference to the graphical environment

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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