Package weka.gui.knowledgeflow
Class AbstractGraphicalCommand
- java.lang.Object
-
- weka.gui.knowledgeflow.AbstractGraphicalCommand
-
- Direct Known Subclasses:
GetPerspectiveNamesGraphicalCommand,SendToPerspectiveGraphicalCommand
public abstract class AbstractGraphicalCommand extends java.lang.ObjectBase class for a graphical command- Version:
- $Revision: $
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
-
-
Constructor Summary
Constructors Constructor Description AbstractGraphicalCommand()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.StringgetCommandDescription()Get a description of this commandabstract java.lang.StringgetCommandName()Get the name of this commandabstract <T> TperformCommand(java.lang.Object... commandArgs)Perform the commandvoidsetGraphicalEnvironment(java.lang.Object env)Set a reference to the graphical environment
-
-
-
Method Detail
-
setGraphicalEnvironment
public void setGraphicalEnvironment(java.lang.Object env)
Set a reference to the graphical environment
-
getCommandName
public abstract java.lang.String getCommandName()
Get the name of this command- Returns:
- the name of this command
-
getCommandDescription
public abstract java.lang.String getCommandDescription()
Get a description of this command- Returns:
- a description of this command
-
performCommand
public abstract <T> T performCommand(java.lang.Object... commandArgs) throws WekaExceptionPerform 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
-
-