SEdit
Class Command

java.lang.Object
  extended bySEdit.Command
All Implemented Interfaces:
Executable
Direct Known Subclasses:
FunctionCommand, MethodCallCommand, NewArrowCommand, NewNodeCommand, SelectionCommand

public class Command
extends Object
implements Executable

The description of an action that might be requested on a whole structure or on a single element (node or arrow). Usually defined in the formalism file


Field Summary
protected  String action
           
protected  String desc
           
protected  String icon
           
 
Constructor Summary
Command()
           
Command(String value)
           
Command(String value, String description)
           
Command(String value, String description, String iconlocation)
           
 
Method Summary
 void execute()
          This method executes the command.
 String getAction()
           
 String getDescription()
           
 String getIcon()
           
 boolean hasDescription()
           
 boolean hasIcon()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

action

protected String action

desc

protected String desc

icon

protected String icon
Constructor Detail

Command

public Command()

Command

public Command(String value)

Command

public Command(String value,
               String description)

Command

public Command(String value,
               String description,
               String iconlocation)
Method Detail

getAction

public String getAction()

getDescription

public String getDescription()

getIcon

public String getIcon()

hasDescription

public boolean hasDescription()

hasIcon

public boolean hasIcon()

toString

public String toString()

execute

public void execute()
Description copied from interface: Executable
This method executes the command.

Specified by:
execute in interface Executable


Copyright © J. Ferber, O. Gutknecht All Rights Reserved.